A step-by-step journey — from zero to factoring
Find the value of $x$ that makes this true: $$x - 5 = 0$$
Answer: $x = 5$
$$2(x - 3) = 0$$
Answer: $x = 3$
$$(x - 3)\,(50 \cdot 10 + 10 - 5) = 0$$
Answer: $x = 3$
No matter how big or complicated a constant factor looks, if it isn't zero, only the variable factor matters.
$$(x-1)(x-2) = 0$$
Answer: $x = 1$ or $x = 2$
A quadratic equation can have two solutions. Both are valid.
$$10\left(x - \frac{1}{2}\right)\!\left(x - \frac{2}{3}\right) = 0$$
Answer: $x = \dfrac{1}{2}$ or $x = \dfrac{2}{3}$
$$(x-4)(x-5)(x-6) = 0$$
Answer: $x = 4$, $x = 5$, or $x = 6$
This is a cubic equation with three solutions — one per factor.
$$(x + 3)(x - 7) = 0$$
Answer: $x = -3$ or $x = 7$
One solution is negative, one is positive — both are perfectly valid.
$$(2x - 1)(3x + 6) = 0$$
Answer: $x = \dfrac{1}{2}$ or $x = -2$
$$x(x - 1)(x + 5) = 0$$
Answer: $x = 0$, $x = 1$, or $x = -5$
Multiply out $(a+b)^2 = (a+b)(a+b)$. What do you get?
$$(a+b)^2 = a^2 + 2ab + b^2$$
Now expand $(a-b)^2 = (a-b)(a-b)$. What do you get?
$$(a-b)^2 = a^2 - 2ab + b^2$$
Using your answers from B1 and B2, compute: $$(a+b)^2 - (a-b)^2$$
$$(a+b)^2 - (a-b)^2 = 4ab$$
Rearranging: $(a-b)^2 = (a+b)^2 - 4ab$
You know two things about $a$ and $b$: $$a + b = 5 \qquad \text{and} \qquad ab = 6$$ Find $a$ and $b$ individually.
$a = 3,\; b = 2$
Check: $3 + 2 = 5$ ✓, $3 \times 2 = 6$ ✓
Given $a + b = 7$ and $ab = 12$, find $a$ and $b$.
$a = 4,\; b = 3$
Given $a + b = 6$ and $ab = 8$, find $a$ and $b$.
$a = 4,\; b = 2$
Multiply out $(a + b)(a - b)$. What pattern do you notice?
$$(a+b)(a-b) = a^2 - b^2$$
This is the difference of two squares identity. The middle terms cancel perfectly. Read it backwards: $a^2 - b^2 = (a+b)(a-b)$ — very useful for factoring!
Given $a + b = 10$ and $ab = 16$, find $a$ and $b$.
$a = 8,\; b = 2$
Check: $8 + 2 = 10$ ✓, $8 \times 2 = 16$ ✓
Given $a + b = 3$ and $ab = -10$, find $a$ and $b$.
$a = 5,\; b = -2$
Check: $5 + (-2) = 3$ ✓, $5 \times (-2) = -10$ ✓
Given $a + b = 1$ and $ab = -\dfrac{3}{4}$, find $a$ and $b$.
$a = \dfrac{3}{2},\; b = -\dfrac{1}{2}$
Check: $\dfrac{3}{2} + \left(-\dfrac{1}{2}\right) = 1$ ✓, $\dfrac{3}{2} \times \left(-\dfrac{1}{2}\right) = -\dfrac{3}{4}$ ✓
Given $a + b = 8$ and $ab = 15$, find $a$ and $b$.
$a = 5,\; b = 3$
Check: $5 + 3 = 8$ ✓, $5 \times 3 = 15$ ✓
Given $a + b = -5$ and $ab = 6$, find $a$ and $b$.
$a = -2,\; b = -3$
Check: $(-2) + (-3) = -5$ ✓, $(-2) \times (-3) = 6$ ✓
Given $a + b = 2$ and $ab = -8$, find $a$ and $b$.
$a = 4,\; b = -2$
Check: $4 + (-2) = 2$ ✓, $4 \times (-2) = -8$ ✓
Given $a + b = 0$ and $ab = -9$, find $a$ and $b$.
$a = 3,\; b = -3$
When the sum is 0, the two numbers are always negatives of each other: $b = -a$. Check: $3 + (-3) = 0$ ✓, $3 \times (-3) = -9$ ✓
Given $a + b = 5$ and $ab = \dfrac{9}{4}$, find $a$ and $b$.
$a = \dfrac{9}{2},\; b = \dfrac{1}{2}$
Check: $\dfrac{9}{2} + \dfrac{1}{2} = 5$ ✓, $\dfrac{9}{2} \times \dfrac{1}{2} = \dfrac{9}{4}$ ✓
Write $x^2 - 2x + 1$ in the form $(x - a)(x - b)$.
$$x^2 - 2x + 1 = (x-1)(x-1) = (x-1)^2$$
This is a perfect square. The equation $x^2 - 2x + 1 = 0$ has a single (repeated) solution $x = 1$.
$$x^2 - 5x + 6 = (x - a)(x - b)$$
$$x^2 - 5x + 6 = (x-3)(x-2)$$
Solutions: $x = 3$ or $x = 2$
$$x^2 + 7x + 12 = (x - a)(x - b)$$
$$x^2 + 7x + 12 = (x+3)(x+4)$$
Solutions: $x = -3$ or $x = -4$
$$x^2 - x - 6 = (x - a)(x - b)$$
$$x^2 - x - 6 = (x-3)(x+2)$$
Solutions: $x = 3$ or $x = -2$
$$x^2 - 4x + 1 = (x - a)(x - b)$$
$$x^2 - 4x + 1 = \bigl(x - (2+\sqrt{3})\bigr)\bigl(x - (2-\sqrt{3})\bigr)$$
Solutions: $x = 2 \pm \sqrt{3}$
Solve the general quadratic $$ax^2 + bx + c = 0, \quad a \neq 0$$ by dividing through by $a$ and applying the same method we used above.
$$\boxed{x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}}$$
This is the quadratic formula — and you just derived it from first principles!
The expression $b^2 - 4ac$ is called the discriminant. When it is negative, there are no real solutions.
$$x^2 - 16 = (x - a)(x - b)$$
$$x^2 - 16 = (x - 4)(x + 4)$$
Solutions: $x = 4$ or $x = -4$
Shortcut: whenever the $x$-term is missing and the constant is negative, look for difference of squares.
$$x^2 + 2x - 15 = (x - a)(x - b)$$
$$x^2 + 2x - 15 = (x - 3)(x + 5)$$
Solutions: $x = 3$ or $x = -5$
$$x^2 - 3x - \frac{10}{4} = (x - a)(x - b)$$
$$x^2 - 3x - \frac{5}{2} = \left(x - \frac{3+\sqrt{19}}{2}\right)\!\left(x - \frac{3-\sqrt{19}}{2}\right)$$
Solutions: $x = \dfrac{3 \pm \sqrt{19}}{2}$
$$2x^2 - 7x + 3 = 0$$ The leading coefficient is not 1. Divide through by 2 first, then factor.
$$2x^2 - 7x + 3 = 2\!\left(x - 3\right)\!\left(x - \frac{1}{2}\right) = (x-3)(2x-1)$$
Solutions: $x = 3$ or $x = \dfrac{1}{2}$
Try to factor $x^2 + x + 1$. What goes wrong? $$x^2 + x + 1 = (x - a)(x - b) \;?$$
No real solutions exist.
The discriminant $b^2 - 4ac = 1 - 4 = -3 < 0$. When the discriminant is negative, the quadratic has no real roots — it cannot be factored over the real numbers. (In the complex numbers, the roots are $x = \dfrac{-1 \pm i\sqrt{3}}{2}$.)