2.2 Completing the Square
A-level Maths Year 1 (AS) · Edexcel 9MA0 · Chapter 2: Quadratics
A free A-level Maths Year 1 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: writing quadratics as a(x + p)² + q, solving equations and finding maximum or minimum values. Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.
What you will learn
- Write x² + bx + c in the form (x + p)² + q
- Complete the square when the coefficient of x² is not 1, including negative coefficients
- Solve quadratic equations by completing the square and give exact answers
- Use completed square form to find a minimum or maximum value and to prove an expression is always positive
Key words
- Completed square form: A quadratic written as a(x + p)² + q, for example 2(x − 3)² − 13.
- Perfect square: An expression such as (x + 3)² = x² + 6x + 9: a bracket squared.
- Minimum value: The smallest value an expression can take. (x + p)² + q has minimum value q, when x = −p.
- Maximum value: The largest value. q − (x + p)² has maximum value q, when x = −p.
- Identity: True for all x, written with ≡, e.g. x² + 6x ≡ (x + 3)² − 9.
Completing the square for x² + bx + c
(x + 3)² = x² + 6x + 9. So x² + 6x is the same as (x + 3)² with the 9 taken away. In general, halve the coefficient of x to get the number in the bracket, then subtract its square.
Key fact: x² + bx ≡ (x + b/2)² − (b/2)²
Worked example: b even
Write x² + 10x + 7 in the form (x + p)² + q
Half of 10 is 5: x² + 10x = (x + 5)² − 25
x² + 10x + 7 = (x + 5)² − 25 + 7
Answer: (x + 5)² − 18
Worked example: b odd
Write x² − 3x + 1 in the form (x + p)² + q
Half of −3 is −3/2: x² − 3x = (x − 3/2)² − 9/4
(x − 3/2)² − 9/4 + 4/4
Answer: (x − 3/2)² − 5/4
When the coefficient of x² is not 1
Take the coefficient of x² out of the x² and x terms only. Complete the square inside the bracket, then multiply out the outer bracket and collect the constants.
Worked example: a = 2
Write 2x² − 12x + 5 in the form a(x + p)² + q
2x² − 12x + 5 = 2(x² − 6x) + 5
= 2[(x − 3)² − 9] + 5 = 2(x − 3)² − 18 + 5
Answer: 2(x − 3)² − 13
Worked example: negative coefficient of x²
Write 7 + 4x − x² in the form q − (x + p)²
7 + 4x − x² = −(x² − 4x) + 7
= -[(x − 2)² − 4] + 7 = −(x − 2)² + 4 + 7
Answer: 11 − (x − 2)²
Check: Check by expanding: 2(x − 3)² − 13 = 2x² − 12x + 18 − 13 = 2x² − 12x + 5
Solving equations by completing the square
Once the quadratic is in the form a(x + p)² + q = 0, rearrange to make the bracket squared the subject, then square root both sides (both signs). This gives exact answers.
Worked example: exact answers
Solve x² − 8x + 3 = 0 by completing the square.
(x − 4)² − 16 + 3 = 0, so (x − 4)² = 13
x − 4 = ±√13
Answer: x = 4 ± √13
Worked example: a = 3
Solve 3x² + 6x − 2 = 0, giving exact answers.
3(x + 1)² − 3 − 2 = 0, so (x + 1)² = 5/3
x + 1 = ±√(5/3) = ±√15/3
Answer: x = −1 ± √15/3
Worked example: where the quadratic formula comes from
Divide ax² + bx + c = 0 by a: x² + (b/a)x + c/a = 0
Complete the square: (x + b/2a)² − b²/4a² + c/a = 0
So (x + b/2a)² = (b² − 4ac)/4a² and x + b/2a = ±(√(b² − 4ac))/2a
Answer: x = (−b ± √(b² − 4ac))/2a
Maximum and minimum values
A square is never negative: (x − 3)² ≥ 0 for every x. So (x − 3)² + 5 ≥ 5. The smallest value, 5, happens when the bracket is zero, at x = 3. On the graph this is the lowest point.
Worked example: prove an expression is always positive
Prove that x² − 6x + 14 > 0 for all real values of x.
x² − 6x + 14 = (x − 3)² − 9 + 14 = (x − 3)² + 5
(x − 3)² ≥ 0 for all x, so (x − 3)² + 5 ≥ 5 > 0
Answer: x² − 6x + 14 > 0 for all real x
Worked example: a maximum value
Find the maximum value of 7 + 4x − x² and the value of x where it occurs.
From part 2: 7 + 4x − x² = 11 − (x − 2)²
(x − 2)² ≥ 0, so the expression is at most 11, when x − 2 = 0
Answer: maximum value 11 when x = 2
Common mistakes
- Forgetting to subtract the square: x² + 10x + 7 is not (x + 5)² + 7.
- Not multiplying the subtracted square by a: 2(x² − 6x) + 5 = 2[(x − 3)² − 9] + 5, so −18, not −9.
- Getting the sign in the bracket wrong. x² − 8x gives (x − 4)², and the turning point is at x = +4.
- Square rooting only one sign when solving: (x − 4)² = 13 gives x − 4 = ±√13.
Revision questions
Try these, then check your answers below each one.
Question 1. Which is x² − 9x + 5 in completed square form? (Choose from: (x − 9/2)² − 61/4; (x + 9/2)² − 61/4; (x − 9/2)² + 101/4; (x − 9)² − 76.)
Answer: (x − 9/2)² − 61/4
Working: x² − 9x = (x − 9/2)² − 81/4. Then −81/4 + 5 = −81/4 + 20/4 = −61/4.
Question 2. Find the minimum value of x² + 6x + 20.
Answer: 11
Working: x² + 6x + 20 = (x + 3)² + 11. The least value of (x + 3)² is 0, so the minimum value is 11.
Question 3. Jo says that x² − 4x + 7 is positive for every real value of x. Is Jo correct?
Answer: Yes
Working: x² − 4x + 7 = (x − 2)² + 3 ≥ 3 > 0 for all x, so Jo is correct.
Related lessons
- Previous lesson: 2.1 Solving Quadratic Equations
- Next lesson: 2.3 Functions
- In this chapter: 2.4 Quadratic Graphs
- In this chapter: 2.5 The Discriminant
- In this chapter: 2.6 Modelling with Quadratics
Continue in the full course
This lesson is section 2.2 of our free A-level Maths Year 1 (AS) course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved. Go to the full A-level Maths Year 1 (AS) course.