Solve the following equation for $x$: $$x^2+(a-3)x-4a-4=0$$
The book I am reading says that the roots are: $x_1=4, x_2 = -a-1$.
I am stuck in showing that these are the roots.
My notes: $$D=a^2+10a+25$$ And I can use any $a$ for $D$, because there is no opportunity for $D<0$
$$x^{2}+(a-3)x-4a-4=0$$
Using Bashkara's formula: $$x=\frac{-b±\sqrt{b^{2}-4ac}}{2a}$$
We have:
$$x=\frac{(-a+3)±\sqrt{(a-3)^{2}-4×(-4a-4)}}{2}$$ $$x = \frac{-a+3±\sqrt{a^{2}-6a+9+16a+16}}{2}$$ $$x=\frac{-a+3±\sqrt{a^{2}+10a+25}}{2}$$ $$x=\frac{-a+3±\sqrt{(a+5)^{2}}}{2}$$ $$x=\frac{-a+3±(a+5)}{2}$$
So we have that
$$x=\frac{-a+3+a+5}{2}$$ or $$x=\frac{-a+3-a-5}{2}$$
So we have that $x=4$ or $x=-a-1$.