Quadratic functions, the discriminant and restricted ranges
IB Math AA · Functions
Three forms of a quadratic
Every quadratic can be written in three ways, and each one hands you a different fact for free:
$$y=ax^{2}+bx+c\qquad y=a(x-h)^{2}+k\qquad y=a(x-p)(x-q)$$The general form gives the $y$-intercept $c$; the completed square form gives the vertex $(h,k)$; the factorised form gives the $x$-intercepts $p$ and $q$. The axis of symmetry is $x=h=-\dfrac{b}{2a}=\dfrac{p+q}{2}$.
The discriminant
$$\Delta=b^{2}-4ac$$- $\Delta>0$: two distinct real roots;
- $\Delta=0$: one repeated root, and the line $y=0$ is tangent to the parabola;
- $\Delta<0$: no real roots.
If $a>0$ and $\Delta<0$ then $ax^{2}+bx+c>0$ for every real $x$. Every statement above assumes $a\neq 0$; if $a$ contains an unknown, that assumption is a condition you must state.
Sum and product of roots
$$\alpha+\beta=-\frac{b}{a},\qquad \alpha\beta=\frac{c}{a}$$These give expressions such as $\alpha^{2}+\beta^{2}=(\alpha+\beta)^{2}-2\alpha\beta$ without ever solving the equation.
Worked example: parameter in the coefficient of the quadratic term
The equation $kx^{2}+(k+2)x+3=0$ has two distinct real roots. Find the set of values of $k$.
Solution
The first condition, often dropped: this must be a quadratic equation. If $k=0$ the equation becomes $2x+3=0$, which has only one root. So $k\neq 0$.
The second condition: the discriminant is positive.
$$\Delta=(k+2)^{2}-4(k)(3)=k^{2}+4k+4-12k=k^{2}-8k+4>0$$The roots of $k^{2}-8k+4=0$ are
$$k=\frac{8\pm\sqrt{64-16}}{2}=\frac{8\pm 4\sqrt{3}}{2}=4\pm 2\sqrt{3}$$Since the coefficient of $k^{2}$ is positive, $k^{2}-8k+4>0$ outside the two roots:
$$k<4-2\sqrt{3}\approx 0.536\quad\text{or}\quad k>4+2\sqrt{3}\approx 7.464$$Combine the two conditions. Since $k=0$ lies in the interval $k<0.536$, it must be excluded separately: the required set is $k<4-2\sqrt{3}$ with $k\neq 0$, or $k>4+2\sqrt{3}$.
The dangerous point: at $k=0$, $\Delta=(0+2)^{2}-0=4>0$, so the discriminant test does not catch this case. The discriminant only has meaning once you know it is a quadratic equation.
Worked example: range on a closed interval
Given $f(x)=2x^{2}-12x+23$ for $0\le x\le 4$. Write $f$ in vertex form, then state the range of $f$ on the given interval.
Solution
Complete the square.
$$f(x)=2\left(x^{2}-6x\right)+23=2\left[(x-3)^{2}-9\right]+23=2(x-3)^{2}+5$$The vertex is $(3,5)$; since $a=2>0$ this is the lowest point of the whole parabola.
Is the vertex inside the interval? $3\in[0,4]$ so yes — the minimum value on the interval is exactly $5$.
The maximum value is at the endpoint farthest from the vertex. Compute both ends:
$$f(0)=2(9)+5=23,\qquad f(4)=2(1)+5=7$$So the range is $5\le f(x)\le 23$.
Two wrong answers that are very common and both "look right": taking $[5,7]$ because you look only at the vertex and the nearest endpoint, and taking $[7,23]$ because you substitute only the two endpoints and forget the vertex. The endpoint $x=0$ is three times as far from the vertex as the endpoint $x=4$, and since a parabola grows with the square of the distance, it is much higher.