This topic studies quadratic functions: their maximum or minimum value, sketching their graphs, the conditions for real or equal roots and for a line to meet a curve, and quadratic inequalities.
2.1 Maximum or minimum value of a quadratic function
Completing the square 配方法 turns any quadratic into a form that shows its least or greatest value straight away.
The completed-square form
In $y = a(x - h)^2 + k$, the squared bracket is never negative and is zero when $x = h$. So:
- if $a > 0$, the least value of $y$ is $k$, when $x = h$: a minimum point 极小值点 $(h, k)$;
- if $a < 0$, the greatest value of $y$ is $k$, when $x = h$: a maximum point 极大值点 $(h, k)$.

Both curves are $y = a(x - h)^2 + k$. The sign of $a$ decides whether $(h, k)$ is the lowest or the highest point. Exam papers also call this point the stationary point, for example: "Hence write down the coordinates of the stationary point."
Method when the $x^2$ term is $x^2$
Halve the coefficient of $x$, square the bracket, and subtract the extra square.
Worked example 1. Find the minimum value of $x^2 + 6x + 11$, and the value of $x$ where it occurs.
- Half of 6 is 3: $x^2 + 6x + 11 = (x + 3)^2 - 9 + 11 = (x + 3)^2 + 2$.
- $(x + 3)^2 \geqslant 0$, and it is 0 when $x = -3$.
- Minimum value $2$, when $x = -3$.
Method when the $x^2$ term is $ax^2$
Take $a$ out of the $x$ terms only, complete the square inside, then multiply back.
Worked example 2. Write $2x^2 - 12x + 7$ in the form $a(x + b)^2 + c$.
- $2x^2 - 12x + 7 = 2(x^2 - 6x) + 7$.
- Inside: $x^2 - 6x = (x - 3)^2 - 9$.
- $2[(x - 3)^2 - 9] + 7 = 2(x - 3)^2 - 18 + 7 = 2(x - 3)^2 - 11$.
- So $a = 2$, $b = -3$, $c = -11$. Minimum value $-11$, when $x = 3$.
When the $x^2$ term is negative
Write the $x$ terms in a bracket with a minus sign in front. The answer has the form $c - (x + b)^2$, which has a maximum.
Worked example 3. Write $7 + 4x - x^2$ in the form $c - (x + b)^2$, and state its maximum value.
- $7 + 4x - x^2 = 7 - (x^2 - 4x)$.
- $x^2 - 4x = (x - 2)^2 - 4$, so $7 - [(x - 2)^2 - 4] = 11 - (x - 2)^2$.
- $(x - 2)^2 \geqslant 0$, so the greatest value is $11$, when $x = 2$.
Check by expanding: $11 - (x^2 - 4x + 4) = 7 + 4x - x^2$. ✓
Using the least value in a fraction
When a positive quantity is on the bottom of a fraction with 1 on top, the fraction is greatest when the bottom is least. From Worked example 1, $x^2 + 6x + 11$ has least value 2, so the greatest value of $\dfrac{1}{x^2 + 6x + 11}$ is $\dfrac{1}{2}$.
How many solutions has $f(x) = k$?
The solutions are where the horizontal line $y = k$ meets the curve. If the minimum value is $m$:
- $k > m$: two solutions; $k = m$: one solution; $k < m$: no solutions.
For a maximum value, reverse the signs. From Worked example 1, $x^2 + 6x + 11 = k$ has two solutions when $k > 2$.
2.2 Use maximum or minimum to sketch graph or range
The completed-square form gives the turning point 转折点. Add the axis crossings and you can sketch 草绘 any quadratic, or read off its range 范围.
What a sketch must show
A sketch is not an accurate plot, but it must show:
- the correct shape: a U (cup) when the $x^2$ term is positive, an upside-down U when it is negative;
- the turning point, from completing the square;
- the $x$-intercepts 截距 (roots), from $y = 0$, and the $y$-intercept, from $x = 0$, all labelled.
Worked example 1. Sketch $y = x^2 - 4x - 5$.
- Turning point: $x^2 - 4x - 5 = (x - 2)^2 - 9$, so the minimum point is $(2, -9)$.
- Roots: $(x - 5)(x + 1) = 0$, so $x = 5$ or $x = -1$.
- $y$-intercept: $x = 0$ gives $y = -5$.
Worked example 2. Sketch $y = 3 + 2x - x^2$.
- Turning point: $3 + 2x - x^2 = 4 - (x - 1)^2$, so the maximum point is $(1, 4)$.
- Roots: $(x - 1)^2 = 4$, so $x - 1 = \pm 2$ and $x = 3$ or $x = -1$.
- $y$-intercept: $y = 3$.

