Curves of the second order, also known as conic sections, are curves obtained by the intersection of a plane and a double-napped cone. These include ellipses, parabolas, and hyperbolas. They are defined by quadratic equations of the form:

$$ A x^2+B x y+C y^2+D x+E y+F=0 $$

where $A, B, C, D, E, F$ are constants.

Types of Second-Order Curves

  1. Ellipse (includes the Circle)

    $$ \frac{(x-h)^2}{a^2}+\frac{(y-k)^2}{b^2}=1 $$

  2. Parabola

  3. Hyperbola

Special Cases

🧠To plot ellipse, parabola, and hyperbola

https://gist.github.com/viadean/a5515c762b1024e489c6313653121b5c

Explanation of the Code:

  1. Ellipse: Uses parametric equations $x=h+a \cos (t), y=k+b \sin (t)$.
  2. Parabola: Uses standard quadratic equation $y=a(x-h)^2+k$.
  3. Hyperbola: Uses hyperbolic functions $x=h \pm a \cosh (t), y=k \pm b \sinh (t)$.
  4. Plots all curves on the same graph with a legend and axis labels.