Definitions

# ellipse

[ih-lips]
ellipse, closed plane curve consisting of all points for which the sum of the distances between a point on the curve and two fixed points (foci) is the same. It is the conic section formed by a plane cutting all the elements of the cone in the same nappe. The center of an ellipse is the point halfway between its foci. The major axis is the chord that passes through the foci. The minor axis is the chord that passes through the center perpendicular to the major axis. The latus rectum is the chord through either focus perpendicular to the major axis. The vertices are the two points of intersection of the major axis with the curve. The eccentricity of an ellipse, a ratio of two lengths, is a measure of its flatness; it is the distance from the center to either focus divided by the distance from the center to either vertex. The circle may be considered an ellipse of eccentricity zero, i.e., one in which the center and the two foci all coincide.

Closed curve, one of the conic sections of analytic geometry, consisting of all points whose distances from each of two fixed points (foci) add up to the same value. The midpoint between the foci is the center. One property of an ellipse is that the reflection off its boundary of a line from one focus will pass through the other. In an elliptical room, a person whispering at one focus is easily heard by someone at the other. An oval may or may not fit the definition of an ellipse.

In mathematics, an ellipse (from the Greek ἔλλειψις, literally absence) is a conic section, the locus of points in a plane such that the sum of the distances to two fixed points is a constant. The two fixed points are called foci (singular- focus). An alternate definition would be that an ellipse is the path traced out by a point whose distance from a fixed point, called the focus, maintains a constant ratio less than one with its distance from a straight line not passing through the focus, called the directrix.

## Overview

An ellipse is a type of conic section: if a conical surface is cut by a plane which does not intersect the cone's base, the intersection of the cone and plane is an ellipse. For a short elementary proof of this, see Dandelin spheres.

Algebraically, an ellipse is a curve in the Cartesian plane defined by an equation of the form

$A x^2 + B xy + C y^2 + D x + E y + F = 0 ,$
such that $B^2 < 4 AC$, where all of the coefficients are real, and where more than one solution, defining a pair of points (x, y) on the ellipse, exists.

The line segment AB, that passes through the foci and terminates on the ellipse, is called the major axis. The major axis is the longest segment that can be obtained by joining two points on the ellipse. The line segment CD, which passes through the center (halfway between the foci), perpendicular to the major axis, and terminates on the ellipse, is called the minor axis. The semimajor axis (denoted by a in the figure) is one half the major axis: the line segment from the center, through a focus, and to the edge of the ellipse. Likewise, the semiminor axis (denoted by b in the figure) is one half the minor axis.

If the two foci coincide, then the ellipse is a circle; in other words, a circle is a special case of an ellipse, one where the eccentricity is zero.

An ellipse centered at the origin can be viewed as the image of the unit circle under a linear map associated with a symmetric matrix $A = PDP^T$, $D$ being a diagonal matrix with the eigenvalues of $A$, both of which are real positive, along the main diagonal, and $P$ being a real unitary matrix having as columns the eigenvectors of $A$. Then the axes of the ellipse will lie along the eigenvectors of $A$, and the (1 over the square root of the) eigenvalues are the lengths of the semimajor and semiminor axes, which are one-half of the lengths of the major and minor axes respectively.

An ellipse can be produced by multiplying the x coordinates of all points on a circle by a constant, without changing the y coordinates. This is equivalent to stretching the circle out in the x-direction.

## Eccentricity

The shape of an ellipse can be expressed by a number called the eccentricity of the ellipse, conventionally denoted $, varepsilon$. The eccentricity is a number less than 1 and greater than or equal to 0. It is the value of the constant ratio of the distance of a point on an ellipse from a focus to that from the corresponding directrix. An eccentricity of 0 implies that the two foci occupy the same point and that the ellipse is a circle. It can also be expressed as the sine of the angular eccentricity, $o!varepsilon,!$. For an ellipse with semimajor axis a and semiminor axis b, the eccentricity is

$varepsilon=sin\left(o!varepsilon\right)!!:;,o!varepsilon=arccosleft\left(frac\left\{b\right\}\left\{a\right\}right\right);,!$

The greater the eccentricity is, the larger the ratio of a to b, and therefore the more elongated the ellipse.

If c equals the distance from the center to either focus, then

$varepsilon = frac\left\{c\right\}\left\{a\right\}!!:;,c=asin\left(o!varepsilon\right)=sqrt\left\{a^2-b^2\right\};,!$
The distance c is known as the linear eccentricity of the ellipse. The distance between the foci is 2c or 2.

## Drawing

An ellipse can be inscribed within a rectangle using two pins, a loop of string, and a pencil. The pins are placed at the foci and the pins and pencil are enclosed inside the loop. The pencil is placed on the paper inside the loop and the string made taut. The string will form a triangle. If the pencil is moved around with the string kept taut, the sum of the distances from the pencil to the pins will remain constant, thus satisfying the definition of an ellipse.

