# collecting like terms; two variables

• February 8th 2013, 05:19 AM
ndowner
collecting like terms; two variables
forgot how to do it, brains have gone to after the summer holiday;

collect the like terms;

x2 - 4ax - 5a2

= (x+a)(x-5a), not sure how to get there though, probably completing the square
• February 8th 2013, 05:25 AM
jakncoke
Re: collecting like terms; two variables
note that if you do x = -a, you get $a^2 + 4a^2 - 5a^2 = 0$ so you can factor out (x--a) or (x+a).

so (x+a)*(x-5a) , because if you can factor out (x+a), and you do (x+a)*(x+b), then a*b = $-5a^2$ so b = -5a.
• February 8th 2013, 05:34 AM
ndowner
Re: collecting like terms; two variables
i appreciate the quick response, but I have no idea how you factor out (x+a) from a^2 + 4a^2 - 5a^2
• February 8th 2013, 06:03 AM
jakncoke
Re: collecting like terms; two variables
For any polynomial p(x), if you can find a root r, so p(r) = 0, then (x-r) divides p(x) with remainder 0. so you get p(x) = (x-r)*quotient .

but in your case using the quadratic formula can also solve this dilemna.

So for $x^2 - 4ax - 5a^2$ the quadratic formula $\frac{4a \pm \sqrt{16a^2 - 4(1)(-5a^2)}}{2} = \frac{4a \pm \sqrt{36a^2}}{2}$ which gives roots $x_1 = -a, x_2 = 5a$ so (x--a)*(x-5a) also gives you the factorization.
• February 8th 2013, 11:18 AM
earboth
Re: collecting like terms; two variables
Quote:

Originally Posted by ndowner
forgot how to do it, brains have gone to after the summer holiday;

collect the like terms;

x2 - 4ax - 5a2

= (x+a)(x-5a), not sure how to get there though, probably completing the square

This is a slightly different way:

$x^2-4ax-5a^2 = x^2-4ax\color{red}+\left(\frac{4a}2 \right)^2 - 4a^2\color{black}-5a^2 = \underbrace{(x-2a)^2-9a^2}_{\text{difference of squares}}$

You can factor a difference of squares to:

$(x-2a)^2-9a^2 = \left( (x-2a)-3a\right)\left( (x-2a)+3a\right) = \boxed{(x-5a)(x+a)}$