Equations of the Parabola
The graph of a quadratic equation is a U-shaped curve called a parabola. The same parabola can be written in three forms, and each form makes a different feature easy to read: the -intercept, the turning point (vertex) or the -intercepts. This lesson shows the three forms, how to convert between them and what the coefficient does to the shape.
Three forms of one curve
| Form | Equation | Easy to read |
|---|---|---|
| standard | the -intercept | |
| vertex | the vertex and the axis | |
| factored | the -intercepts and |
In every form, and the same number appears. Not every parabola has a factored form with real numbers: one that never touches the -axis has no real -intercepts (see The Discriminant and Complex Roots).
What a does
- Sign: opens upward (the vertex is the lowest point, a minimum); opens downward (the vertex is a maximum).
- Size: makes the parabola narrower (steeper); makes it wider (flatter).
The vertex form also says where the curve sits: is the basic shifted units right and units up. Note the minus sign: has , so it is shifted 3 units left.
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-4, 6, 200)
curves = [
(x**2, "y = x²"),
(2 * (x - 2)**2 - 5, "y = 2(x − 2)² − 5"),
(-0.5 * x**2 + 3, "y = −0.5x² + 3"),
]
plt.figure(figsize=(6, 4))
for y, label in curves:
plt.plot(x, y, label=label)
plt.plot([0, 2, 0], [0, -5, 3], "ko") # the three vertices
plt.axhline(0, color="black", linewidth=0.8); plt.axvline(0, color="black", linewidth=0.8)
plt.ylim(-7, 10); plt.grid(True, alpha=0.3); plt.legend()
plt.show()
print("vertices: (0, 0), (2, -5), (0, 3)")vertices: (0, 0), (2, -5), (0, 3)
The parabola is symmetric about the vertical line through its vertex, the axis of symmetry : for every point on one side there is a mirror point at the same height on the other.
From standard form to vertex form
The vertex of is always at
For : and , so . The same result comes from completing the square:
Going the other way is just expanding. For :
So this parabola opens downward, has its highest point at , crosses the -axis at and the -axis at and . SymPy converts between the forms for you:
from sympy import symbols, expand, factor, Rational
x = symbols("x")
vertex_form = -(x + 1)**2 + 4
standard = expand(vertex_form)
print("standard:", standard)
print("factored:", factor(standard))
a, b, c = 2, -8, 3 # y = 2x² − 8x + 3
h = Rational(-b, 2 * a)
k = a * h**2 + b * h + c
print("vertex of 2x² − 8x + 3:", (h, k))standard: -x**2 - 2*x + 3
factored: -(x - 1)*(x + 3)
vertex of 2x² − 8x + 3: (2, -5)
SymPy writes powers as ** and may list the factors in a different order; is the same as .
The geometric definition
A parabola is also the set of points that are equally far from a fixed point, the focus, and a fixed line, the directrix. A parabola with its vertex at the origin, opening upward, has the equation
So has , focus . This property is why satellite dishes, car headlights and solar cookers are parabolic: rays parallel to the axis bounce off the curve and all pass through the focus (and light from a bulb at the focus leaves as a parallel beam). Conic sections, of which the parabola is one, are treated further in Other Equations and Their Shapes and Conic Sections.
In software
- Projectiles and jumps: with constant gravity, height against time is a quadratic, so thrown objects and jumping characters follow parabolas. Graphing Quadratic Equations designs a platformer jump from it.
- Quadratic Bézier curves: the curve drawn by
quadraticCurveToin a canvas, or a font outline in TrueType, is a parabola segment (Bézier Curves). - Easing: the "ease-in quad" animation curve is , the right half of the basic parabola.
Exercises
Exercise 1: Read the vertex form
For , give the vertex, the axis of symmetry, the direction of opening and the maximum or minimum value.
Answer
Vertex , axis , opens downward, maximum value 7.
Solution
Write it as , so and . Since the parabola opens downward and the vertex is the highest point.
Exercise 2: Convert
Write in vertex form and in factored form.
Answer
.
Solution
Exercise 3: Build a parabola
Find the parabola with vertex that passes through . Give it in vertex and standard form.
Answer
.
Solution
from sympy import symbols, expand
x = symbols("x")
y = 2 * (x - 1)**2 - 2
print(expand(y), y.subs(x, 3))2*x**2 - 4*x 6
Exercise 4: A vertex function
Write a function vertex(a, b, c) and use it for .
Answer
The vertex is .
Solution
def vertex(a, b, c):
h = -b / (2 * a)
return h, a * h * h + b * h + c
print(vertex(0.5, -3, 1))(3.0, -3.5)
Exercise 5: Focus and directrix
Where are the focus and the directrix of ?
Answer
Focus , directrix .
Solution
Test yourself
What is the vertex of ?
Which parabola opens downward and is narrower than ?
For , where is the axis of symmetry?