Ellipses


An ellipse is a plane curve surrounding two focal points, such that, for all points on the curve, the sum of the distances to the focal points is constant.


Test the definition yourself by moving the point on the ellipse, notice how the sum of the distances is always 66.



The formula of an ellipse centered at the origin (0,0)(0,0) is

x2a2+y2b2=1,\frac{x^2}{a^2} + \frac{y^2}{b^2} = 1,

where aa and bb are the horizontal and vertical diameter lengths respectively.

For example, the following ellipse has formula:

x2(2)2+y2(1)2=1,\frac{x^2}{(2)^2} + \frac{y^2}{(1)^2} = 1,

The focal points of an ellipse centered at (0,0)(0,0) are (±c,0)(\pm c,0) if a>ba>b (horizontal ellipse) and (0,±c)(0,\pm c) if a>ba>b (vertical ellipse), where cc is calculated as c=a2b2.c = \sqrt{|a^2-b^2|}.

Let's see how the focal points affect the shape of the ellipse for a fixed horizontal diameter. What shape do we get when c=0c=0?



Switch to vertical


And what happens if we change the center?

If we move the ellipse horizontally or vertically, we need to aplly the corresponding transformations to the variables xx and yy.

  • Horizontal shift of hh units: Change the value of xx for xhx-h.

  • Vertical shift of kk units: Change the value of yy for yky-k.

Together with the variables xx and yy, the other elements affected by the translation are the focus points, these are now (±c+h,k)(\pm c + h, k) for horizontal ellipses and (h,±c+k)(h, \pm c +k) for vertical ellipses.


Perfect! Now let's perform this transformations on the formula of the ellipse.


The formula of an ellipse centered in (h,k)(h,k) is:

(xh)2a2+(yk)2b2=1,\frac{(x-h)^2}{a^2} + \frac{(y-k)^2}{b^2} = 1,

let's see what this looks like. The fomula:

(x(0))2a2+(y(0))2b2=1,\frac{\big(x-(0)\big)^2}{a^2} + \frac{\big(y-(0)\big)^2}{b^2} = 1,

gives us the following ellipse:



To sum up, we've learnt how to plot a general ellipse centered at (h,k)(h,k), with horizontal and vertical diameters aa and bb and focus points (h+c,k)(h+c, k) and (h,k+c)(h, k+c).

(x(0))2(1)2+(y(0))2(2)2=1,\frac{\big(x-(0)\big)^2}{(1)^2} + \frac{\big(y-(0)\big)^2}{(2)^2} = 1,