Question: How to collect...

Question:How to collect...

bairg 29 Maple
Hi all! Please help me to simplify the following expression: ex1 := C10*C20*a^2+2*C10*C20*a*b+C10*C20*b^2-m*u^2*a*C10+m*u^2*b*C20+1/2*e1*e2*a^2+e1*e2*a*b+1/2*e1*e2*b^2; 1, I've tried the followings: collect(ex,e1*e2); Error, (in collect) cannot collect e1*e2 2, then I've read some advice here in the forum, and tried this: subs(e1*e2=z,%); collect(%,z); S0_temp2:=subs(z=e1*e2,%); This doesn't works as well. It simply doesn't substitutes z for e1*e2. My goal would be to get something like this: (a+b)^2*(C10*C20+1/2*e1*e2)-m*u^2*(a*C10-b*C20); Thanks!
Please Wait...