Consider the center of the rectangle to be the origin and the lengths of its sides to be 2a and 2b, with a being larger than b. The major axis then passes through the origin and is parallel to the longer side. The two pins are placed the distance c away from the origin in each direction along the major axis. The required length of the string can be seen in the particular case of the point of the ellipse lying on the major axis a. Here the length of the string is the distance from the first focus to the center c plus the distance from the center to the point on the ellipse a plus the distance from that point back to the second focus a-c, all together 2a.

## Equations

An ellipse with a semimajor axis a and semiminor axis b, centered at the point $\left(h,k\right)$ and having its major axis parallel to the x-axis may be specified by the equation

$frac\left\{\left(x-h\right)^\left\{2\right\}\right\}\left\{a^\left\{2\right\}\right\}+frac\left\{\left(y-k\right)^\left\{2\right\}\right\}\left\{b^\left\{2\right\}\right\}=1;,!$

This ellipse can be expressed parametrically as

$x=h+a,cos t;,!$
$y=k+b,sin t;,!$
where $t$ may be restricted to the interval $-pileq tleqpi$.

Parametric form of an ellipse rotated counterclockwise by an angle $phi,!$:

$x=h+a,cos t,cos phi - b,sin t,sin phi,;!$
$y=k+b,sin t,cos phi+a,cos t,sinphi,;!$

The formula for the directrices is

$x=hpmfrac\left\{a^2\right\}\left\{c\right\}=hpm a;csc\left(o!varepsilon\right)=hpmfrac\left\{a\right\}\left\{sin\left(o!varepsilon\right)\right\};,!$

If $h$ = 0 and $k$ = 0 (i.e., if the center is the origin (0,0)), then we can express this ellipse in polar coordinates by the equation

$r=frac\left\{ab\right\}\left\{sqrt\left\{a^2sin^2theta+b^2cos^2theta\right\}\right\}=frac\left\{b\right\}\left\{sqrt\left\{1-varepsilon^2cos^2theta\right\}\right\};,!$

With one focus at the origin, the ellipse's polar equation is

$r=frac\left\{acdot\left(1-varepsilon^\left\{2\right\}\right)\right\}\left\{1+varepsiloncdotcostheta\right\};,!$

A Gauss-mapped form:

$left\left(frac\left\{acosbeta\right\}\left\{sqrt\left\{a^2cos^2beta+b^2sin^2beta\right\}\right\},frac\left\{bsinbeta\right\}\left\{sqrt\left\{a^2cos^2beta+b^2sin^2beta\right\}\right\}right\right);$
has normal $\left(cosbeta,sinbeta\right)$.

## Semi-latus rectum and polar coordinates

