Sub topic 5
Quadratic functions: vertex, axis and roots
This chapter assumes you can solve linear and quadratic equations, plot points on the coordinate plane, and complete the square. It also assumes you know the meaning of f(x) notation from the earlier chapters. A quadratic function has the form f(x) = ax² + bx + c with a ≠ 0. Its graph is a parabola. CAT questions on quadratics nearly always ask for one of four things: the extreme value, the range on a given domain, the number or nature of the roots, or a symmetric expression of the roots.
Three forms of the same function
Each form exposes a different feature, so pick the one that answers the question.
| Form | Expression | What it shows directly |
|---|---|---|
| Standard | ax² + bx + c | y-intercept c, direction from the sign of a |
| Vertex | a(x − h)² + k | vertex (h, k), axis x = h |
| Factored | a(x − p)(x − q) | roots p and q |
Completing the square converts the standard form to the vertex form. Expanding a(x − h)² + k gives h = −b/(2a) and k = c − b²/(4a).
Vertex, axis and extreme value
The axis of symmetry is the vertical line x = −b/(2a). Every point on the parabola has a mirror image on the other side of this line at equal height. The vertex lies on the axis.
- If a > 0, the parabola opens upward. The vertex is a minimum, and the range is [k, ∞).
- If a < 0, the parabola opens downward. The vertex is a maximum, and the range is (−∞, k].
- A larger |a| makes the parabola narrower.
To find the extreme value, compute x = −b/(2a) and then evaluate f(x). The algebra is not needed when the answer only asks for the value of x at which the extreme occurs.
Worked example
Take f(x) = −2x² + 8x + 1. Here a = −2, so the parabola opens downward.
- The axis is x = −8 / (2 × −2) = 2.
- The maximum is f(2) = −8 + 16 + 1 = 9.
- The range over all real numbers is (−∞, 9].
Now restrict the domain to [3, 6]. The vertex at x = 2 lies outside this interval. On [3, 6] the function is decreasing, because the interval is to the right of the axis of a downward parabola. So the maximum is f(3) = 7 and the minimum is f(6) = −23, and the range is [−23, 7].
Roots and the discriminant
The roots of ax² + bx + c = 0 are the x-intercepts of the graph. The quadratic formula gives them as x = (−b ± √D) / (2a), where D = b² − 4ac is the discriminant.
| Discriminant | Real roots | Graph |
|---|---|---|
| D > 0 | Two distinct | Crosses the x-axis twice |
| D = 0 | One repeated | Vertex touches the x-axis |
| D < 0 | None | Does not meet the x-axis |
The two roots are equally far from the axis, so they sit at x = −b/(2a) ± √D/(2a). Their midpoint is the vertex's x-coordinate.
If the roots are α and β, then:
- α + β = −b/a
- αβ = c/a
These two relations let you answer many questions without finding the roots.
Symmetric expressions
Rewrite the target using only the sum and the product. For x² − 5x + 6 = 0, the sum is 5 and the product is 6. Then:
- α² + β² = (α + β)² − 2αβ = 25 − 12 = 13
- 1/α + 1/β = (α + β)/(αβ) = 5/6
- (α − β)² = (α + β)² − 4αβ = 25 − 24 = 1
Roots in terms of a parameter
Consider x² − 6x + k = 0. Real roots need D = 36 − 4k ≥ 0, so k ≤ 9. At k = 9 the root is repeated, at x = 3. The sum of the roots is always 6, whatever the value of k.
Checking a quadratic in code
This program computes the discriminant, the vertex and the roots for any quadratic. It uses f(x) = x² − 6x + 5 as the test case.
import math
def analyse(a, b, c):
d = b * b - 4 * a * c
vx = -b / (2 * a)
vy = a * vx ** 2 + b * vx + c
if d < 0:
roots = ()
else:
s = math.sqrt(d)
roots = ((-b - s) / (2 * a), (-b + s) / (2 * a))
return d, (vx, vy), roots
d, vertex, roots = analyse(1, -6, 5)
print("D =", d)
print("vertex =", vertex)
print("roots =", roots)The output is D = 16, vertex = (3.0, −4.0) and roots = (1.0, 5.0). Check that the vertex's x-value, 3, is the midpoint of the roots 1 and 5, and that the minimum value −4 equals c − b²/(4a) = 5 − 9.
Patterns that CAT repeats
Fixed sum, maximum product
If x + y = S, then xy = x(S − x). This is a downward parabola in x with its vertex at x = S/2. The maximum product is S²/4. For S = 10 the maximum product is 25, reached at x = y = 5.
Fixed product, minimum sum
For positive x with xy = P, the sum x + P/x is smallest at x = √P, where it equals 2√P. This follows from the AM-GM inequality and is not a quadratic argument.
Minimum of a sum of squares
An expression such as (x − 2)² + (x − 8)² is a quadratic in x with a = 2. Its axis is at the midpoint, x = 5, and its minimum value is 9 + 9 = 18.
Sign of the quadratic
If a > 0 and D < 0, then f(x) > 0 for every real x. If a > 0 and D > 0, then f(x) < 0 strictly between the roots and f(x) > 0 outside them. For a < 0 the signs reverse.
Common errors
- Forgetting the sign of b. In x² − 6x + 5, b is −6, so the axis is x = −(−6)/2 = 3, not −3.
- Using the vertex as the range when the domain is restricted.
- Treating D ≥ 0 as "two roots". D = 0 gives one repeated root.
- Applying sum and product formulas when a ≠ 1 without dividing by a.
- Counting roots of the equation when the question asks for integer or positive roots. Positive roots need D ≥ 0, a positive product c/a and a positive sum −b/a.
Exercise
Find the minimum value of f(x) = 3x² − 12x + 7, and state the range of f on the domain [3, 5].
Show answer
Here a = 3 > 0, so the vertex is a minimum. The axis is x = 12/6 = 2, and f(2) = 12 − 24 + 7 = −5, so the minimum value is −5. The vertex x = 2 lies outside [3, 5], and f is increasing to the right of the axis. So f(3) = 27 − 36 + 7 = −2 is the smallest value and f(5) = 75 − 60 + 7 = 22 is the largest. The range on [3, 5] is [−2, 22].
Exercise
The roots of 2x² − 7x + 3 = 0 are α and β. Find α² + β² without solving the equation.
Show answer
The sum is α + β = 7/2 and the product is αβ = 3/2. Then α² + β² = (7/2)² − 2(3/2) = 49/4 − 3 = 37/4.
Exercise
For which values of k does x² + kx + 9 = 0 have no real roots?
Show answer
D = k² − 36 < 0, so k² < 36, which gives −6 < k < 6.