Completing the square and solving quadratics
A quadratic is any expression with , and it is the most used piece of algebra in Paper 1. Completing the square tells you where the graph turns and what its least or greatest value is; solving tells you where it crosses the -axis. Almost every other P1 topic, from ranges of functions to tangents to circles, eventually reduces to one of these two skills, so they need to be automatic.
The language of quadratics
A quadratic polynomial in is an expression where , , are constants and . The numbers , , are its coefficients ( is also called the constant term). A quadratic equation is , and its solutions are called its roots.
Two roots that happen to be equal form a repeated root. For example has the repeated root : the graph touches the -axis at one point instead of crossing it twice. Which of these happens is decided by the discriminant.
Completing the square
Why it works
Expand a perfect square:
The coefficient of is , so is half the coefficient of . That means any can be rebuilt from a square:
You subtract because squaring the bracket creates that number, and it was not in the original expression. For example , because has a too many.
Why it is useful
In the bracket is a square, so it is never negative, and it equals only when . So the whole expression is at least , with the least value reached at . Completing the square turns a quadratic into a form where its smallest (or largest) value, and where that happens, can simply be read off.
- The vertex (turning point) of is .
- The line of symmetry is .
- If the graph is -shaped and is the minimum value.
- If the graph is -shaped and is the maximum value.
The general result, for reference:
Watch the sign: has vertex , not . The -coordinate of the vertex is the value that makes the bracket zero.
- If , take out of the and terms only: .
- Inside the bracket, halve the coefficient of . Write .
- Multiply the subtracted number by as you remove the outer bracket.
- Collect the constants.
- Check by expanding mentally: the and coefficients must match the original.
The graph above is : vertex , line of symmetry , -intercept .
Express in the form , and hence state the coordinates of the vertex of .
Solution
Half of is , and :
So , . The bracket is zero when , so the vertex is . Because and the graph is -shaped, this also shows for every real .
Express in the form , and state the minimum value of .
Solution
Take out from the first two terms only:
So , , . The minimum value is , when .
Check: , and . Correct.
Express in the form . Hence state the greatest value of and the value of at which it occurs.
Solution
Take out from the terms:
So , . Since , the expression is at most . The greatest value is , when .
(a) Express in the form .
(b) Hence find the greatest value of and the value of at which it occurs.
Solution
(a)
(b) The denominator is always at least , with least value when . A fraction with numerator and positive denominator is largest when the denominator is smallest. So the greatest value is
The word hence is the clue: the examiner wants the completed square from (a), not calculus.
Taking out of the constant too. is wrong, because it doubles the . Factor out of the and terms only, or, if you do factor it out of everything, write .
Forgetting to multiply the subtracted square by . In the becomes , not .
Reading the vertex sign wrongly. has vertex .
Solving quadratic equations
There are three methods. All three give the same roots; choose the quickest.
| Method | Use it when |
|---|---|
| Factorising | the roots are whole numbers or simple fractions |
| Completing the square | the question has just asked you to complete the square, or says hence |
| The quadratic formula | anything else, especially when exact (surd) answers are asked for |
Factorising
Rewrite as a product of two linear factors, then use the fact that if a product is zero, one of the factors is zero.
When , find two numbers that multiply to and add to , split the middle term with them, and factorise in pairs. For : , and , so
Completing the square
Once the equation is in completed square form, isolate the square and take square roots, remembering both signs.
The quadratic formula
The roots of are
This formula is printed in the list of formulae (MF19), but you should know it.
The formula is just completing the square done once and for all.
Divide by and complete the square:
Exact answers and surds
"Exact" or "in surd form" means leave the square root in and simplify it. Use to pull out square factors: . Then cancel any common factor across the whole numerator and the denominator.
Solve .
Solution
. Two numbers with product and sum are and .
So or .
Solve , giving your answers in the form .
Solution
, , , so .
Every term in the numerator was divisible by , so the cancels with the .
(a) Express in the form .
(b) Hence solve , giving exact answers.
Solution
(a) .
(b)
Solve .
Solution
Multiply every term by the common denominator , which is non-zero for the solutions we want (, ):
So or . Neither makes a denominator zero, so both are valid.
Check : . Correct.
Show that the roots of differ by for every value of the constant .
Solution
The first two terms are the start of , so
Setting this to zero, , so and
The difference is , which does not depend on .
Dividing by loses a root. From , dividing by gives only . Instead write , so , and or .
Forgetting . has two solutions, and .
Cancelling only part of the numerator. is not . Divide every term of the numerator by the same number.
Not setting the equation to zero. does not mean or . Expand and rearrange to first.
Choosing and checking
A quadratic with integer coefficients factorises nicely exactly when is a perfect square. If you cannot see the factors within a few seconds, use the formula: it never fails.
Always check roots by substituting into the original equation, or check that the sum of the roots is and their product is . For : and . Both agree.
The sum and product of roots are a quick check, not a P1 topic you will be asked to prove. Use them silently on your calculator work.
- Command words. "Express in the form" wants the completed square with the constants identified. "Hence" means use the previous part; a different method may score nothing. "Exact" means no decimals.
- Calculators. Your calculator can solve quadratics, but answers from a calculator with no working may earn no marks. Show the factorisation or the formula with numbers substituted.
- Marks. For completing the square, a typical 3-mark question awards one mark for each of , and correct. A slip in one constant loses only one mark if the method is visible.
- Accuracy. If decimals are acceptable, give them to 3 significant figures unless told otherwise.
- Completing the square: .
- For , factor out of the and terms only, and multiply the subtracted square by .
- has vertex , line of symmetry , and least value if (greatest if ).
- Solve by factorising, completing the square, or .
- Rearrange to before factorising; never divide by .
- Exact answers: simplify the surd and cancel across the whole numerator.
- "Hence" means use the completed square you have just found.
Practice questions
- Express in the form and state the minimum value of .
- Express in the form and state the coordinates of the vertex of .
- (a) Express in the form . (b) Hence solve .
- Solve .
- Solve , giving your answers in exact form.
- Solve .
- (a) Express in the form . (b) Hence explain why for all , and find the greatest value of .
- Solve .
- A quadratic curve has its vertex at and passes through . Find , and .
- Show that, for every value of the constant , the roots of are and . Hence find the value of for which one root is three times the other and both are positive.
Answers
-
. So , , and the minimum value is (at ).
-
. Vertex .
-
(a) , so , . (b) , so , giving or .
-
; . . So or .
-
. .
-
, so , i.e. , . So or .
-
(a) , so . , . (b) , so . The least value of the denominator is (at ), so the greatest value of the fraction is .
-
Multiply by : , so , giving . Then . Neither is , so both are valid.
-
Vertex gives . At : , so . Then . So , , .
-
. Setting this to zero, , so the roots are and . The larger root is , so we need , giving and . The roots are then and , both positive. (The other ordering, , gives and roots and , which are not positive.)