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:
- vertex is at $(-p,\,q)$, line of symmetry $x=-p$;
- if $a>0$ the least value of the expression is $q$; if $a<0$ the greatest value is $q$;
- it produces the inverse function directly, because $x$ appears only once.
Discriminant
For $ax^{2}+bx+c=0$ write $\Delta=b^{2}-4ac$.
- $\Delta>0$: two distinct real roots;
- $\Delta=0$: a repeated root — the curve touches the $x$-axis;
- $\Delta<0$: no real roots.
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)$
- $f(x)+a$: translate $a$ units in the $y$-direction;
- $f(x+a)$: translate $-a$ units in the $x$-direction;
- $af(x)$: stretch factor $a$ parallel to the $y$-axis;
- $f(ax)$: stretch factor $\dfrac{1}{a}$ parallel to the $x$-axis.
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.