Question: expression simplification

Hi guys,

I have an expression, say like this:

2*x*(sum(w[i]*Y[i], i = 1 .. t))+2*a[0]*(sum(w[i]*x[i], i = 1 .. t))-2*a[0]*x*(sum(w[i], i = 1 .. t))

and i want to simplify the expression like this:

2*x*(sum(w[i]*Y[i], i = 1 .. t))+a[0]*(2*(sum(w[i]*x[i], i = 1 .. t))-2*x*(sum(w[i], i = 1 .. t)))

means that i want to factor the a[0] multiplyers. how can i do this??

Please Wait...