Sub topic 3
Completing the Square
Prerequisites and purpose
Assume you can solve linear equations, expand expressions, simplify square roots, and work with fractions. You should also recognize a quadratic equation in standard form:
\[ ax^2+bx+c=0,\qquad a\ne0 \]
Completing the square rewrites part of a quadratic as the square of a binomial, such as \((x+2)^2\). This method explains where the quadratic formula comes from.
The key idea
For any expression \(x^2+px\), add the square of half its coefficient:
\[ x^2+px+\left(\frac p2\right)^2 = \left(x+\frac p2\right)^2 \]
For example:
\[ x^2+6x+9=(x+3)^2 \]
The added number is \(9\), because half of \(6\) is \(3\), and \(3^2=9\). When solving an equation, whatever you add to one side must also be added to the other side.
Deriving the quadratic formula
Start with a quadratic in standard form:
\[ ax^2+bx+c=0 \]
First divide every term by \(a\):
\[ x^2+\frac ba x+\frac ca=0 \]
Move the constant term to the other side:
\[ x^2+\frac ba x=-\frac ca \]
The coefficient of \(x\) is \(b/a\). Half of it is \(b/(2a)\), so add its square to both sides:
\[ x^2+\frac ba x+\left(\frac b{2a}\right)^2 = -\frac ca+\left(\frac b{2a}\right)^2 \]
The left side is now a perfect square:
\[ \left(x+\frac b{2a}\right)^2 = -\frac ca+\frac{b^2}{4a^2} \]
Use a common denominator on the right:
\[ \left(x+\frac b{2a}\right)^2 = \frac{b^2-4ac}{4a^2} \]
Take the square root of both sides. Remember that a positive square can come from either a positive or negative number:
\[ x+\frac b{2a} = \pm\frac{\sqrt{b^2-4ac}}{2a} \]
Finally, subtract \(b/(2a)\):
\[ \boxed{x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}} \]
The expression \(b^2-4ac\) will later be called the discriminant.
Worked example
Solve:
\[ 2x^2+8x+3=0 \]
Divide by \(2\):
\[ x^2+4x+\frac32=0 \]
Move the constant:
\[ x^2+4x=-\frac32 \]
Half of \(4\) is \(2\), and \(2^2=4\). Add \(4\) to both sides:
\[ x^2+4x+4=-\frac32+4 \]
Rewrite and simplify:
\[ (x+2)^2=\frac52 \]
Take both square roots:
\[ x+2=\pm\sqrt{\frac52} \]
Since \(\sqrt{5/2}=\sqrt{10}/2\),
\[ \boxed{x=-2\pm\frac{\sqrt{10}}2} \]
The same result comes from substituting \(a=2\), \(b=8\), and \(c=3\) into the quadratic formula.
Common errors
- Add \((b/2a)^2\), not \(b/2a\).
- Add the same quantity to both sides.
- Divide every term by \(a\), including the constant term.
- Keep the \(\pm\) after taking a square root.
- Check the result by substituting each root into the original equation.
Exercise
Complete the square and solve x² − 6x + 2 = 0.
Show answer
Move the constant: x² − 6x = −2. Add 9 to both sides: (x − 3)² = 7. Therefore, x = 3 ± √7.