Quadratic forms and conics

Definition (sesquilinear form, Hermitian form, quadratic form) open_in_new

For an $n\times n$ matrix $A$ and $\v x\in\R^n$, an expression of the form $$\v x^\dagger A \v x = x_i^* A_{ij} x_j$$ is

  • a sesquilinear form;

  • a Hermitian form if $A$ is Hermitian; and

  • a quadratic form if $A$ is real symmetric.

Properties of sesquilinear forms open_in_new
  • Hermitian forms are real. (Proof)

  • Since any Hermitian matrix $H$ can be diagonalised with a unitary transform $U$, $$ F(\v x) = \v x^\dagger H\v x = \v x^\dagger UDU^\dagger\v x = \v x'^\dagger D \v x' $$ where $D = \mrm{diag}(\lambda_1, \lambda_2, \ldots, \lambda_n)$ and $\v x' = U^\dagger\v x$ is the vector $x$ relative to the orthonormal eigenvector basis called the principal axes. Therefore, by inspecting $$ F(\v x) = \pmat{x'_1 & x'_2 & \ldots & x'_n} \pmat{\lambda_1 & 0 & \ldots & 0 \\ 0 & \lambda_2 & \ldots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \ldots & \lambda_n} \pmat{x_1' \\ x_2' \\ \vdots \\ x_n'},$$ we can write $$ F(\v x) = \sum_{i=1}^n \lambda_ix_i'^2. $$

  • For any real matrix $A$, we can write $\v x^T A \v x$ as $$ \v x^T A\v x = \v x^T S\v x, \quad \text{$S$ is real symmetric}. $$ (Derivation) Hence as above, $$ \v x^T A\v x = \v x'^\dagger D\v x' $$ where $S = QDQ^T$, $\v x' = Q^T\v x$ and $Q$ is a real diagonal matrix.

Definition (quadric) open_in_new

A quadric is an $n$-dimensional surface defined by the zero of a real quadratic polynomial, i.e. its equation is $$ \v x^T A\v x + \v b^T \v x + c = 0 $$ where $A$ is an $n\times n$ real matrix, $\v x$ and $\v b$ are $n$-dimensional column vectors, and $c$ is a constant.

Properties of quadric equation open_in_new
  • We have shown that $\v x^T A \v x = \v x^T S\v x = \v x^T QDQ^T \v x$. So by changing basis $\v x \leftarrow Q^T\v x, \v b\leftarrow Q^T\v b$, the quadric equation is equivalent to $$ \v x^T D\v x + \v b^T \v x + c = 0 $$ since $(Q^T \v b)^T Q^T \v x = \v b^T \v x$ as $QQ^T = I$.

  • If $S$ has no zero eigenvalue, then $D$ is invertible. We can shift the origin to eliminate the linear term, $$ \v x \leftarrow \v x + \frac 12 D\inv \v b. $$ Then $$ \v x^T D\v x = k. $$ (Derivation)

Quadric in 2D - conic sections open_in_new

Let $D = \mrm{diag}(\lambda_1, \lambda_2)$.

  • If $\lambda_1, \lambda_2\neq 0$, we can eliminate the linear term: $$ \lambda_1 x_1^2 + \lambda_2 x_2^2 = k. $$

    • If $\lambda_1 \lambda_2 > 0$, then we required $\mrm{sgn}(\lambda_1) = \mrm{sgn}(k).$ This is a ellipse with axes coinciding with eigenvectors of $S$, with semi-axes $\sqrt{k/\lambda_1}$ and $\sqrt{k/\lambda_2}$.

    • If $\lambda_1 \lambda_2 < 0$, set $\lambda_1 = k/a^2 > 0$ and $\lambda_2 = -k/b^2 < 0$. This is an hyperbola $$ \frac{x_1^2}{a^2} - \frac{x_2^2}{b^2} = 1. $$

  • If $\lambda_1 \lambda_2 = 0$, take $\lambda_2 = 0$. $\lambda_1\neq 0$ because otherwise $A$ is just a zero matrix. $$ \lambda_1 x_1^2 + b_1 x_1 + b_2 x_2 + c = 0. $$

    • If $b_2 \neq 0$, then we can shift the origin $x_1 \leftarrow x_1 - b_1/2\lambda_1$ to eliminate $b_1x_1$, and $x_2 \leftarrow x_2 - c/b_2 + b_1^2/4\lambda_1 b_2$ to eliminate the constants to get a parabola $$ \lambda_1 + b_2 x_2 = 0. $$

    • If $b_2 = 0$, then we get two straight line or no solution depending on the discriminant.

Focus-directrix property open_in_new

Definition (geometric definition of conic section) open_in_new

For a given eccentricity $e$ and scale $a$, define

  • foci be $(\pm ae, 0)$ and

  • directrix $x = \pm a/e$.

A conic section is the set of points satisfying the property that $$ \text{distance from focus} = e\times\text{distance from closer directrix}$$ except when $e=1$, then take the distance to the further directrix.

Eccentricity and type of conic section open_in_new

$e$

Type of conic section

$0$

Circle

$(0,1)$

Ellipse

$1$

Parabola

$(1, \infty)$

Hyperbola

Polar focus-directrix property open_in_new

Let the distance between a focus and the closer directrix be $l/e$, so $l = a|1-e^2|$.

So putting the origin at one of the focus, $$\begin{align*} r &= e\big(\frac le - r\cos \theta\big) \\ r &= \frac{l}{1 + e\cos\theta}. \end{align*}$$