Sub topic 1
Quadratic functions and the shape of a parabola
Prerequisites
This chapter assumes you can do the following:
- Evaluate an expression such as 3x² − 2x + 1 for a given x.
- Plot points on a coordinate plane.
- Solve simple linear equations.
- Take square roots, including the positive and negative roots of a number.
- Expand and factor simple binomials such as (x − 3)².
You do not need to know vertex form yet. This chapter introduces the object that the rest of the tutorial studies: the quadratic function and the curve it draws.
What a quadratic function is
A quadratic function is a function whose rule can be written as
y = ax² + bx + c
where a, b, and c are real numbers and a ≠ 0. This arrangement is called standard form. The highest power of x is 2, so we say the function has degree 2.
The condition a ≠ 0 matters. If a were 0, the x² term would vanish and the rule would become y = bx + c, which is a line. The x² term is what makes the function quadratic.
Here are some examples and non-examples:
| Rule | Quadratic? | Reason |
|---|---|---|
| y = x² | Yes | a = 1, b = 0, c = 0 |
| y = −3x² + 5 | Yes | a = −3, b = 0, c = 5 |
| y = 2x² − 4x − 6 | Yes | a = 2, b = −4, c = −6 |
| y = 4x − 1 | No | No x² term, so a = 0 |
| y = x³ + x² | No | Highest power is 3 |
| y = 1/x² | No | x is in a denominator, not a polynomial |
The coefficients b and c can be zero. Only a is not allowed to be zero.
The graph is a parabola
If you plot the points (x, y) from a quadratic function, they form a smooth, U-shaped curve called a parabola. The simplest quadratic is y = x². Its table of values is:
| x | −3 | −2 | −1 | 0 | 1 | 2 | 3 |
|---|---|---|---|---|---|---|---|
| y | 9 | 4 | 1 | 0 | 1 | 4 | 9 |
Three features show up in this table and chart, and they hold for every parabola.
- One turning point. The y-values fall to a lowest value, 0 at x = 0, and then rise. This point is the vertex. A parabola has exactly one vertex.
- Mirror symmetry. The value at x = −2 equals the value at x = 2, and the same is true for x = −1 and x = 1. The curve is a mirror image of itself across a vertical line through the vertex. That line is the axis of symmetry. For y = x² it is the line x = 0.
- Two arms that keep going. Beyond the points in the table, each side keeps rising without limit. The curve never closes up into a loop or flattens into a line.
Later chapters give names and formulas to these features. For now, learn to recognize them.
Domain: every x is allowed
You can substitute any real number for x in ax² + bx + c. You can always square, multiply, and add, so there is never a division by zero or a root of a negative number. The domain of every quadratic function is therefore all real numbers.
The range, which is the set of possible y-values, is different. It is limited on one side by the vertex. For y = x² the range is y ≥ 0, because a squared number is never negative. Chapter 7 covers the range in detail.
A real-world quadratic can have a restricted domain even though the formula does not. Consider a ball thrown upward from a height of 1 meter. Its height after t seconds is
h(t) = −5t² + 20t + 1
The formula accepts any t, but only t ≥ 0 makes sense, and only until the ball lands. The formula allows everything, and the situation narrows it.
| t (seconds) | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| h (meters) | 1 | 16 | 21 | 16 | 1 |
The heights at t = 1 and t = 3 match, and so do the heights at t = 0 and t = 4. The path is symmetric about t = 2, which is the highest point. This is the same mirror pattern as in y = x².
What makes a function quadratic: constant second differences
A line changes by the same amount every time x goes up by 1. A quadratic does not, but there is still a pattern one level down. Take the differences between consecutive y-values (the first differences), then take the differences of those (the second differences).
For y = x² with x going from −3 to 3, the y-values are 9, 4, 1, 0, 1, 4, 9. The first differences are −5, −3, −1, 1, 3, 5. The second differences are all 2.
The following program computes both.
def quadratic(a, b, c):
"""Return the function x -> a*x**2 + b*x + c (a must not be 0)."""
if a == 0:
raise ValueError("a must not be 0 for a quadratic function")
return lambda x: a * x**2 + b * x + c
def differences(values):
return [values[i + 1] - values[i] for i in range(len(values) - 1)]
f = quadratic(1, 0, 0) # y = x^2
xs = list(range(-3, 4))
ys = [f(x) for x in xs]
first = differences(ys)
second = differences(first)
print("x:", xs)
print("y:", ys)
print("first differences:", first)
print("second differences:", second)
# x: [-3, -2, -1, 0, 1, 2, 3]
# y: [9, 4, 1, 0, 1, 4, 9]
# first differences: [-5, -3, -1, 1, 3, 5]
# second differences: [2, 2, 2, 2, 2]When x steps by 1, the second difference of ax² + bx + c is always 2a. Try quadratic(3, 5, -2) and you will see every second difference equal 6. The constant second difference is the numerical fingerprint of a quadratic. For a line it would be 0, and for a cubic it would not be constant.
Reading a table or a rule
You can often tell whether data is quadratic without graphing it.
- Check that the x-values are evenly spaced.
- Compute the first differences. If they are constant, the data is linear.
- Compute the second differences. If they are constant and not zero, the data is quadratic.
You can also spot the mirror symmetry in a table. In the values for y = x² − 2x − 3, the points (0, −3) and (2, −3) have the same y-value, as do (−1, 0) and (3, 0). The mirror line is halfway between each matched pair, at x = 1. You will use this pairing idea again when you reflect points across the axis of symmetry.
How the pieces fit together
The next chapters take this chapter's picture and make it precise. The plan is:
- The value of a controls whether the parabola opens up or down and how wide it is.
- Vertex form, y = a(x − h)² + k, shows the vertex (h, k) directly.
- The axis of symmetry is x = h.
- The y-intercept and x-intercepts come from substituting x = 0 and y = 0.
- Together with reflected points, these give a reliable graphing procedure.
You do not need to memorize any of that now. What you need from this chapter is the idea of a parabola as a symmetric curve with a single turning point, produced by a degree-2 rule.
Common errors
- Treating a quadratic as a line. Plotting only two or three points and joining them with straight segments gives the wrong picture. A parabola curves, so plot enough points to see the turn at the vertex.
- Forgetting that the curve is smooth at the vertex. The bottom of y = x² is rounded, not a sharp corner like the bottom of y = |x|.
- Missing the "a ≠ 0" condition. If a problem gives y = (x + 1)² − x², it looks quadratic but expands to 2x + 1, a line. Expand first, then judge.
- Squaring incorrectly with negatives. In y = x², the value at x = −3 is (−3)² = 9, not −9. Compare −3² (which is −9) with (−3)² (which is 9). Use parentheses when substituting negative numbers.
- Assuming the vertex is at x = 0. That is true for y = x² and for y = ax² + c, but not in general. In y = x² − 2x − 3 the vertex is at x = 1.
Edge cases to keep in mind
- Large or small a. If a is very large, the parabola is narrow and steep. If a is small, such as 0.1, it is wide and looks flat near the vertex. The shape is the same family either way.
- Negative a. The curve is turned upside down. The single turning point is then the highest point instead of the lowest. The mirror symmetry is unchanged.
- b = 0. The vertex lies on the y-axis, so the axis of symmetry is x = 0. When b ≠ 0, the parabola is shifted sideways.
- No restriction in the formula. A formula alone always has the full domain. Restrictions come from the context, such as time that cannot be negative.
Exercises
Exercise
Which of these is a quadratic function: y = 5x − 2, y = (x + 3)² − x², y = −x² + 4x, or y = x⁴? Explain.
Show answer
Only y = −x² + 4x is quadratic (a = −1, b = 4, c = 0). The rule y = 5x − 2 is linear. The rule y = (x + 3)² − x² expands to x² + 6x + 9 − x² = 6x + 9, so the x² terms cancel and it is linear. The rule y = x⁴ has degree 4.
Exercise
A table gives y = 7, 2, −1, −2, −1, 2, 7 for x = −3, −2, −1, 0, 1, 2, 3. Find the first and second differences and say whether the data is quadratic. Where is the axis of symmetry?
Show answer
The first differences are −5, −3, −1, 1, 3, 5. The second differences are all 2, which is constant and nonzero, so the data is quadratic (with a = 1). The y-values match in pairs around x = 0 (for example, 7 at both x = −3 and x = 3), so the axis of symmetry is x = 0. The lowest value is −2 at x = 0.
Exercise
Use the formula h(t) = −5t² + 20t + 1. Compute h(1) and h(3), then h(0) and h(4). What does this suggest about the time at which the ball is highest?
Show answer
h(1) = −5 + 20 + 1 = 16 and h(3) = −45 + 60 + 1 = 16. h(0) = 1 and h(4) = −80 + 80 + 1 = 1. Each pair matches, so the mirror line sits halfway between the paired times, at t = 2. The ball is highest at t = 2 seconds, where h(2) = −20 + 40 + 1 = 21 meters.