2.3 Quadratic functions, the discriminant and completing the square — Learn
Prerequisites: expanding brackets; factorising; the index laws from 2.1; substituting a value into an expression.
By the end of this section you can: write a quadratic in completed-square form; read off its vertex and its line of symmetry; use the discriminant to say how many real roots the equation has; and connect the completed-square sign to the shape of the curve.
1. Three forms of the same function
A quadratic function has the form , with . Its graph is a parabola. The same function can be written in three ways, and each way shows a different feature.
| Form | Example | What it shows |
|---|---|---|
| Expanded | the -intercept, | |
| Factorised | the roots, and | |
| Completed square | the vertex, |
The three forms are equal for every value of . Choosing a form is choosing which feature you want to read.
2. Completing the square
To complete the square for a monic quadratic (one with ), take half of the coefficient of and write the square of plus that number.
Example 1. Write in completed-square form.
Half of is , and
The expanded square has where the expression has . Subtract the difference, :
Watch the sign of the bracket: the square is because the coefficient is positive.
Example 2. Write in the form .
Take the factor out of the first two terms:
Complete the square inside the bracket. Half of is , and :
Substitute back and multiply the by the outside factor :
3. The vertex and the minimum
A square is never negative, so for every . This is the key to the completed-square form.
For with :
- the smallest value of the bracket is , at ;
- the smallest value of is therefore ;
- the vertex (turning point) is ;
- the line of symmetry is .
If the parabola opens downwards, and the vertex gives the maximum instead. The -intercept is always the value of when .
4. The discriminant
The roots of come from the quadratic formula
Everything about the roots is decided by the expression under the square root. It is called the discriminant, written :
| Value of the discriminant | Number of real roots | The graph |
|---|---|---|
| two distinct real roots | crosses the -axis twice | |
| one repeated real root | touches the -axis once | |
| no real roots | never meets the -axis |
The third row is the reason a negative discriminant is useful: it proves that a quadratic equation cannot be solved with real numbers, and it shows why.
5. Try it: the parabola explorer
Predict first. For , the vertex moves as changes and the number of roots changes as changes. If you keep and change , will the vertex stay on the -axis, or move? Write your prediction down before you touch the sliders.
Test. Move the sliders for and . The panel reports the completed-square form, the vertex, and the discriminant.
Explain. For which values of does the parabola cross the -axis twice? Find the value of at which the two crossings become one. Write two sentences linking the discriminant to what you see.
Watch out. Completing the square is an identity, and the sign of the bracket follows the sign of .
For , half of is , so the bracket is , not . Expand to check: , which matches. The common error is to copy the sign of into the bracket unchanged.
Re-check: expand your completed-square form and confirm it gives back the original expression, term by term.
Progress check
Return to the chapter problem. The arch is modelled by .
- Write the model in completed-square form, .
- State the greatest height of the arch and where it occurs.
- Solve to find where the arch meets the road.
- The equation asks for a point higher than the arch. Work out the discriminant of and explain what its sign says about the request.
You should now be able to
- write a quadratic in completed-square form, for and for ;
- read the vertex, the line of symmetry and the minimum or maximum value;
- work out the discriminant and use its sign to count the real roots;
- connect the number of crossings of the -axis with the discriminant;
- expand a completed square to check it against the original expression.