Question: Factoring summations with equivalent index

 

Given the following expression:

````

sum(cadj[i]*vfinal[i], i = c .. d)-(sum(cadj[i]*vinit[i], i = c .. d));

sum(cadj[i]*vfinal[i], i = c .. d)-(sum(cadj[i]*vinit[i], i = c .. d))

(1)

``

Why can't Maple simplify (1) to (2)?

``

``

sum(cadj[i]*(vfinal[i]-vinit[i]), i = c .. d);

sum(cadj[i]*(vfinal[i]-vinit[i]), i = c .. d)

(2)

``

Is there a "trick" or sequence to get the tool to make this observation?``

 

 

``

 

Download simplify_summation.mw

Please Wait...