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$$

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.

x₁ x₂ repeated root vertex on the axis Δ > 0 two distinct roots Δ = 0 one repeated root Δ < 0 no real roots All three have a > 0 — they differ only in the position of the VERTEX relative to the x-axis With a < 0 the three pictures flip, but the conclusion about Δ does not change
The discriminant measures exactly one thing: which side of the x-axis the vertex lies on. The three parabolas in the figure all open upward ($a>0$); they differ only in whether the vertex is below the axis (crossing twice), touching the axis (repeated root), or above the axis (no crossing). Reading the figure lets you reason backwards to what questions often ask: if $a>0$ and $\Delta<0$ then $ax^{2}+bx+c>0$ for all $x$ — this is how to prove an expression is always positive without trying numbers. The easy slip: when $a<0$ all three pictures flip, so $\Delta<0$ then means the expression is always negative; the sign of $a$ does not affect the number of roots but it determines the sign of the expression.

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.

Common mistake

Applying the discriminant condition to an equation whose quadratic coefficient contains a parameter without separating out the case where that coefficient equals $0$. The mechanism is very hard to see: when $k=0$, $kx^{2}+(k+2)x+3=0$ is no longer a quadratic equation, but the expression $\Delta=(k+2)^{2}-12k$ can still be computed and at $k=0$ it gives $\Delta=4>0$ — so the test asserts two distinct roots when in fact there is only one. Nothing signals an alarm, because every formula runs smoothly. This trap also has a reverse version: the question says "the equation has exactly one root" — then $k=0$ is a valid answer and must be added alongside $\Delta=0$. A concise rule: whenever a parameter sits in the coefficient of $x^{2}$, immediately write two lines, "case $a=0$" and "case $a\neq 0$", before touching $\Delta$.

Key takeaway

Completing the square is the move that answers the most questions in this area: the vertex, maximum and minimum values, the range, and even the proof that an expression is always positive. The discriminant is powerful but has a single blind spot — it is only valid when the quadratic coefficient is different from $0$.

← Domain, range, composite and inverse functions · All IB Math AA lessons · Practice IB Math AA questions (free, instant scoring) · Transformations of graphs and rational functions →