### The Maxima on-line user's manual

Algebra Calculator

#### Factorsum

Function: factorsum (<expr>) Tries to group terms in factors of <expr> which are sums into groups of terms such that their sum is factorable. `factorsum` can recover the result of `expand ((x + y)^2 + (z + w)^2)` but it cant recover `expand ((x + 1)^2 + (x + y)^2)` because the terms have variables in common.

Example:

```          (%i1) expand ((x + 1)*((u + v)^2 + a*(w + z)^2));
2      2                            2      2
(%o1) a x z  + a z  + 2 a w x z + 2 a w z + a w  x + v  x```

2 2 2 2 + 2 u v x + u x + a w + v + 2 u v + u

`          (%i2) factorsum (%);`
`                                             2          2`
`          (%o2)            (x + 1) (a (z + w)  + (v + u) )`

There are also some inexact matches for `factorsum`. Try `?? factorsum` to see them.

```(%o1)                                true
(%i2) ```

### Related Examples

##### factorsum-first-kill-solve

kill(all);

nodev1: 0 = g*(v0 - k...

nodev2: 0 = g*(v1 - 0...

Calculate

##### factorsum

factorsum(3*x^2+65*x+...

%;

Calculate

##### factorsum

factorsum(x^2+x+10);

Calculate

##### factorsum-sqrt

expr:1/[1+sqrt(10)+sq...

factorsum(expr);

Calculate

##### factorsum-gamma-linsolve-solve

eq1:x*4+y-2=y;

eq2:x+2=y;

eq3: (b^a/gamma(a))*(...

Calculate

##### factorsum

factorsum(2*x^2+8*y^2...

Calculate

##### factorsum-simpsum-sum

S1 : sum( k , k , 1 ,...

factorsum(S1);

S2 : sum( ( 1 / 2 ) *...

Calculate

##### factorsum

f1:f000+y*(f010-f000);

f2:f001+y*(f011-f001);

f3:f100+y*(f110-f100);

Calculate

##### factorsum

v: a+b^2/z+c^2/z+d^2-...

factorsum(v);

Calculate

##### factorsum

factorsum(3*x^2+65*x+...

%;

Calculate