Lesson 4: Mathematics: Functions, Equations and Inequalities
Functions, equations and inequalities are the backbone of the Gaokao mathematics paper. Most questions combine them: a function is given, and you must find where it increases, where it crosses zero, or where it stays below a value.
This lesson covers the core moves — completing the square, reading a quadratic's graph, solving inequalities by sign, and differentiating simple polynomials — with worked problems you can reuse.
Quadratics by completing the square
Write f(x) = (x² − 4x + 4) − 4 + 3 = (x − 2)² − 1.
The squared term is never negative, so the smallest value is −1, reached when x − 2 = 0, i.e. x = 2.
Vertex: (2, −1). The parabola opens upwards, so this is a minimum.
The same move finds roots: (x − 2)² − 1 = 0 gives (x − 2)² = 1, so x − 2 = ±1 and x = 1 or x = 3.
Inequalities by sign
Factor: (x − 2)(x − 3) < 0.
The product is negative exactly when the factors have opposite signs, which happens between the roots.
Solution: 2 < x < 3. Check: at x = 2.5, (0.5)(−0.5) = −0.25 < 0. Correct.
Always test a point in each interval if you are unsure of the sign pattern — one test value per interval settles it.
A first derivative
g'(x) = 3x² − 3 = 3(x² − 1).
g'(x) = 0 when x² = 1, i.e. x = 1 or x = −1.
At x = 1, g'(1) = 3 − 3 = 0, so the graph flattens there (a local minimum, since g changes from decreasing to increasing).
Putting it together: one function, four questions
Exam questions rarely test one move in isolation: they give you a function and ask several things about it. Practise answering four questions about a single function, using every move in this lesson. Take f(x) = x² − 6x + 8. First, the vertex: complete the square, f(x) = (x − 3)² − 1, so the vertex is (3, −1) and it is a minimum, since the parabola opens upwards. Second, the roots: (x − 3)² − 1 = 0 gives (x − 3)² = 1, so x − 3 = ±1 and x = 2 or x = 4. Third, where is f(x) < 0? Factor the original: (x − 2)(x − 4) < 0, which holds between the roots, so 2 < x < 4. Check with a test point: at x = 3, f(3) = 9 − 18 + 8 = −1, which is indeed below zero. Fourth, where is the function decreasing? Differentiate: f'(x) = 2x − 6, which is zero at x = 3 and negative for x < 3, so the function decreases up to x = 3 and increases after it — exactly what the vertex told you. Four answers, one function, and each answer checks the others.
Notice how the checks work. The vertex's x-value (3) is the midpoint of the roots (2 and 4), as it must be for a parabola. The sign of the derivative changes at the vertex, as it must at a turning point. The test point confirms the inequality. When your answers agree with each other like this, you can trust them; when they disagree, one of them is wrong, and the disagreement tells you where to look. Build this habit into every multi-part question: never leave an answer unchecked when a second method can confirm it in a line or two.
Sketch f(x) = x² − 6x + 8 quickly before computing anything: it opens upwards, crosses the x-axis at 2 and 4, and bottoms out at (3, −1). From the sketch alone you can read off that f(x) < 0 between 2 and 4, that the minimum value is −1, and that the function falls until x = 3. The algebra then confirms what the picture already says. Students who sketch first make fewer sign errors, because a wrong sign usually contradicts the picture. If your algebra says the function is positive where your sketch shows it below the axis, trust the sketch and recheck the algebra.
Reading a graph like an examiner
Examiners set questions that reward reading a graph's features, not just computing them. Train yourself to name five features whenever you meet a function: where it crosses each axis, where it turns, where it is increasing or decreasing, where it is positive or negative, and what happens for very large positive or negative x. For a quadratic, the answers are the roots, the vertex, the sign of the derivative, the intervals between roots, and the direction the parabola opens. For a cubic, the same five questions apply, with up to three roots and two turning points.
Two confusions cause most lost marks. First, confusing the value of the function with the value of its derivative: f(x) tells you the height of the graph, f'(x) tells you its slope, and f'(x) = 0 marks a turning point, not a root. A function can be positive while decreasing, and negative while increasing — height and slope are different things. Second, confusing the vertex with a root: the vertex is where the graph turns, the roots are where it crosses the axis, and for a parabola that opens upwards with a negative minimum, the vertex sits below the axis between the two roots. When you finish a question, ask yourself which of the five features you used and whether each one agrees with the others. If the vertex, the roots and the derivative all point the same way, the answer is almost certainly right.
Common pitfalls
Do not forget to flip an inequality when multiplying or dividing by a negative number.
Do not confuse the vertex with a root: the vertex is the turning point; roots are where the graph crosses the x-axis.
Further study
- Standard senior-secondary mathematics textbooks (functions, quadratics, derivatives).
📝 Quiz
1. What is the vertex of f(x) = x² − 4x + 3?
Show answer
a) Completing the square: (x − 2)² − 1, vertex (2, −1).
2. Solve x² − 5x + 6 < 0.
Show answer
a) (x − 2)(x − 3) < 0 exactly between the roots 2 and 3.
3. For g(x) = x³ − 3x, at which x does g'(x) = 0?
Show answer
a) g'(x) = 3x² − 3 = 0 gives x² = 1.