I'm trying to use the quadratic equation (QE) to factor a degree 2 polynomial into the format: $(x + a)^2$, where a is any real number.
This works great for equations like:
(1) $x^2 + 2x + 1$
The QE gives roots $x = \{-1, -1\}$, and $(x + 1)^2 = x^2 + 2x + 1$.
This approach fails for other polynomials such as:
(2) $9x^2 + 36x + 36$
The roots found with the QE are $x = \{-2, -2\}$. But $(x + 2)^2 \ne 9x + 36x + 36$.
9 is the GCF from the coefficients of (2), so (2) can be rewritten as:
$9 \times (x^2 + 4x + 4)$
and by using the QE on the second term, this equals:
$9 \times (x + 2)^2$. And $9 \times (x + 2)^2 = 9x + 36x + 36$ (2), so this seems to be a better approach.
So my question is: must the input to QF be a polynomial that has coefficients with GCF = $1$, for the result to give roots that can be used to reconstruct the original function?