Maths › Algebra and functions › Quadratic functions

Quadratic functions

A quadratic can be written in factorised, completed-square or expanded form, and each form displays something different: the roots, the vertex and the y-intercept respectively. The discriminant gives the number of real roots before any solving is done.

Builds on Indices and surds.

IN THIS TOPIC

  • Read roots, vertex and intercept off the three written forms of a quadratic.
  • Complete the square when the leading coefficient is not 1.
  • Use the discriminant to count real roots.
  • Find the values of a parameter that force real, repeated or no roots.
  • Solve a quadratic in a function of the unknown by naming the substitution.

COMMON MISCONCEPTION

If b² − 4ac comes out negative, you made a mistake.

A negative discriminant is a valid result and a complete answer: the equation has no real roots and the parabola does not meet the x-axis. The sign of b2 − 4ac counts the real roots in all three cases, positive giving two distinct roots, zero giving one repeated root, and negative giving none.

Three forms, one parabola

A quadratic function f(x) = ax2 + bx + c draws a parabola, opening upward when a > 0 and downward when a < 0, and each way of writing it answers a different question at sight. The expanded form shows the y-intercept, c. The factorised form shows the roots. Completing the square shows the vertex, because

ax2+bx+c=a(x+b2a)2+(c−b24a)ax^{2} + bx + c = a(x + \frac{b}{2a})^{2} + (c − \frac{b^{2}}{4a})

puts all the x-dependence inside one squared bracket. A square is at its smallest when its bracket is zero, so the vertex sits at x = −b/(2a), and whatever constant is left outside the bracket is the minimum, or maximum, value itself.

The same parabola three times: expanded form shows the y-intercept 3, completed-square form the vertex 2, minus 1, and factorised form the roots 1 and 3
Describe the drawing

Three copies of the same computed parabola: the first marks where it cuts the y-axis at 3, which the expanded form displays; the second marks the vertex at 2, minus 1, which the completed square names; the third marks the roots 1 and 3, which the factorised brackets plant. All three forms are checked equal.

FIG. 1One parabola drawn three times, each copy marking the feature its own form shows at sight: the y-intercept 3 from the expanded x² − 4x + 3, the vertex (2, −1) from the completed square, and the roots 1 and 3 from the factorised brackets.

Completing the square in practice

With a leading coefficient other than 1 there is one extra step: take the coefficient out of the x terms only, complete the square inside the bracket, then multiply back out.

WORKED EXAMPLE

A leading coefficient of 2

Express 2x2 − 12x + 7 in the form a(x + p)2 + q, and state the minimum point of the curve.

Take the 2 out of the x terms. 2(x2 − 6x) + 7 = 2[(x − 3)2 − 9] + 7.

Distribute. 2(x − 3)2 − 18 + 7 = 2(x − 3)2 − 11.

The bracket is zero at x = 3, so the minimum point is (3, −11). Expanding the answer back checks the result.

The computed parabola of 2x squared minus 12x plus 7 with its lowest point marked at 3, minus 11: the completed-square form names that vertex directly, because the squared bracket is smallest, zero, at x equals 3.
FIG. 2The completed square, drawn: y = 2(x − 3)² − 11 has its lowest point exactly at (3, −11), because the squared bracket cannot go below zero.

The discriminant

The quadratic formula must be learnt:

x=−b±b2−4ac2ax = \frac{−b \pm \sqrt{b^{2} − 4ac}}{2a}NOT IN THE BOOKLET: LEARN IT

The quantity under the root, b2 − 4ac, is the discriminant, and its sign gives the number of real roots. Positive: two distinct real roots. Zero: one repeated root. Negative: no real roots. A negative discriminant is a valid result: the parabola does not meet the x-axis.

Three computed parabolas over their own axes: the first crosses twice with positive discriminant, the second just touches with discriminant zero, and the third floats clear with negative discriminant and no real roots.
FIG. 3The three cases, computed: b² − 4ac positive and the curve crosses twice; zero and it touches once, at the vertex; negative and it misses the axis entirely.

WORKED EXAMPLE

Choosing k for a repeated root

Find the values of k for which x2 + kx + 9 = 0 has a repeated root.

Repeated root means discriminant zero, so k2 − 4 × 1 × 9 = 0 and k2 = 36.

k = 6 or −6. Two different parabolas, each just touching the axis.

