Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The general equation of a conic is $A x^2 + B x y + C y^2 + D x + E y + F = 0$. At Wikipedia, there is an equation for the eccentricity, based on ABCDEF.

Is there a similar equation for getting the foci or directrix for a general ellipse, parabola, hyperbola from ABCDEF? Please assume that a non-degenerate form of the equation is given.

share|cite|improve this question

You'll first want to check either the discriminant or the eccentricity of your conic before proceeding to use any expression(s) for the foci; the central conics have two foci while the parabola only has one.

For the central conics, it is known that the two foci are at a distance $a\epsilon$ from the center, where $\epsilon$ is the eccentricity and $a$ is the semimajor axis for an ellipse, and the semitransverse axis for a hyperbola.

To simplify things, you'd first want to perform a translation on your central conic, such that the conic's center is now at the origin, and the standard equation becomes

$$\alpha x^2+\beta xy+\gamma y^2=1$$

with that, you can use the formula


along with the eccentricity formula (like the one here) and the formula for the slope of the major/transverse axis to figure out the coordinates of your foci.

The parabolic case is a bit tricky, and I'll leave that to another answerer.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.