simplify problem

*To*: mathgroup at smc.vnet.net*Subject*: [mg5137] simplify problem*From*: Tomasz Bieruta <bieruta at chemie.uni-halle.de>*Date*: Wed, 6 Nov 1996 01:32:57 -0500*Organization*: Martin-Luther-Universitat, Dept. Chemie, Inst. ANUC*Sender*: owner-wri-mathgroup at wolfram.com

I have following problem: In[1] u=(a+b)^2; v=(c+d)^2; In[2] uv=Expand[u+v] Out[2] a^2+2ab+b^2+c^2+2cd+d^2 How can I revers the above Operation, in this example from a^2+2ab+b^2+c^2+2cd+d^2 I want to have (a+b)^2 + (c+d)^2. Can someone help me, please ? Tomasz B. ---- e-mail: bieruta at chemie.uni-halle.de