Ellipse Formula Derivation

An ellipse usually looks like a squashed circle:

images/geom-ellipse.js?mode=foci

"F" is a focus, "G" is a focus,
and together they are called foci.
(pronounced "fo-sigh")

Ellipse with foci F and G and a point P on the curve.

The total distance from F to P to G stays the same

In other words, we always travel the same distance when going from:

Definition

An ellipse is the set of all points on a plane whose distance from two fixed points F and G add up to a constant.

ellipse foci on xy graph

Foci on a Graph

An ellipse is defined by its two foci (focus points).

Let's put them on a graph!

Let's place the two foci on the x-axis at:
F = (−c, 0) and G = (c, 0)

For any point P(x, y) on the ellipse, the definition says:

Distance(F, P) + Distance(G, P) = 2a

Using the distance formula on P(x,y), we can write this as:

(x + c)2 + y2 + √(x −&minus c)2 + y2 = 2a

Let's solve!

Start with:
(x + c)2 + y2 + √(x − c)2 + y2 = 2a
Move one radical to right side:
(x + c)2 + y2 = 2a − √(x − c)2 + y2
Square both sides:
(x + c)2 + y2 = 4a2 − 4a√(x − c)2 + y2 + (x − c)2 + y2
Expand the brackets:
x2 + 2cx + c2 + y2 = 4a2 − 4a√(x − c)2 + y2 + x2 − 2cx + c2 + y2
Cancel matching terms from both sides:
2cx = 4a2 − 4a√(x − c)2 + y2 − 2cx
Move the −2cx left:
4cx = 4a2 − 4a√(x − c)2 + y2
Divide everything by 4:
cx = a2 − a√(x − c)2 + y2
Isolate the radical on the left:
a√(x − c)2 + y2 = a2 − cx
Square both sides again:
a2[(x − c)2 + y2] = (a2 − cx)2
Expand everything:
a2(x2 − 2cx + c2 + y2) = a4 − 2a2cx + c2x2
Distribute the a2:
a2x2 − 2a2cx + a2c2 + a2y2 = a4 − 2a2cx + c2x2
Cancel −2a2cx from both sides:
a2x2 + a2c2 + a2y2 = a4 + c2x2
x terms on left, constants on right:
a2x2 − c2x2 + a2y2 = a4 − a2c2
Factor out x2 and a2:
(a2 − c2)x2 + a2y2 = a2(a2 − c2)
ellipse foci on xy graph

Almost there! Now let's define a new variable b where:

a2 = b2 + c2

b2 = a2 − c2

Substituting b2 into our equation gives:

b2x2 + a2y2 = a2b2
Beautiful and simple!

To make it more useful, divide every term by a2b2 to get:

x2a2 + y2b2 = 1
The standard ellipse equation

Try the sliders here:

../algebra/images/equation-graph.js?fn0=x^2/a^2 + y^2/b^2 = 1;xmin=-2.5;xmax=2.5;ymin=-1.5;ymax=1.5;vara=2|0|5;varb=1|0|5
ellipse

a is the semi-major axis (the distance from the exact center (0,0) to the far tip on the x-axis).

b is the semi-minor axis (the distance from the center (0,0) to the very top point on the y-axis).

Hyperbola

Hyperbola on a Cartesian plane with horizontal transverse axis

The formula for the equation of the hyperbola is very similar:

x2a2y2b2 = 1
The standard hyperbola equation

Except for "−" instead of "+".

We can follow a similar route to derive it's formula, too.