# Equation of the Hyperbola

To prove the equation of a hyperbola, let $P\left( {x,y} \right)$ be any point of the hyperbola and $M\left( {\frac{a}{e},y} \right)$ the corresponding point on the directrix as shown in the given diagram, then by definition of hyperbola, we have

From the diagram of hyperbola it is clear that

Putting this value in equation (i), we have

This is the equation of the hyperbola whose centre is at origin and foci lie on the X-axis. The lengths of transverse axis and conjugate axes of this hyperbola are $a$ and $b$ respectively.
If foci lie on the Y-axis, then its graph as shown in the given diagram. In this case the equation of hyperbola will be