Both sketches label the turning point, the two roots and the $y$-intercept.
The range of a quadratic on a domain
Use the sketch. If the turning point is inside the domain, it gives one end of the range; the other end comes from whichever end of the domain is further from it.
Worked example 3. $f(x) = x^2 - 4x - 5$ for $0 \leqslant x \leqslant 6$. Find the range of $f$.
- The minimum point $(2, -9)$ is inside the domain: least value $-9$.
- Ends: $f(0) = -5$ and $f(6) = 36 - 24 - 5 = 7$. The greater is $7$.
- Range: $-9 \leqslant f(x) \leqslant 7$.
If the domain is $x \in \mathbb{R}$, the range is everything above a minimum ($f(x) \geqslant k$) or below a maximum ($f(x) \leqslant k$).
2.3 Conditions for roots and for a line to intersect a curve
One number, the discriminant 判别式 $b^2 - 4ac$, tells you how many roots a quadratic has without solving it. The same test tells you whether a line meets a curve.
The discriminant of $ax^2 + bx + c = 0$
| $b^2 - 4ac$ | roots |
|---|---|
| $> 0$ | two distinct 相异 real roots 实根 |
| $= 0$ | two equal roots (one repeated root) |
| $< 0$ | no real roots |
"Real roots" with no other word means $b^2 - 4ac \geqslant 0$.
Worked example 1. Find $k$ so that $x^2 + 6x + k = 0$ has equal roots 相等的根.
- $a = 1$, $b = 6$, $c = k$. Equal roots: $b^2 - 4ac = 0$.
- $36 - 4k = 0$, so $k = 9$.
Worked example 2. Find the values of $k$ for which $2x^2 - 5x + k = 0$ has two distinct real roots.
- $b^2 - 4ac > 0$: $25 - 8k > 0$.
- $8k < 25$, so $k < \dfrac{25}{8}$.
Does a line meet a curve?
- Set the two expressions for $y$ equal.
- Rearrange to one quadratic $= 0$.
- Use its discriminant: $> 0$ two points, $= 0$ the line is a tangent 切线, $< 0$ no point.

Each discriminant matches one picture: two crossing points, one touching point, or none.
Worked example 3. Find $c$ so that $y = 2x + c$ is a tangent to $y = x^2 - 4x + 10$, and find the point of contact.
- $x^2 - 4x + 10 = 2x + c$, so $x^2 - 6x + (10 - c) = 0$.
- Tangent: $36 - 4(10 - c) = 0$, so $36 - 40 + 4c = 0$ and $c = 1$.
- Then $x^2 - 6x + 9 = 0$, so $(x - 3)^2 = 0$, $x = 3$ and $y = 2(3) + 1 = 7$. Point $(3, 7)$.
When the condition gives a quadratic in $k$
Factorise and sketch the U-shaped graph of the $k$-expression:
- "$< 0$": the values between the roots;
- "$> 0$": the values outside the roots.
Worked example 4. Find the values of $k$ for which $y = kx + 1$ does not meet $y = x^2 + x + 5$.
- $x^2 + x + 5 = kx + 1$, so $x^2 + (1 - k)x + 4 = 0$.
- No meeting point: $(1 - k)^2 - 16 < 0$.
- $k^2 - 2k + 1 - 16 < 0$, so $k^2 - 2k - 15 < 0$ and $(k - 5)(k + 3) < 0$.
- Between the roots: $-3 < k < 5$.
When $k$ is in the $x^2$ term
The equation $kx^2 + \ldots = 0$ is a quadratic only when $k \neq 0$, so state $k \neq 0$ in the answer.
To show that an equation has distinct real roots for all values of $k$, simplify $b^2 - 4ac$ and explain why it is always positive. A square is never negative.
Worked example 5. Show that $kx^2 + (k + 2)x + 1 = 0$, where $k \neq 0$, has two distinct real roots for all values of $k$.
- $b^2 - 4ac = (k + 2)^2 - 4k = k^2 + 4k + 4 - 4k = k^2 + 4$.
- $k^2 \geqslant 0$, so $k^2 + 4 \geqslant 4 > 0$. The roots are real and distinct for all $k$.
2.4 Solve quadratic equations for real roots
There are three ways to solve a quadratic equation. Choose the quickest one, and give the answer in the form the question asks for.
Choosing a method

