Why do the eigenvectors of the quadratic form defining a conic section give you the principal axes? I'm taking about the
$$\begin{pmatrix}
A &B/2 \\ B/2 &C
\end{pmatrix}$$
matrix for conic $Ax^2 + Bxy+Cy^2 + Dx+\dots =0$.
I don't get what the kind of transformation that matrix is doing and why I get the princple axis from its eigenvectors.
 A: Let's translate the origin to get rid of the linear terms, so that the curve is given implicitly by the equation
$$p^TMp + c = 0$$
where $M$ is your matrix and $p = (x,y)$. Let's expand $p$ in the eigenvectors of $M$:
$$p = \alpha_1 v_1 + \alpha_2v_2.$$
Then
$$\alpha_1^2 \lambda_1 + \alpha_2^2 \lambda_2 + c = 0.$$
Notice
1) Solutions are invariant under negating the sign of either $\alpha_1$ or $\alpha_2$. This means the curve is symmetric with respect to both the $v_1$ and $v_2$ axes. On its own this may already answer your question, depending on how you define the principal axes. But we can go deeper:
2) If $\lambda_1$ and $\lambda_2$ have the same sign, WLOG we can assume both are positive and that $\lambda_1 < \lambda_2$. Then the curve is an ellipse and the closest point on the curve to the origin is at $\pm\sqrt{c/\lambda_2}v_2$. The farthest point is at $\pm\sqrt{c/\lambda_1}v_1$. Hence $v_1$ and $v_2$ are the major and minor axes of the ellipse.
3) If they have opposite sign, we can assume $c>0$ and $\lambda_1 < 0 < \lambda_2$. Then the curve is a hyperbola and the closest point to the origin is at $\pm\sqrt{c/\lambda_1}v_1$. You can go arbitrarily far in the $v_2$ direction without ever hitting the curve.
