I faced this factorization formula $$ax^2 + bx + c = a(x − x_1)(x − x_2)$$ where $x_1$ is the first solution and $x_2$ is the second one. But I don't understand how the formula gets derived... Could anybody explain it to me? Thanks!
I know I can solve a quadratic equation and substitute the solutions into this formula $a(x − x_1)(x − x_2)$, but I want to understand how it works.
Since $$x_1+x_2 = -{b\over a} \implies b= -a(x_1+x_2)$$ and $$x_1x_2 = {c\over a} \implies c= ax_1x_2$$
so \begin{eqnarray} ax^2+bx+c &=& ax^2-a(x_1+x_2)x+ax_1x_2\\ &=& a(x^2-x_1x-x_2x+x_1x_2)\\ &=& a(x-x_1)(x-x_2)\end{eqnarray}