This site is a work in progress. New lessons are added regularly.
Contact us
Ellipses
Learning goals
Define an ellipse by a constant sum of focal distances
Square twice to reach a2x2+b2y2=1
Read b2=a2−c2 as a right triangle
Find the major axis under the larger denominator
Shift the center by replacing x with x−h
Measure eccentricity e=ac, zero for a circle
Two pins and a string
The circle in the previous lesson was built from one fixed point: every point of the circle is the
same distance r from the center. An ellipse is built from two fixed points, called the foci
(singular: focus). A point is on the ellipse when its distances to the two foci add to a
constant.
Wherever the pencil P sits on the curve, the two pieces of string add to the same total. Slide P around and r1 and r2 each change, but r1 + r2 never does.
The distance condition
Set up coordinates so the two foci sit symmetrically on the x-axis, at F1(−c,0) and F2(c,0)
with c≥0. Call the constant total length of the string 2a. Writing the constant as 2a rather
than as a single letter costs nothing now and saves a division by two later.
You need one tool to turn distances into algebra, and it is just the Pythagorean theorem. The segment
from (x1,y1) to (x2,y2) is the hypotenuse of a right triangle whose legs are the horizontal
gap ∣x2−x1∣ and the vertical gap ∣y2−y1∣, so its length is
(x2−x1)2+(y2−y1)2. With that, the point P(x,y) lies on the ellipse exactly when
r1=PF1(x+c)2+y2+r2=PF2(x−c)2+y2=2a.
Before doing any algebra, notice that a and c cannot be just anything. Any trip from F1 out to
P and back to F2 is at least as long as the direct trip from F1 to F2, which has length
2c. That is the triangle inequality, and it says r1+r2≥2c, with equality only when P sits
on the segment between the foci. So there are three cases:
If 2a<2c, the string is shorter than the gap between the pins and no point satisfies the
condition.
If 2a=2c, the string is pulled perfectly straight and the “curve” collapses to the segment
joining the foci.
If 2a>2c, there is slack, and you get a genuine closed curve.
So a real ellipse forces a>c≥0. Keep that inequality in view: it is what makes the next step
legal.
Start from the definition and isolate one radical, because two square roots cannot be cleared at once:
(x+c)2+y2=2a−(x−c)2+y2.
This is exactly the routine from Solving Radical Equations: get one radical alone, square, and repeat
if a radical survives. Squaring both sides and using (m−n)2=m2−2mn+n2 with m=2a and
n=(x−c)2+y2, whose square is (x−c)2+y2, gives
(x+c)2+y2=4a2−4a(x−c)2+y2+(x−c)2+y2.
Expand (x+c)2=x2+2cx+c2 on the left and (x−c)2=x2−2cx+c2 on the right. The
x2, the c2, and the y2 appear on both sides and cancel, which is the whole reason for putting
the foci symmetrically about the origin. What survives is
2cx=4a2−4a(x−c)2+y2−2cx.
Move the −2cx across, move the radical term across, and divide by 4:
a(x−c)2+y2=a2−cx.
One radical is left and it is already alone, so square a second time. On the left, squaring a and the
radical gives a2[(x−c)2+y2]; on the right, (a2−cx)2=a4−2a2cx+c2x2:
a2(x2−2cx+c2+y2)=a4−2a2cx+c2x2.
The term −2a2cx appears on both sides and cancels. Gather the x2 terms on the left and the
constants on the right:
a2x2−c2x2+a2y2=a4−a2c2.
Factor a2−c2 out of the x2 terms and out of the right-hand side:
(a2−c2)x2+a2y2=a2(a2−c2).
Here is where a>c earns its keep. Because a>c≥0, the number a2−c2 is positive, so
it is the square of a positive real number, and we may define b>0 by
b2=a2−c2,equivalentlya2=b2+c2.
Substituting b2 turns the equation into b2x2+a2y2=a2b2, and dividing by a2b2, which
is not zero, leaves the standard form:
a2x2+b2y2=1.
One duty remains, and skipping it would be dishonest. Squaring is not reversible: from u=v you may
always conclude u2=v2, but from u2=v2 you may only conclude u=±v. That is precisely
how radical equations manufacture extraneous solutions, and we squared twice. Each squaring is safe on
the region where both sides are non-negative, and both sides are non-negative here. Even so, rather than
track signs step by step, it is cleaner to check the converse outright.
Suppose (x,y) satisfies a2x2+b2y2=1. Then a2x2≤1, so
∣x∣≤a, and y2=b2(1−a2x2). Substitute that y2 into the squared
distance from P to F2, then use 1−a2b2=a2a2−b2=a2c2
and b2+c2=a2:
Since ∣x∣≤a and 0≤c<a, the quantity acx lies between −c and c, so
a−acx is at least a−c>0. It is positive, so taking the square root needs no absolute
value: r2=a−acx. Running the identical computation with c replaced by −c gives
r1=a+acx, also positive. Adding them,
r1+r2=(a+acx)+(a−acx)=2a.
Every point of a2x2+b2y2=1 really does lie on the string. The two squarings
invented nothing and lost nothing, so the equation and the distance condition describe the same set of
points.
∎
That computation pays a bonus. It showed that the distance from a point of the ellipse to the focus
F2 is r2=a−acx, and x ranges over [−a,a], so r2 ranges over
[a−c,a+c]. The closest a point of the ellipse ever gets to a focus is a−c, and the
farthest is a+c. Both extremes happen at the vertices, the two ends of the long axis.
What a, b, and c mean
Read the geometry straight off a2x2+b2y2=1.
Set y=0: then x2=a2, so x=±a. The points (±a,0) are the vertices, and the
segment joining them is the major axis, of length 2a. So the length of the string equals the
length of the major axis, which is a fact worth remembering.
Set x=0: then y2=b2, so y=±b. The points (0,±b) are the co-vertices, and the
segment joining them is the minor axis, of length 2b.
Since b2=a2−c2 and c≥0, we get b≤a: the ellipse really is at least as wide as it
is tall when the foci are on the x-axis. And a2=b2+c2 is not a formula to memorize, it is a
right triangle you can point at. Go from the center straight up to a co-vertex (0,b), then across to
a focus (c,0). The two legs are b and c, so the hypotenuse has length
b2+c2=a2=a. The distance from a co-vertex to each focus is therefore
exactly a, and the two of them add to 2a, exactly as the string demands. The co-vertex is the one
point where you can see the string length with no calculation at all.
The right triangle center, focus, co-vertex has legs c and b and hypotenuse a. That is the whole content of a squared equals b squared plus c squared, and it is why no side can beat the hypotenuse a.
Because a is the hypotenuse of that triangle, no side can beat it: a≥b and a>c, with
a=b precisely when c=0, which is the circle. So outside that one case a is strictly the
largest of the three, and that single observation kills most of the sign errors people make with
ellipses.
Check your understanding
Where are the foci of 169x2+144y2=1?
The larger denominator is 169, and it sits under x2, so a2=169 and b2=144. Subtract to find c.
c2=a2−b2=169−144=25⇒c=5
The foci lie on the major axis, which is the x-axis here, so they are at (±5,0). Adding instead of subtracting would give 313, and (±13,0) are the vertices, not the foci.
Which variable gets a2
Nothing forced the foci onto the x-axis. Put them at (0,−c) and (0,c) instead and run the same
derivation with the roles of x and y interchanged. Every step is identical, so the result is
identical with x and y swapped:
b2x2+a2y2=1,b2=a2−c2,foci (0,±c).
So there is one rule to internalize, and it is the source of more wrong answers in this topic than
anything else:
a2 is always the larger denominator, and the major axis runs along the axis of the variable
that sits above it. The foci lie on that same axis, c units from the center, where
c2=(larger denominator)−(smaller denominator). (When the two denominators are
equal there is no larger one: that is the circle, and it has no major axis.)
Notice you never have to remember which of a and b to subtract: c is always found by
subtracting the smaller denominator from the larger one. The reason is that c is a leg of that
right triangle and a is the hypotenuse.
Worked example 1Compare 25x2+9y2=1 and 9x2+25y2=1
These two equations use the same numbers, and they are different ellipses.
For 25x2+9y2=1, the larger denominator 25 sits under x2, so
a2=25 and b2=9, giving a=5 and b=3. The major axis is horizontal. Then
c2=a2−b2=25−9=16⇒c=4.
The vertices are (±5,0), the co-vertices are (0,±3), the foci are (±4,0), and the
eccentricity (defined below) is ac=54. As a check, the distance from the
co-vertex (0,3) to the focus (4,0) is 16+9=5=a, so the two focal distances from
that point add to 10=2a.
For 9x2+25y2=1, the larger denominator 25 now sits under y2, so
a2=25 still gives a=5, but the major axis is vertical. The value of c is the same,
c2=25−9=16⇒c=4,
but now everything is measured up and down: the vertices are (0,±5), the co-vertices are
(±3,0), and the foci are (0,±4). The second ellipse is the first one turned on its side.
Check your understanding
Which axis is the major axis of 4x2+49y2=1, and how long is it?
The larger denominator is 49, and it sits under y2, so a2=49 and the major axis is vertical.
a=49=7⇒major axis=2a=14
The major axis is the whole segment from (0,−7) to (0,7), so its length is 2a=14, not a=7.
Moving the center off the origin
An ellipse does not have to be centered at the origin. From Transformations of Graphs you already know
the move: replacing x by x−h shifts the graph right by h, and replacing y by y−k shifts it
up by k. Doing both to the standard form slides the whole ellipse so its center lands at (h,k):
Shifting cannot change any length, so a, b, and c mean exactly what they meant before. Everything
is now measured from the center: the vertices are a units from (h,k) along the major axis. The
co-vertices are b units from the center along the minor axis, and the foci are c units from the
center along the major axis.
From a general equation to standard form
A general equation like 9x2+4y2+54x−8y+49=0 hides an ellipse. To expose it, complete the
square in x and in y, exactly as in the Completing the Square lesson, and then divide so the right
side becomes 1.
Worked example 2Put 9x2+4y2+54x−8y+49=0 in standard form
Group the x terms and the y terms, and move the constant to the right side:
9x2+54x+4y2−8y=−49.
Factor the leading coefficient out of each group, since completing the square needs a bare x2 and a
bare y2:
9(x2+6x)+4(y2−2y)=−49.
Complete each square inside its parentheses. Half of 6 is 3, and 32=9; half of −2 is −1,
and (−1)2=1. Watch the bookkeeping: adding 9 inside the first parentheses really adds
9⋅9=81 to the left side, and adding 1 inside the second really adds 4⋅1=4. So add
those same amounts to the right side:
9(x2+6x+9)+4(y2−2y+1)=−49+81+4=36.
Write each group as a square:
9(x+3)2+4(y−1)2=36.
Divide every term by 36 so the right side is 1:
4(x+3)2+9(y−1)2=1.
Now read it off. The center is (−3,1), because x+3=x−(−3). The larger denominator, 9, sits
under the y term, so a2=9, a=3, and the major axis is vertical; b2=4, so b=2. Then
c2=a2−b2=9−4=5⇒c=5.
Measuring from the center: the vertices are (−3,1±3), that is (−3,4) and (−3,−2); the
co-vertices are (−3±2,1), that is (−1,1) and (−5,1); and the foci are
(−3,1±5).
Eccentricity, and the circle hiding inside every ellipse
Two ellipses can both have a=5 and look nothing alike: one nearly round, one nearly flat. What
distinguishes them is how far the foci sit from the center compared with the size of the curve. That
ratio is the eccentricity:
e=ac.
Since 0≤c<a, the eccentricity always satisfies 0≤e<1. It also controls the shape
completely, because c=ea and therefore
b2=a2−c2=a2−e2a2=a2(1−e2),ab=1−e2.
At the flat end, pushing e toward 1 pushes c toward a, which squeezes b toward 0 and
flattens the ellipse against its major axis. At the round end something better happens. Take e=0,
which means c=0. The two foci merge into a single point at the center, b2=a2−0=a2
gives b=a, and the equation becomes
a2x2+a2y2=1⟺x2+y2=a2,
a circle of radius a. The definition degenerates just as gracefully: with F1=F2=O, the
condition r1+r2=2a becomes 2⋅PO=2a, that is PO=a, which is precisely “every point
is distance a from the center.” A circle is not a different kind of curve. It is the ellipse whose
two foci have collided, and the circle lesson is the special case e=0 of this one.
Three ellipses with the same major axis. Only the foci move. At e = 0 the foci sit together at the center and the curve is a circle; as e grows the foci separate and the curve flattens.
Eccentricity is how astronomers describe orbits. Earth’s orbit has e≈0.017, so close to a
circle that a drawing of it at page size is indistinguishable from one. Halley’s comet has
e≈0.97, a long thin cigar of an orbit. Both are ellipses with the sun at a focus.
Check your understanding
What curve is 25x2+25y2=1?
The two denominators are equal, so a2=b2=25 and the focal distance collapses.
c2=a2−b2=25−25=0⇒c=0
With c=0 the foci merge at the center and e=0. Multiplying through by 25 gives x2+y2=25, a circle of radius 5, which is exactly the ellipse whose foci have collided.
Building an ellipse from its geometry
Most problems hand you geometric facts (foci, a vertex, a string length, an eccentricity) and ask for
the equation. The recipe never changes: find the center, decide which axis is major, then get any two
of a, b, c and use a2=b2+c2 for the third.
Worked example 3Foci (2,−1) and (2,7), with focal distances summing to 10
The center is halfway between the foci, so average the coordinates:
(22+2,2−1+7)=(2,3).
Both foci have the same x-coordinate, so they lie on the vertical line x=2. The foci always lie
on the major axis, so the major axis is vertical, which tells you a2 belongs under the y term.
The distance between the foci is 2c, and here that distance is 7−(−1)=8, so c=4. The sum of
the focal distances is 2a, and it is given as 10, so a=5. Check the requirement a>c: indeed
5>4, so a genuine ellipse exists. Now find b:
b2=a2−c2=25−16=9.
Place the center at (2,3) with a2=25 under the y term:
9(x−2)2+25(y−3)2=1.
Worked example 4A semi-elliptical arch 30 m wide and 10 m high
A bridge arch is half an ellipse, cut along the major axis. Put the center of the full ellipse at the
origin, with the road along the x-axis. The arch spans 30 meters, so the full major axis is 30
and a=15. The arch is 10 meters high at its middle, and that height is the semi-minor axis, so
b=10. The upper half of
225x2+100y2=1
is the arch. How high is it 9 meters from the center? Substitute x=9:
22581+100y2=1⇒100y2=1−259=2516.
Multiply by 100 and take the positive root, since the arch is the upper half:
y2=251600=64⇒y=8.
The arch is 8 meters high there. Note it is not 159 of the way down from 10 to 0: the
curve is not a straight line, and only the equation gets it right.
Common mistakes
Practice
Multiple Choice Questions (MCQ)
Progressively harder sets of questions. Each opens on its own page.
Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its
own so you can check yourself and try again, then the full worked solution, plus a rubric
to mark your own work against.
For two thousand years astronomers agreed on one thing. Whatever the heavens were doing, they were
doing it with circles. A planet could ride a circle whose center rode a second circle, and a third
could be stacked on if the fit went bad, but the parts were always circles. Mars was the planet that
would not cooperate.
The measurements were the problem, because they were too good to explain away. Tycho Brahe, a Danish
astronomer with the sharpest eyes of his century, had logged the position of Mars night after night
for decades, all of it before the telescope. Johannes Kepler inherited those notebooks and spent
years bending circles around them. His best attempt missed by eight minutes of arc, a quarter of the
width of the full moon. Anyone else’s data could have absorbed an error that size. Brahe’s could not.
So Kepler threw the circles away. What fits, he announced in 1609, is an ellipse with the sun at one
focus. He had named those two inner points himself, borrowing the Latin word for a hearth, because
light or sound leaving one of them gathers at the other. That is the fireplace, and it is why a
whisper crosses a domed room.
Now read the orbit with this lesson’s number. Mars has an eccentricity of about 0.09, so the curve
is very nearly round, and drawn on a page it would pass for a circle. What betrayed it was the sun,
sitting visibly off center. Push that number all the way down to zero and the two foci collide into
one, which is the circle the astronomers wanted. Zero is the one value Mars would not take.