Given two points known as the foci, an ellipse is the set of all points in a plane containing the foci such that the sum of the distances from the point to the two foci is a constant.
More concisely, for two fixed points F1 and F2 and a constant k>F1F2, an ellipse is the locus of all points P in a plane containing F1 and F2 such that PF1+PF2=k.
For the sake of simplicity, we will place the ellipse in coordinate space such that:
F1=(c,0)F2=(−c,0)
Let P=(x,y). Then we have:
(x−c)2+y2+(x+c)2+y2=k
Squaring both sides,
(x−c)2+y2+(x+c)2+y2+2[(x−c)2+y2]((x+c)2+y2)=k2
Rearranging and simplifying,
k2−2x2−2y2−2c2=2y4+(2x2+2c2)y2+(x+c)2(x−c)2
Squaring both sides (let us all take a deep breath now), we have:
k4+4x4+4y4+4c4−4k2x2−4k2y2−4k2c2+8x2y2+8x2c2+8y2c2=4y4+(8x2+8c2)y2+4(x+c)2(x−c)2
Now notice that a lot of stuff cancels out. Simplifying,
k4+4x4+4c4−4k2x2−4k2y2−4k2c2+8x2c2=4(x+c)2(x−c)2
Expanding the right side and simplifying even more,
k4+4x4+4c4−4k2x2−4k2y2−4k2c2+8x2c2=4x4−8x2c2+4c4k4−4k2x2−4k2y2−4k2c2+8x2c2=−8x2c2
Rearranging and simplifying one last time, we have:
x2(4k2−16c2)+y2(4k2)=k4−4k2c2k24x2+k2−4c24y2=1
This is the most standard form for writing the equations of ellipses, with one on the right side, and a sum of some multiples of x2 and y2 on the left.
In general, the equation
a2x2+b2y2=1
is an ellipse, with semi-axes of length a and b. The longer axis is called the major axis, and the shorter one is called the minor axis. The foci are located at
(a2−b2,0),(−a2−b2,0)(0,b2−a2),(0,−b2−a2)
depending on whether a or b is larger. The foci always lie on the major axis.