
Jaison N. answered 08/18/13
A PhD to Teach You Math
First, FOIL the left side.
x2 + 2kx + k2 = x2 + ax + a
Both sides have a factor of x2 so subtract it to remove it from the equation.
2kx + k2 = ax + a
Now, I'm going to move everything over to the left by subtracting ax and a from both sides.
2kx - ax + k2 - a = 0
Now, factor out the x from the first two terms.
(2k - a)x + (k2 - a) = 0
So, look on the left. We have a constant times x, and x can assume pretty much any number and we have a constant. But on the right, we have 0. This means that no matter what number replace x with, the left has to be 0. So, I can set 2k = a and k2 = a and that will guarantee that the last equation will always be zero for every value of x I can think of. Solve those equations and you'll get the numbers Robert gets above.