A quadratic containing a parameter with a stated condition on its roots is a discriminant question: translate the condition on the roots into a condition on the sign of b2 − 4ac, then solve.

GUIDED PRACTICE

A condition, not a value

Find the set of values of k for which x2 + 3x + k = 0 has real roots, before opening the working.

Show the working

Real roots means b2 − 4ac ≥ 0, so here 9 − 4k ≥ 0.

So k ≤ 9/4, or {k : k ≤ 9/4} in set notation. The inequality is not strict, because “real roots” includes the repeated root at k = 9/4.

The hidden quadratic

An equation may be quadratic in a function of the unknown rather than in x itself, which a substitution makes visible. Powers, roots, and trigonometric and exponential expressions can each take the role of the substituted variable, as in x − 6√x + 4 = 0 with u = √x.

WORKED EXAMPLE

An exponential with a quadratic inside

Solve 4x − 7(2x) + 12 = 0.

Since 4x = (2x)2 by the index laws, substitute u = 2x to get u2 − 7u + 12 = 0.

Factorise. (u − 3)(u − 4) = 0, so u = 3 or u = 4.

Return to x. 2x = 3 gives x = log2 3, and 2x = 4 gives x = 2. One exact logarithm and one integer, both valid because each value of u is positive.

The steps are the same in every case: identify the squared expression, define u, solve the quadratic in u, translate each value back into x, and check that each value of u is consistent with the substitution, here u = 2x > 0.

INDEPENDENT PRACTICE

A quartic that is secretly a quadratic

Solve x4 − 5x2 + 4 = 0.

Show the working

Substitute u = x2. Then u2 − 5u + 4 = (u − 1)(u − 4) = 0, so u = 1 or u = 4.

Translate back. x2 = 1 gives x = ±1, and x2 = 4 gives x = ±2. Four roots, at x = −2, −1, 1 and 2.

Translating back doubles the number of solutions here, because each positive value of u gives two values of x. Solutions can be gained or lost at the substitution, so check each one in the original equation.

ASSESSMENT FOCUS

  • With a ≠ 1, take the coefficient out of the x terms only, complete the square inside the bracket, then distribute back out. Expand your answer to check.
  • State the discriminant condition before computing it: “real and distinct roots means b2 − 4ac > 0”.
  • “Real roots” includes the repeated case and gives ≥; “distinct real roots” excludes it and gives >. The wording determines which inequality to write.
  • For a quadratic in a function of the unknown, write the substitution u = 2x or u = x2 explicitly, translate every value of u back into x, and reject any impossible value with a stated reason.
  • Match the tool to the question. Factorise when it is quick, complete the square when a vertex or an exact surd is wanted, and use the formula when nothing factorises.
  • A negative discriminant is a complete answer: state “no real roots”. Not every quadratic equation has real solutions.

CHECK YOURSELF

Express 3x2 + 6x − 2 in the form a(x + p)2 + q, state the minimum point, and use the discriminant to say how many real roots 3x2 + 6x − 2 = 0 has.

Show a hint

Take out the 3 first; the discriminant only needs a, b and c.

Show the answer

3(x2 + 2x) − 2 = 3[(x + 1)2 − 1] − 2 = 3(x + 1)2 − 5.

Bracket zero at x = −1, leftover constant −5, so the minimum point is (−1, −5).

b2 − 4ac = 36 + 24 = 60 > 0, so the equation has two distinct real roots, which agrees with a minimum sitting below the axis on an upward parabola.

The completed square gives the vertex, and the constant outside the bracket is the maximum or minimum value.

The sign of the discriminant gives the number of real roots: two, one repeated, or none.

WORKBOOK

Printable practice for this topic: original exam-style questions with room to work, and a fully worked answer book. Free to use; please do not redistribute or sell.

15 questions on this topicAnswer them one at a time and mark yourself against the worked answer.Practise this topic

Or read them with their worked answers on the quadratic functions questions page.

CHECK YOUR PROGRESS

Rate how confident you feel with each objective for this lesson. Ratings are saved in this browser, on this device, unless you sign in.

  • Read roots, vertex and intercept off the three written forms of a quadratic.
  • Complete the square when the leading coefficient is not 1.
  • Use the discriminant to count real roots.
  • Find the values of a parameter that force real, repeated or no roots.
  • Solve a quadratic in a function of the unknown by naming the substitution.

Open the full revision checklist to see every objective in the course in one place.