TExcelTAD
Home › Algebra › Equations of the Parabola

Equations of the Parabola

The graph of a quadratic equation y=ax2+bx+cy = ax^2 + bx + c 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 yy-intercept, the turning point (vertex) or the xx-intercepts. This lesson shows the three forms, how to convert between them and what the coefficient aa does to the shape.

Three forms of one curve

Form Equation Easy to read
standard y=ax2+bx+cy = ax^2 + bx + c the yy-intercept (0,c)(0, c)
vertex y=a(x−h)2+ky = a(x - h)^2 + k the vertex (h,k)(h, k) and the axis x=hx = h
factored y=a(x−r)(x−s)y = a(x - r)(x - s) the xx-intercepts rr and ss

In every form, a≠0a \ne 0 and the same number aa appears. Not every parabola has a factored form with real numbers: one that never touches the xx-axis has no real xx-intercepts (see The Discriminant and Complex Roots).

What a does

  • Sign: a>0a > 0 opens upward (the vertex is the lowest point, a minimum); a<0a < 0 opens downward (the vertex is a maximum).
  • Size: ∣a∣>1\lvert a \rvert > 1 makes the parabola narrower (steeper); 0<∣a∣<10 < \lvert a \rvert < 1 makes it wider (flatter).

The vertex form also says where the curve sits: y=a(x−h)2+ky = a(x - h)^2 + k is the basic y=ax2y = ax^2 shifted hh units right and kk units up. Note the minus sign: y=(x+3)2y = (x + 3)^2 has h=−3h = -3, so it is shifted 3 units left.

python · try it yourself
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 x=hx = h: 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 y=ax2+bx+cy = ax^2 + bx + c is always at

h=−b2ak=a⋅h2+b⋅h+c(the y-value at x=h)h = -\frac{b}{2a} \qquad k = a \cdot h^2 + b \cdot h + c \quad (\text{the } y\text{-value at } x = h)

For y=2x2−8x+3y = 2x^2 - 8x + 3: h=84=2h = \frac{8}{4} = 2 and k=2⋅4−16+3=−5k = 2 \cdot 4 - 16 + 3 = -5, so y=2(x−2)2−5y = 2(x - 2)^2 - 5. The same result comes from completing the square:

y=2(x2−4x)+3=2((x−2)2−4)+3=2(x−2)2−8+3=2(x−2)2−5y = 2(x^2 - 4x) + 3 = 2((x - 2)^2 - 4) + 3 = 2(x - 2)^2 - 8 + 3 = 2(x - 2)^2 - 5

Going the other way is just expanding. For y=−(x+1)2+4y = -(x + 1)^2 + 4:

y=−(x2+2x+1)+4=−x2−2x+3=−(x2+2x−3)=−(x+3)(x−1)y = -(x^2 + 2x + 1) + 4 = -x^2 - 2x + 3 = -(x^2 + 2x - 3) = -(x + 3)(x - 1)

So this parabola opens downward, has its highest point at (−1,4)(-1, 4), crosses the yy-axis at (0,3)(0, 3) and the xx-axis at x=−3x = -3 and x=1x = 1. SymPy converts between the forms for you:

python · try it yourself
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; −(x−1)(x+3)-(x - 1)(x + 3) is the same as −(x+3)(x−1)-(x + 3)(x - 1).

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

y=x24pfocus (0,p),directrix y=−py = \frac{x^2}{4p} \qquad \text{focus } (0, p),\quad \text{directrix } y = -p

So y=x2y = x^2 has 4p=14p = 1, focus (0,14)\left(0, \frac{1}{4}\right). 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 quadraticCurveTo in a canvas, or a font outline in TrueType, is a parabola segment (Bézier Curves).
  • Easing: the "ease-in quad" animation curve is y=t2y = t^2, the right half of the basic parabola.

Exercises

Exercise 1: Read the vertex form

For y=−3(x+2)2+7y = -3(x + 2)^2 + 7, give the vertex, the axis of symmetry, the direction of opening and the maximum or minimum value.

