Precalculus · Grades 11, 12

Ellipses and Hyperbolas from Their Foci

Quick answer

An ellipse is the set of points whose distances to two fixed points, the foci, add to the same number. A hyperbola is the set of points whose distances to the foci differ by the same number. Writing either sentence with the distance formula and squaring twice removes both square roots and leaves the familiar equations, with the foci hidden in the relation between a, b and c.

What you'll learn

  • State the focus definitions of the ellipse and the hyperbola
  • Derive the equation of an ellipse or hyperbola from its foci
  • Find the foci, vertices and asymptotes from an equation

Two foci and a loop of string

Push two pins into a board, tie a string to both, and pull it tight with a pencil. Moving the pencil around keeps the string taut, so the two distances from the pencil to the pins always add to the string’s length. The curve it traces is an ellipse, and the pins are its foci.

That is the definition:

an ellipse is every point whose distances to two foci add to 2a\text{an ellipse is every point whose distances to two foci add to } 2a

With foci at (−3,0)(-3, 0) and (3,0)(3, 0) and a sum of 1010, the point (3,3.2)(3, 3.2) is 3.23.2 from one focus and 6.86.8 from the other, which add to 1010.

An ellipse with foci at (−3, 0) and (3, 0) An ellipse 10 units wide and 8 units tall centered at the origin, with its two foci marked on the horizontal axis. Two segments join the point (3, 3.2) on the ellipse to the foci; their lengths add to 10. -6-4-2246-6-4-2246xy focus focus (3, 3.2)
  • the ellipse
An ellipse with foci at (−3, 0) and (3, 0)

Deriving the equation

Let (x,y)(x, y) be any point on this ellipse. The definition says

(x+3)2+y2+(x−3)2+y2=10\sqrt{(x + 3)^2 + y^2} + \sqrt{(x - 3)^2 + y^2} = 10

Two square roots cannot be removed at once. Isolate one and square:

(x+3)2+y2=100−20(x−3)2+y2+(x−3)2+y2(x + 3)^2 + y^2 = 100 - 20\sqrt{(x - 3)^2 + y^2} + (x - 3)^2 + y^2

Expanding cancels the x2x^2, y2y^2 and 99 on both sides:

12x−100=−20(x−3)2+y2⇒25−3x=5(x−3)2+y212x - 100 = -20\sqrt{(x - 3)^2 + y^2} \quad\Rightarrow\quad 25 - 3x = 5\sqrt{(x - 3)^2 + y^2}

Square again:

625−150x+9x2=25x2−150x+225+25y2625 - 150x + 9x^2 = 25x^2 - 150x + 225 + 25y^2 400=16x2+25y2⇒x225+y216=1400 = 16x^2 + 25y^2 \quad\Rightarrow\quad \frac{x^2}{25} + \frac{y^2}{16} = 1

The general case runs the same way. With foci (±c,0)(\pm c, 0) and sum 2a2a:

x2a2+y2b2=1,b2=a2−c2\frac{x^2}{a^2} + \frac{y^2}{b^2} = 1, \qquad b^2 = a^2 - c^2

Here a=5a = 5, c=3c = 3 and b=4b = 4: the ellipse reaches 55 across and 44 up.

Why squaring twice adds no false points

Squaring both sides can create extraneous solutions, so each squaring step here needs a reason to be safe.

The first squaring is safe because both sides were non-negative: one side is a distance, and the other is 1010 minus a distance that can never exceed 1010. The second is safe because 25−3x25 - 3x is positive for every xx between −5-5 and 55, and the right side is a positive multiple of a distance.

Non-negative numbers with equal squares are equal, so each squared equation has exactly the same solutions as the one before it. The final equation describes the ellipse and nothing else.

The relation b2=a2−c2b^2 = a^2 - c^2 also has a picture. The top of the ellipse, (0,b)(0, b), is equally far from both foci, so each distance is aa. That makes a right triangle with legs cc and bb and hypotenuse aa.

The hyperbola

Change “add” to “differ” and the curve splits in two. A hyperbola is every point whose distances to the two foci differ by a constant 2a2a.

With foci (±5,0)(\pm 5, 0) and difference 66, the same squaring twice gives

x29−y216=1,b2=c2−a2=25−9=16\frac{x^2}{9} - \frac{y^2}{16} = 1, \qquad b^2 = c^2 - a^2 = 25 - 9 = 16
A hyperbola with foci at (−5, 0) and (5, 0) Two curved branches opening left and right, with vertices at (-3, 0) and (3, 0), the foci at (-5, 0) and (5, 0), and two dashed diagonal asymptotes through the origin that the branches approach. -55-55xy focus focus
  • the hyperbola
  • asymptotes
A hyperbola with foci at (−5, 0) and (5, 0)

The point (5,163)(5, \tfrac{16}{3}) is on the right branch: it is 163\tfrac{16}{3} from the near focus and 343\tfrac{34}{3} from the far one, and those differ by 66.

Far from the center, the 11 in the equation hardly matters, and the branches approach the lines y=±bax=±43xy = \pm\tfrac{b}{a}x = \pm\tfrac{4}{3}x, the asymptotes.

EllipseHyperbola
definitiondistances add to 2a2adistances differ by 2a2a
equationx2a2+y2b2=1\tfrac{x^2}{a^2} + \tfrac{y^2}{b^2} = 1x2a2−y2b2=1\tfrac{x^2}{a^2} - \tfrac{y^2}{b^2} = 1
foci(±c,0)(\pm c, 0), c2=a2−b2c^2 = a^2 - b^2(±c,0)(\pm c, 0), c2=a2+b2c^2 = a^2 + b^2
vertices(±a,0)(\pm a, 0)(±a,0)(\pm a, 0)