Always start by moving every term to one side, so that the equation is $ax^2 + bx + c = 0$.
1. Factorising
Worked example 1. Solve $2x^2 - 7x + 3 = 0$.
- Find two numbers with product $2 \times 3 = 6$ and sum $-7$: $-6$ and $-1$.
- $2x^2 - 6x - x + 3 = 2x(x - 3) - (x - 3) = (2x - 1)(x - 3) = 0$.
- $x = \dfrac{1}{2}$ or $x = 3$.
2. The quadratic formula
The quadratic formula 求根公式 is given in the exam's List of formulas:
Worked example 2. Solve $3x^2 + 4x - 2 = 0$. Give exact completely correct in every detail answers, then answers to 3 significant figures 有效数字.
- $a = 3$, $b = 4$, $c = -2$:
$$x = \frac{-4 \pm \sqrt{16 + 24}}{6} = \frac{-4 \pm \sqrt{40}}{6}$$
- Simplify the surd 根式: $\sqrt{40} = \sqrt{4 \times 10} = 2\sqrt{10}$, so $x = \dfrac{-4 \pm 2\sqrt{10}}{6} = \dfrac{-2 \pm \sqrt{10}}{3}$.
- To 3 s.f.: $x = 0.387$ or $x = -1.72$.
3. Completing the square
Worked example 3. Solve $x^2 - 6x + 4 = 0$, giving exact answers.
- $(x - 3)^2 - 9 + 4 = 0$, so $(x - 3)^2 = 5$.
- $x - 3 = \pm\sqrt{5}$, so $x = 3 + \sqrt{5}$ or $x = 3 - \sqrt{5}$.
Equations that become quadratics
Multiply through to clear a fraction, then rearrange. Check that no answer makes a denominator zero.
Worked example 4. Solve $x + \dfrac{6}{x} = 5$.
- Multiply by $x$: $x^2 + 6 = 5x$, so $x^2 - 5x + 6 = 0$.
- $(x - 2)(x - 3) = 0$, so $x = 2$ or $x = 3$.
Where a line meets a curve
Set the two expressions for $y$ equal, solve for $x$, then find each $y$ from the line.
Worked example 5. Find where $y = x + 1$ meets $y = x^2 - 3x + 4$.
- $x^2 - 3x + 4 = x + 1$, so $x^2 - 4x + 3 = 0$ and $(x - 1)(x - 3) = 0$.
- $x = 1$: $y = 2$. $x = 3$: $y = 4$. Points $(1, 2)$ and $(3, 4)$.
2.5 Solution set for quadratic inequalities
A quadratic inequality 不平等 such as $x^2 - x - 6 < 0$ is true for a whole interval of $x$, not just for two values. A quick sketch shows which interval.
Four steps
- Rearrange so that one side is $0$ and the $x^2$ term is positive.
- Solve the equation $= 0$. Its roots are the critical values 临界值.
- Sketch the U-shaped curve through the critical values.
- Read off the answer:
- "$< 0$" (below the axis): the values between the critical values, $a < x < b$;
- "$> 0$" (above the axis): the values outside them, $x < a$ or $x > b$.
Use $\leqslant$ or $\geqslant$ in the answer when the question has them.

The thick parts of the $x$-axis are the answers. An open dot means the critical value is not included; a filled dot means it is.
Worked example 1. Solve $x^2 - x - 6 < 0$.
- $(x - 3)(x + 2) = 0$: critical values $-2$ and $3$.
- "$< 0$": between, so $-2 < x < 3$.
Worked example 2. Solve $2x^2 + 5x - 3 \geqslant 0$.
- $(2x - 1)(x + 3) = 0$: critical values $-3$ and $\dfrac{1}{2}$.
- "$\geqslant 0$": outside, so $x \leqslant -3$ or $x \geqslant \dfrac{1}{2}$.
Worked example 3. Solve $x(x + 2) > 15$.
- $x^2 + 2x - 15 > 0$, so $(x + 5)(x - 3) > 0$: critical values $-5$ and $3$.
- Outside: $x < -5$ or $x > 3$.
When the $x^2$ term is negative
Multiply both sides by $-1$ and reverse the inequality sign.
Worked example 4. Solve $12 + x - x^2 > 0$.
- Multiply by $-1$: $x^2 - x - 12 < 0$.
- $(x - 4)(x + 3) < 0$: between, so $-3 < x < 4$.
Two inequalities together
Solve each one, then keep only the values that satisfy both.
Worked example 5. Find the values of $x$ for which $x^2 - 4x - 5 < 0$ and $2x > 3$.
- $(x - 5)(x + 1) < 0$ gives $-1 < x < 5$. And $2x > 3$ gives $x > 1.5$.
- Both: $1.5 < x < 5$.
Words in the questions
The exercise sheets for this topic also use these words:
- solution set 解集