Answer

Vertex (−2,7)(-2, 7), axis x=−2x = -2, opens downward, maximum value 7.

Solution

Write it as y=−3(x−(−2))2+7y = -3(x - (-2))^2 + 7, so h=−2h = -2 and k=7k = 7. Since a=−3<0a = -3 < 0 the parabola opens downward and the vertex is the highest point.

Exercise 2: Convert

Write y=x2+6x+5y = x^2 + 6x + 5 in vertex form and in factored form.

Answer

y=(x+3)2−4=(x+1)(x+5)y = (x + 3)^2 - 4 = (x + 1)(x + 5).

Solution
h=−62=−3, k=9−18+5=−4→y=(x+3)2−4roots: (x+3)2=4→x+3=±2→x=−1 or x=−5factored: y=(x+1)(x+5)\begin{aligned} &h = -\tfrac{6}{2} = -3,\ k = 9 - 18 + 5 = -4 \to y = (x + 3)^2 - 4 \\ &\text{roots: } (x + 3)^2 = 4 \to x + 3 = \pm 2 \to x = -1 \text{ or } x = -5 \\ &\text{factored: } y = (x + 1)(x + 5) \end{aligned}

Exercise 3: Build a parabola

Find the parabola with vertex (1,−2)(1, -2) that passes through (3,6)(3, 6). Give it in vertex and standard form.

Answer

y=2(x−1)2−2=2x2−4xy = 2(x - 1)^2 - 2 = 2x^2 - 4x.

Solution
y=a(x−1)2−2(3,6) ⁣:6=a⋅(2)2−2→4a=8→a=2y=2(x2−2x+1)−2=2x2−4x\begin{aligned} &y = a(x - 1)^2 - 2 \\ &(3, 6)\colon\quad 6 = a \cdot (2)^2 - 2 \to 4a = 8 \to a = 2 \\ &y = 2(x^2 - 2x + 1) - 2 = 2x^2 - 4x \end{aligned}
python · try it yourself
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 y=0.5x2−3x+1y = 0.5x^2 - 3x + 1.

Answer

The vertex is (3,−3.5)(3, -3.5).

Solution
h=−−32⋅0.5=3k=0.5⋅9−9+1=−3.5\begin{aligned} h &= -\frac{-3}{2 \cdot 0.5} = 3 \\ k &= 0.5 \cdot 9 - 9 + 1 = -3.5 \end{aligned}
python · try it yourself
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 y=x28y = \frac{x^2}{8}?

Answer

Focus (0,2)(0, 2), directrix y=−2y = -2.

Solution
x28=x24p→4p=8→p=2focus (0,2), directrix y=−2check with the point (4,2) on the curve: distance to focus=4, distance to y=−2 is 2+2=4 ✓\begin{aligned} &\frac{x^2}{8} = \frac{x^2}{4p} \to 4p = 8 \to p = 2 \\ &\text{focus } (0, 2),\ \text{directrix } y = -2 \\ &\text{check with the point } (4, 2) \text{ on the curve: distance to focus} = 4,\ \text{distance to } y = -2 \text{ is } 2 + 2 = 4\ \checkmark \end{aligned}

Test yourself

What is the vertex of y=(x−4)2+1y = (x - 4)^2 + 1?

  1. (−4,1)(-4, 1)
  2. (4,1)(4, 1)
  3. (1,4)(1, 4)
  4. (4,−1)(4, -1)

Which parabola opens downward and is narrower than y=x2y = x^2?

  1. y=3x2y = 3x^2
  2. y=−0.5x2y = -0.5x^2
  3. y=−3x2y = -3x^2
  4. y=0.5x2y = 0.5x^2

For y=ax2+bx+cy = ax^2 + bx + c, where is the axis of symmetry?

  1. x=b2ax = \frac{b}{2a}
  2. x=−b2ax = -\frac{b}{2a}
  3. y=cy = c
  4. x=−cax = -\frac{c}{a}