Worked examples

Common mistakes

Practice problems

  1. Find the ellipse with foci (±12,0)(\pm 12, 0) whose distances add to 2626.

    Answer

    x2169+y225=1\tfrac{x^2}{169} + \tfrac{y^2}{25} = 1

    Full solution

    a=13a = 13 and c=12c = 12, so b2=169−144=25b^2 = 169 - 144 = 25.

  2. Find the foci of x225+y29=1\tfrac{x^2}{25} + \tfrac{y^2}{9} = 1.

    Answer

    (±4,0)(\pm 4, 0)

    Full solution

    c2=25−9=16c^2 = 25 - 9 = 16, so c=4c = 4.

  3. Check that (0,4)(0, 4) lies on the ellipse with foci (±3,0)(\pm 3, 0) and sum 1010.

    Answer

    Its distances are 55 and 55, which add to 1010.

    Full solution

    Each distance is 9+16=5\sqrt{9 + 16} = 5, and 5+5=105 + 5 = 10 ✓

  4. Find the foci of x216−y29=1\tfrac{x^2}{16} - \tfrac{y^2}{9} = 1.

    Answer

    (±5,0)(\pm 5, 0)

    Full solution

    For a hyperbola c2=a2+b2=16+9=25c^2 = a^2 + b^2 = 16 + 9 = 25.

  5. Find the asymptotes of x216−y29=1\tfrac{x^2}{16} - \tfrac{y^2}{9} = 1.

    Answer

    y=34xy = \tfrac{3}{4}x and y=−34xy = -\tfrac{3}{4}x

    Full solution

    a=4a = 4 and b=3b = 3, so the asymptotes are y=±baxy = \pm\tfrac{b}{a}x.

  6. Find the hyperbola with foci (±5,0)(\pm 5, 0) whose distances differ by 88.

    Answer

    x216−y29=1\tfrac{x^2}{16} - \tfrac{y^2}{9} = 1

    Full solution

    a=4a = 4 and c=5c = 5, so b2=25−16=9b^2 = 25 - 16 = 9.

  7. A gardener marks out an elliptical bed 2020 feet long and 1212 feet wide with two stakes and a string. How far from the center go the stakes?

    Answer

    88 feet on each side.

    Full solution

    a=10a = 10 and b=6b = 6, so c2=100−36=64c^2 = 100 - 36 = 64 and c=8c = 8.

    A string 2020 feet long, tied to stakes 1616 feet apart, traces the bed.

  8. Explain why the sum of distances for an ellipse must be larger than the distance between the foci.

    Answer

    Any point’s two distances add to at least the distance between the foci, with equality only on the segment joining them.

    Full solution

    The two distances from a point to the foci and the segment between the foci form a triangle, or collapse onto one line. The triangle inequality says the two sides together are at least as long as the third.

    A sum equal to the distance between the foci gives only the segment between them. A smaller sum gives no points at all.

  9. In the derivation, explain why squaring 25−3x=5(x−3)2+y225 - 3x = 5\sqrt{(x - 3)^2 + y^2} adds no false points.

    Answer

    Both sides are non-negative for every point with −5≤x≤5-5 \le x \le 5, and non-negative numbers with equal squares are equal.

    Full solution

    The right side is 55 times a distance, so it is never negative. On the ellipse, x≤5x \le 5, so 25−3x≥1025 - 3x \ge 10.

    Two non-negative numbers with the same square are the same number, so the squared equation holds exactly when the original did.

  10. Given foci (±3,0)(\pm 3, 0) and a sum of 1010, Ben writes b2=a2+c2=34b^2 = a^2 + c^2 = 34. Find his error.

    Hint

    Draw the triangle from the top of the ellipse to one focus.

    Answer

    He used the hyperbola’s relation. For an ellipse b2=a2−c2=16b^2 = a^2 - c^2 = 16.

    Full solution

    The top of the ellipse, (0,b)(0, b), is aa from each focus. The triangle it makes with the center and one focus has legs bb and cc and hypotenuse aa, so b2+c2=a2b^2 + c^2 = a^2.

    With a=5a = 5 and c=3c = 3: b2=25−9=16b^2 = 25 - 9 = 16, and the ellipse is x225+y216=1\tfrac{x^2}{25} + \tfrac{y^2}{16} = 1.

    Ben’s b=34b = \sqrt{34} would make the ellipse taller than it is wide, which cannot happen when the foci lie on the horizontal axis.

Frequently asked questions

What is the focus definition of an ellipse?

An ellipse is every point whose distances to two fixed points, the foci, add to the same constant, written 2a.

What is the focus definition of a hyperbola?

A hyperbola is every point whose distances to the two foci differ by the same constant, written 2a.

How are a, b and c related?

For an ellipse, b² = a² − c². For a hyperbola, b² = c² − a². In both, c is the distance from the center to each focus.

What are the asymptotes of a hyperbola?

For x²/a² − y²/b² = 1 they are the lines y = (b/a)x and y = −(b/a)x. The branches approach them far from the center.

Where do ellipses occur?

Planets orbit the Sun in ellipses with the Sun at one focus, and a room with an elliptical ceiling carries a whisper from one focus to the other.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSG.GPE.A.3Expressing Geometric Properties with Equations(+) Derive the equations of ellipses and hyperbolas given the foci, using the fact that the sum or difference of distances from the foci is constant.