Quadratics, functions and transformations

A-Level Mathematics · Pure Mathematics 1

Completed square form

Any quadratic can be written as $a(x+p)^{2}+q$. This form is not an alternative to the factorised form — it answers different questions:

Discriminant

For $ax^{2}+bx+c=0$ write $\Delta=b^{2}-4ac$.

A line is a tangent to a curve exactly when substituting the line into the curve gives $\Delta=0$.

Functions

A function needs a rule and a domain. The range is the set of outputs on that domain. $f^{-1}$ exists only when $f$ is one-one, and then the domain of $f^{-1}$ is the range of $f$.

Transformations of $y=f(x)$

Δ > 0 Δ = 0 Δ < 0 two roots tangent no intersection x
Three cases, and only three. Cambridge's "find the set of values of $k$ such that …" question always reduces to exactly one of these three pictures. The marks are lost not in calculating $\Delta$ but in translating the wording into a sign: "meets at two distinct points" is $\Delta>0$; "meets the x-axis" (with no mention of distinct) is $\Delta\ge 0$; "touches" is $\Delta=0$; "does not meet" is $\Delta<0$. Skimming past the word distinct changes the answer completely.

Worked example: range when the domain is restricted

The function $f$ is defined by $f(x)=2x^{2}-12x+23$ for $x\ge 4$. Find the range of $f$, and explain why $f^{-1}$ exists.

Solution

Step 1 — completing the square.

$$2x^{2}-12x+23=2(x^{2}-6x)+23=2\big[(x-3)^{2}-9\big]+23=2(x-3)^{2}+5$$

Step 2 — compare the vertex with the domain. The vertex is at $x=3$. But the domain is $x\ge 4$, so the vertex lies outside the domain. On $x\ge 3$ the function is increasing, so on $x\ge 4$ it is also increasing, and the minimum value is reached at the endpoint $x=4$:

$$f(4)=2(4-3)^{2}+5=7$$

So the range is $f(x)\ge 7$.

Step 3 — why an inverse exists. On $x\ge 4$ the function is strictly increasing and therefore one-one, so $f^{-1}$ exists, with domain $x\ge 7$.

Note: if the question had given $x\ge 2$, the vertex $x=3$ would be inside the domain, the range would be $f(x)\ge 5$ and $f^{-1}$ would not exist. The same formula, but changing the domain changes both answers.

Worked example: a line tangent to a curve

The line $y=mx+2$ is a tangent to the curve $y=x^{2}-3x+6$. Find the two possible values of $m$.

Solution

Tangency means the system has a repeated root. Substitute the line into the curve:

$$mx+2=x^{2}-3x+6\;\Longrightarrow\;x^{2}-(3+m)x+4=0$$

The condition for tangency is $\Delta=0$:

$$(3+m)^{2}-16=0\;\Longrightarrow\;(3+m)^{2}=16\;\Longrightarrow\;3+m=\pm 4$$$$m=1\quad\text{or}\quad m=-7$$

These two values correspond to the two tangents drawn from the point $(0,2)$ to the parabola — one to the left of the vertex, one to the right. Getting exactly one value of $m$ is a sign that the $\pm$ was lost when taking the square root.

Common mistake

Substituting the vertex to get the minimum value without checking whether the vertex lies in the domain. This is the trap Cambridge sets most often in function questions: given $f(x)=2x^{2}-12x+23$ for $x\ge 4$, candidates immediately write "the minimum value is $5$" because they are used to the completed-square form. But $x=3$ is not in the domain, so $5$ is a value the function never takes. A mechanical rule: after completing the square, the next step is not to write the answer but to ask "is the vertex in the domain?". If yes, take $q$; if not, take the value at the endpoint nearest the vertex.

Key takeaway

The completed-square form answers questions about values; the discriminant answers questions about the number of roots. And both are valid only after the domain has been read — the domain is part of the function, not an extra note.

All A-Level Mathematics lessons · Practice A-Level Mathematics questions (free, instant scoring) · Coordinate geometry, circular measure and trigonometry →