The semi-latus rectum of an ellipse, usually denoted $l,!$ (lowercase L), is the distance from a focus of the ellipse to the ellipse itself, measured along a line perpendicular to the major axis. It is related to $a,!$ and $b,!$ (the ellipse's semi-axes) by the formula $al=b^2,!$ or, if using the eccentricity, $l=acos\left(o!varepsilon\right)^2=acdot\left(1-varepsilon^2\right);,!$

In polar coordinates, an ellipse with one focus at the origin and the other on the negative x-axis is given by the equation

$l=rcdot\left(1+sin\left(o!varepsilon\right)costheta\right)=rcdot\left(1+varepsiloncdotcostheta\right);,!$

An ellipse can also be thought of as a projection of a circle: a circle on a plane at angle φ to the horizontal projected vertically onto a horizontal plane gives an ellipse of eccentricity sin φ, provided φ is not 90°.

## Area and circumference

The area enclosed by an ellipse is πab, where (as before) a and b are one-half of the ellipse's major and minor axes respectively.

The circumference $C$ of an ellipse is $4 a E\left(varepsilon\right)$, where the function $E$ is the complete elliptic integral of the second kind.

The exact infinite series is:

$C = 2pi a left\left[\left\{1 - left\left(\left\{1over 2\right\}right\right)^2varepsilon^2 - left\left(\left\{1cdot 3over 2cdot 4\right\}right\right)^2\left\{varepsilon^4over 3\right\} - left\left(\left\{1cdot 3cdot 5over 2cdot 4cdot 6\right\}right\right)^2\left\{varepsilon^6over5\right\} - dots\right\}right\right];!,$

Or:

$C = 2pi a sum_\left\{n=0\right\}^infty \left\{leftlbrace - left\left[prod_\left\{m=1\right\}^n left\left(\left\{ 2m-1 over 2m\right\}right\right)right\right]^2 \left\{varepsilon^\left\{2n\right\}over 2n - 1\right\}rightrbrace\right\};,!$

A good approximation is Ramanujan's:

$C approx pi left\left[3\left(a+b\right) - sqrt\left\{\left(3a+b\right)\left(a+3b\right)\right\}right\right]!,$

or better approximation:

$Capproxpileft\left(a+bright\right)left\left(1+frac\left\{3left\left(frac\left\{a-b\right\}\left\{a+b\right\}right\right)^2\right\}\left\{10+sqrt\left\{4-3left\left(frac\left\{a-b\right\}\left\{a+b\right\}right\right)^2\right\}\right\}right\right);!,$

For the special case where the minor axis is half the major axis, we can use:

$C approx frac\left\{pi a \left(9 - sqrt\left\{35\right\}\right)\right\}\left\{2\right\};!,$

Or:

$C approx frac\left\{a\right\}\left\{2\right\} sqrt\left\{93 + frac\left\{1\right\}\left\{2\right\} sqrt\left\{3\right\}\right\};!,$ (better approximation).

More generally, the arc length of a portion of the circumference, as a function of the angle subtended, is given by an incomplete elliptic integral. The inverse function, the angle subtended as a function of the arc length, is given by the elliptic functions.

## Stretching and projection

An ellipse may be uniformly stretched along any axis, in or out of the plane of the ellipse, and it will still be an ellipse. The stretched ellipse will have different properties (perhaps changed eccentricity and semi-major axis length, for instance), but it will still be an ellipse (or a degenerate ellipse: a circle or a line). Similarly, any oblique projection onto a plane results in a conic section. If the projection is a closed curve on the plane, then the curve is an ellipse or a degenerate ellipse.

## Reflection property

Assume an elliptic mirror with a light source at one of the foci. Then all rays are reflected to a single point — the second focus. Since no other curve has such a property, it can be used as an alternative definition of an ellipse. In a circle, all light would be reflected back to the center since all tangents are orthogonal to the radius.

Sound waves are reflected in a similar way, so in a large elliptical room a person standing at one focus can hear a person standing at the other focus remarkably well. Such a room is called a whisper chamber. Examples are the National Statuary Hall at the U.S. Capitol (where John Quincy Adams is said to have used this property for eavesdropping on political matters), at an exhibit on sound at the Museum of Science and Industry in Chicago, in front of the University of Illinois at Urbana-Champaign Foellinger Auditorium, and also at a side chamber of the Palace of Charles V, in the Alhambra.

## Ellipses in physics

In the 17th century, Johannes Kepler explained that the orbits along which the planets travel around the Sun are ellipses in his first law of planetary motion. Later, Isaac Newton explained this as a corollary of his law of universal gravitation.

More generally, in the gravitational two-body problem, if the two bodies are bound to each other (i.e., the total energy is negative), their orbits are similar ellipses with the common barycenter being one of the foci of each ellipse. The other focus of either ellipse has no known physical significance. Interestingly, the orbit of either body in the reference frame of the other is also an ellipse, with the other body at one focus.

The general solution for a harmonic oscillator in two or more dimensions is also an ellipse, but this time with the origin of the force located at the center of the ellipse.

In optics, an index ellipsoid describes the refractive index of a material as a function of the direction through that material. This only applies to materials that are optically anisotropic. Also see birefringence.

## Ellipses in computer graphics

Drawing an ellipse as a graphics primitive is common in standard display libraries, such as the Macintosh QuickDraw API, the Windows Graphics Device Interface (GDI) and the Windows Presentation Foundation (WPF). Often such libraries are limited and can only draw an ellipse with either the major axis or the minor axis horizontal. Jack Bresenham at IBM is most famous for the invention of 2D drawing primitives, including line and circle drawing, using only fast integer operations such as addition and branch on carry bit. An efficient generalization to draw ellipses was invented in 1984 by Jerry Van Aken (IEEE CG&A, Sept. 1984).

The following is example JavaScript code using the parametric formula for an ellipse to calculate a set of points. The ellipse can be then approximated by connecting the points with lines.

/*

• This functions returns an array containing 36 points to draw an
• ellipse.
• *
• @param x {double} X coordinate
• @param y {double} Y coordinate
• @param a {double} Semimajor axis
• @param b {double} Semiminor axis
• @param angle {double} Angle of the ellipse
• /

function calculateEllipse(x, y, a, b, angle, steps) {

` if (steps == null)`
`   steps = 36;`
` var points = [];`

` // Angle is given by Degree Value`
` var beta = -angle * (Math.PI / 180); //(Math.PI/180) converts Degree Value into Radians`
` var sinbeta = Math.sin(beta);`
` var cosbeta = Math.cos(beta);`

` for (var i = 0; i < 360; i += 360 / steps)`
` {`
`   var alpha = i * (Math.PI / 180) ;`
`   var sinalpha = Math.sin(alpha);`
`   var cosalpha = Math.cos(alpha);`

`   var X = x + (a * cosalpha * cosbeta - b * sinalpha * sinbeta);`
`   var Y = y + (a * cosalpha * sinbeta + b * sinalpha * cosbeta);`

`   points.push(new OpenLayers.Geometry.Point(X, Y));`
}

` return points;`
}

One beneficial consequence of using the parametric formula is that the density of points is greatest where there is the most curvature. Thus, the change in slope between each successive point is small, reducing the apparent "jaggedness" of the approximation.