The equation of an ellipse
An ellipse centered at (h, k) with a horizontal long axis has the equation (x - h)²/a² + (y - k)²/b² = 1, where a is larger than b. With a vertical long axis, a² goes under the y term instead. The focal distance c satisfies c² = a² - b², and the eccentricity is c divided by a.
For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.
Book your first session| Feature | Long axis horizontal | Long axis vertical |
|---|---|---|
| Equation | (x - h)²/a² + (y - k)²/b² = 1 | (x - h)²/b² + (y - k)²/a² = 1 |
| Center | (h, k) | (h, k) |
| Vertices (ends of the long axis) | (h ± a, k) | (h, k ± a) |
| Co-vertices (ends of the short axis) | (h, k ± b) | (h ± b, k) |
| Foci | (h ± c, k) | (h, k ± c) |
| Focal distance | c² = a² - b² | c² = a² - b² |
| Eccentricity | e = c/a, with 0 ≤ e < 1 | e = c/a, with 0 ≤ e < 1 |
| Area | π a b | π a b |
In both forms a is the larger semi-axis, so a² is the larger denominator. A circle is the case a = b, where c = 0 and the eccentricity is 0.
Standard analytic geometry, as in the OpenStax Algebra and Trigonometry 2e section on the ellipse; the layout is ours
What is an ellipse, and why does c² = a² - b² hold?
Pick two fixed points, the foci, and keep every point whose two distances to the foci add up to the same total. The curve those points trace is an ellipse. The total equals 2a, the length of the long axis. At the top of the short axis the two distances are equal, each a, and a right triangle with legs b and c and hypotenuse a appears, so a² = b² + c². That is where the relation comes from, and it is why a must be the larger of the two semi-axes.
For a hyperbola the same triangle gives c² = a² + b². Mixing the two is a common slip, so check the sign of the squares in the equation first: a plus sign between the terms means an ellipse, and a minus sign means a hyperbola.
How do you read an ellipse from its equation?
Follow the same five moves each time.
- Put the equation in standard form, with a 1 on the right side.
- Compare the two denominators. The larger one is a², and its variable tells you the direction of the long axis: x for horizontal, y for vertical.
- Read the center from the shifts, remembering that (x + 3) means h = -3.
- Find c from c² = a² - b², then place the vertices a away from the center and the foci c away, both along the long axis.
- Compute e = c/a, and mark the co-vertices b away along the short axis.
Worked example: Writing the equation from two foci and a length. An ellipse has foci at (-3, 0) and (3, 0), and its long axis is 10 units long. Find its equation.
- Halfway between the two foci is the origin, so (0, 0) is the center. Both foci sit on the x-axis, which makes the long axis horizontal.
- The long axis is 2a = 10, so a = 5.
- Each focus is 3 units from the origin, so c = 3.
- Then b² = a² - c² = 25 - 9 = 16, so b = 4.
- The equation is x²/25 + y²/16 = 1. The vertices are (±5, 0), the co-vertices are (0, ±4) and e = 3/5.
- Check with a point: at x = 3 we get y = 3.2, and its distances to the two foci are 3.2 and 6.8, which add to 10.
Answer: x²/25 + y²/16 = 1.
Method: George Li Tutoring original problem, solved by hand and checked by the focus-distance sum.
Worked example: Turning a general equation into standard form. Find the center, foci and eccentricity of 4x² + 9y² - 16x + 54y + 61 = 0.
- Group the terms by variable and move the constant: 4(x² - 4x) + 9(y² + 6y) = -61.
- Complete each square, adding 4 times 4 and 9 times 9 to the right side as well: 4(x - 2)² + 9(y + 3)² = -61 + 16 + 81 = 36.
- Divide by 36: (x - 2)²/9 + (y + 3)²/4 = 1.
- The larger denominator, 9, sits under x, so the long axis is horizontal, with a = 3, b = 2 and center (2, -3).
- Then c² = 9 - 4 = 5, so c = √5, and the foci are (2 ± √5, -3).
- The eccentricity is √5/3, about 0.745. The vertices are (5, -3) and (-1, -3).
Answer: center (2, -3), foci (2 ± √5, -3), eccentricity √5/3.
Method: George Li Tutoring original problem; expanding the standard form returns 4x² + 9y² - 16x + 54y + 61 = 0.
The step most students lose is the middle of the second example. When a coefficient sits in front of the squared term, the number you add to complete the square must be multiplied by that coefficient before it goes on the right side.
Practice set with answers
Work each one before you read the answer.
- Find the foci, vertices and eccentricity of x²/36 + y²/20 = 1.
- Write 9x² + 4y² = 144 in standard form and find its foci.
- An ellipse has center (1, -2), a horizontal long axis, a = 7 and c = 5. Write its equation.
- The distances from any point on an ellipse to the foci (±5, 0) add up to 18. Write the equation.
Answers. (1) a² = 36, b² = 20, so c = 4: foci (±4, 0), vertices (±6, 0), e = 2/3. (2) Dividing by 144 gives x²/16 + y²/36 = 1; the larger denominator is under y, so the long axis is vertical, c² = 20 and the foci are (0, ±2√5). (3) b² = 49 - 25 = 24, so (x - 1)²/49 + (y + 2)²/24 = 1. (4) 2a = 18 gives a = 9, and b² = 81 - 25 = 56, so x²/81 + y²/56 = 1.
What slips should you watch for?
- Reading a² from the first denominator instead of the larger one.
- Writing the center with the wrong sign, since (y + 2) means k = -2.
- Using c² = a² + b², which belongs to the hyperbola.
- Forgetting the 1 on the right side before reading the denominators.
When does a tutor help?
A tutor helps when completing the square keeps going wrong, or when conics are new and the pieces blur together. A session starts from your last problem set and ends with a short set to try by the next week. See the high school course tutoring page, the packages page or book a first session.
Common questions
What is the standard equation of an ellipse?
(x - h)²/a² + (y - k)²/b² = 1 with a larger than b for a horizontal long axis, and (x - h)²/b² + (y - k)²/a² = 1 for a vertical one. The center is (h, k).
How do you find the foci?
Compute c from c² = a² - b², then move c from the center along the long axis in each direction.
What is the eccentricity of an ellipse?
It is c divided by a, a number from 0 up to but not including 1. A value near 0 is almost a circle, and a value near 1 is long and thin.
How do you tell which axis is longer?
The larger denominator is a², and the variable above it names the direction: x for horizontal, y for vertical.