Section 3.1 and Section 3.2 focused on graphs of polynomials.
We now dive into the algebra of polynomials; in particular we will look at how to factor polynomials into their real zeros.
Recall the definition of a zero:
#4 is the key here: if $c$ is a zero of a degree $n$ polynomial $P(x)$, then $P(x)$ admits a factorization \[\underbrace{P(x)}_{\deg n} = \underbrace{(x-c)}_{\deg 1}\cdot \underbrace{Q(x)}_{\deg n - 1}\]
Dividing both sides by $(x-c)$: \[\dfrac{P(x)}{x - c} = Q(x)\]
So in order to factor, we need to learn how to divide polynomials.
Dividing polynomials is the same as dividing numbers.
Polynomial division is the same as the previous example, except the numbers are replaced with polynomials.
The second form is more useful, we will call it "one-line" notation.
Now we will learn how to factor by dividing.
Remember that if $c$ is a zero of $P(x)$, then $P(c) = 0$.
We just saw $P(c)$ is the remainder, and in particular, we just wrote down it has to be zero! Therefore:
There are two types of "complete factorization."
The first one is over $\mathbb{R}$:
Here's how to find a complete factorization over $\mathbb{R}$.
If $c$ is a zero, by definition $x = c$ is a solution of $x^2 - x - 1 = 0$.
Using the quadratic formula with $a = 1, b = -1, c = -1$: \begin{align} x &= \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a} \\&= \dfrac{-(-1) \pm \sqrt{(-1)^2 - 4\cdot 1 \cdot (-1)}}{2\cdot 1} \\&= \dfrac{1 \pm \sqrt{1 + 4}}{2} \\&= \dfrac{1 \pm \sqrt{5}}{2} \end{align}
The solutions are $x = \dfrac{1 + \sqrt{5}}{2}$ and $x = \dfrac{1 - \sqrt{5}}{2}$.
Therefore $x^2 -x - 1 = \boxed{\left(x - \dfrac{1 + \sqrt{5}}{2}\right)\left(x - \dfrac{1 - \sqrt{5}}{2}\right)}$
A complete factorization over $\mathbb{R}$ could include irreducible quadratics:
Because irreducibles don't have real zeros, we don't want them in a complete factorization over $\mathbb{R}$.
Therefore, we leave irreducibles alone when finding a complete factorization over $\mathbb{R}$.
This tells us the structure of a complete factorization over $\mathbb{R}$:
Suppose $P(x)$ is a polynomial with real coefficients. A complete factorization of $P(x)$ over $\mathbb{R}$ will break down into linear (degree 1) factors and irreducible quadratics.
There are three possibilities: \begin{align} P(x) &= (\text{linear factors}) \\P(x) &= (\text{linear factors}) \cdot (\text{irreducible factors}) \\P(x) &= (\text{irreducible factors}) \end{align}First, we verify $P(2) = 0$. We have \begin{align}P(2) &= 2^4 - 4\cdot 2^3 + 5\cdot 2^2 - 4\cdot 2 + 4 \\&= 16 - 32 + 20 - 8 + 4 \\&= -16 + 12 + 4 \\&= 0\end{align}
So $(x - 2)$ is a factor. Long dividing:
So $Q(x) = x^3 - 2x^2 + x - 2$.
We have two options:
Let's go with option 2. We have \begin{align} Q(x) &= x^3 - 2x^2 + x - 2 \\&= x^2(x - 2) + (x -2) \\&= (x-2)(x^2 + 1) \end{align}
Because we saw earlier $x^2 + 1$ is irreducible, a complete factorization of $P(x)$ over $\mathbb{R}$ is $\boxed{P(x) = (x-2)^2(x^2+1)}$
Section 3.5 will show you the irreducibles can be factored!