IA Vectors and Matrices

Complex Numbers open_in_new

Basic properties of complex numbers open_in_new

Definition (complex number) open_in_new

A complex number $z\in\mathbb C$ is of the form $$ z = a+ib $$ where $a,b\in\mathbb R$ and $i=\sqrt{-1}$.

Algebraic manipulation open_in_new
  • $z_1 \pm z_2$;

  • $z_1z_2$;

  • modulus $|z| = \sqrt{a^2 + b^2}$;

  • conjugate $\bar z = a - ib$;

  • $z\bar z = |z|^2$;

  • $z^{-1} = \bar z/|z|^2$.

Proposition (triangle inequality for the complex numbers) open_in_new

For all $z_1,z_2 \in \mathbb C$, $$ \big||z_1| - |z_2|\big| \leq |z_1 + z_2| \leq |z_1| + |z_2|. $$

Proof

(proof technique)

Polar representation open_in_new

When $z = r(\cos\theta + i\sin\theta)$, we say $r=|z|$ and $\theta=\arg z$, the argument of $z$. (Also $z=re^{i\theta}$ by this)

Usually we restrict $\theta$ to the principal value in the range $(-\pi, \pi]$.

Proposition (multiplication in polar representation) open_in_new

For two complex numbers $z_i = r_i(\cos\theta_i + i\sin\theta_i)$ for $i=1,2$, $$ z_1z_2 = r_1r_2(\cos(\theta_1 + \theta_2) + i\sin(\theta_1 + \theta_2)). $$

[[FILE NOT FOUND: Proof (multiplication in polar representation)]]

i.e. moduli multiply, arguments add.

Complex exponential function open_in_new

Definition (exponential function) open_in_new

Define $\exp: \mathbb C\to\mathbb C$ with $$ \exp(z) = \sum_{k=0}^\infty \frac{z^k}{k!} = 1 + z + \frac{1}{2!}z^2 + \frac{1}{3!}z^3 + \ldots. $$

This is well-defined as the series has a radius of convergence of $\infty$, since $|a_{n+1}/a_n| = |k!/(k+1)!| = 1/(k+1) \to 0$.

Proposition (adding exponents) open_in_new

For all $z_1, z_2\in\mathbb C$, $$ \exp(z_1)\exp(z_2) = \exp(z_1+z_2). $$

Proof

Definition (sin and cos) open_in_new

For any $z\in\mathbb C$, $$\begin{align*} \sin z &= \sum_{k=0}^\infty \frac{(-1)^k z^{2k+1}}{(2k+1)!} \\ \cos z &= \sum_{k=0}^\infty \frac{(-1)^k z^{2k}}{(2k)!} \end{align*}$$

Proposition (Euler's formula) open_in_new

For any $z\in\mathbb C$, $$ e^{iz} = \cos z + i\sin z. $$

Proof

Roots of unity open_in_new

Proposition (roots of unity) open_in_new

The solution to the equation $$ z^n = 1, $$ where $n\in\mathbb N_{>0}$ is a constant and $z\in\mathbb C$, is $$ z = \exp\Big(\frac{2\pi ik}{n}\Big),\quad k=0,1,2,\ldots,n-1. $$

Proof

Proposition (sum of roots of unity) open_in_new

Let $w$ be the $n$-th root of unity $\exp(2\pi i/n)$. Then $$ 1+w+w^2+\ldots + w^{n-1} = 0. $$

Proof

Complex logarithm and powers open_in_new

Definition (complex logarithm) open_in_new

The complex logarithm $\log z$ where $z\in\mathbb C$ is a solution to the equation $e^w = z$.

For any complex number $z=re^{i\theta}\neq 0$, $$\begin{align*} \log z &= \log(re^{i\theta}) \\ &= \log r + i\theta \\ &= \log |z| + i\arg z + 2\pi ik,\quad k\in\mathbb Z \end{align*}$$ with the principal value defined for $k=0$ and $\arg z\in(-\pi,\pi]$.

Definition (complex power) open_in_new

For any $z,\alpha\in\mathbb C$, the complex power $z^\alpha$ is defined as $$ z^\alpha = \exp(\alpha\log z). $$

Combining with the result above, $$ z^\alpha = e^{\alpha\log|z|}e^{i\alpha\arg z} e^{2\pi i\alpha k},\quad k\in\mathbb Z. $$ If $\alpha\in\mathbb Q$ then there is only a finite number of values.

Geometry in C open_in_new

Proposition (straight line in the complex plane) open_in_new

For a line $L$ in the complex plane that passes through $z_0\in\mathbb C$ and parallel to $w\in\mathbb C$, a general point $z\in L$ has equation $$ z\bar w - \bar z w = z_0\bar w - \bar z_0 w. $$

Proof

(Proof technique)

Proposition (alternative form of straight line in C) open_in_new

Equation of the form $$ \bar w z - w\bar z = i\rho, \quad \rho\in\R $$ or $$ \bar w z + w\bar z = \rho, \quad \rho\in\R $$ represents a straight line in $\C$.

Proof

Proposition (circle in the complex plane) open_in_new

For a circle with centre $c\in\mathbb C$ and radius $\rho\in\mathbb R$, a general point $z$ on the circle has equation $$ z\bar z - \bar cz - c\bar z = \rho^2 - c\bar c. $$

Proof

Vectors open_in_new

Definition (vector) open_in_new

A vector $\v v$ has a length and direction such that $$ |\v v|=0 \iff \v v=\v 0. $$

Notation (unit vector) open_in_new

If $|\v v| = 1$ then it is written as $\vhat v$, called the unit vector.

Definition (vector field) open_in_new

A vector field $\v f = \v f(\v x)$ is a vector function of position and maybe time.

Definition (vector space) open_in_new

A vector space $V$ is a set of vectors equipped with a scalar field, closed under vector addition and scalar multiplication, and

  • forms a commutative group under vector addition, i.e.

    • commutativity: $\v a+\v b = \v b+\v a$;

    • associativity: $(\v a + \v b) + \v c = \v a + (\v b + \v c)$;

    • identity: there exists a unique $\v 0\in V$ such that $\v a + \v 0 = \v a$ for all $\v a\in V$;

    • inverses: for all $a\in V$, there exists a unique additive inverse $-\v a$ such that $\v a+(-\v a) = \v 0$,

  • and scalar multiplication satisfies

    • distributive properties:

      • $(\lambda+\mu)\v v = \lambda\v v+\mu\v v$;

      • $\lambda(\v u+\v v) = \lambda\v u + \lambda\v v$;

    • Associativity: $\lambda(\mu\v v) = (\lambda\mu)\v v$;

    • Identity: $1\v v = \v v$.

Products of vectors open_in_new

Scalar product open_in_new

Definition (geometric definition of the dot product) open_in_new

For $\v a,\v b\in\mathbb R^2$ or $\mathbb R^3$, define $$ \v a\cdot\v b = |\v a||\v b|\cos\theta $$ where $\theta$ is the angle between $\v a$ and $\v b$.

Definition (projection) open_in_new

$\v b^\perp$ is the projection of $\v b$ onto $\v a$ if $$ \v b^\perp = (\v b\cdot\vhat a)\vhat a. $$

Definition (inner product) open_in_new

For a real vector space $V$, the inner product of $x,y\in V$, denoted as $\v x\cdot\v y$ or $\langle \v x|\v y\rangle$, satisfies

  • commutativity: $\v x\cdot\v y = \v y\cdot\v x$ (only true for real vectors);

  • linearity of the second argument: $\v x\cdot(\lambda\v y + \mu\v z) = \lambda\v x\cdot\v y + \mu\v x\cdot\v z$;

  • positive definite: $\v x\cdot\v x\geq 0$ with equality iff $\v x=0$.

The first two properties give the linearity of the first argument: $(\lambda\v y+\mu\v z)\cdot\v x = \lambda\v y\cdot\v x + \mu\v z\cdot\v x$.

Theorem (Cauchy-Schwarz inequality) open_in_new

For all $\v x,y\in\mathbb R^n$, $$\v x\cdot\v y\leq|\v x||\v y|$$ with equality iff $\v x=\v 0$ or $\v y=\v 0$ or $\v x=\lambda\v y$ for some $\lambda\in\mathbb R$.

Proof

Proposition (triangle inequality for R^n) open_in_new

For all $\v x,\v y\in\mathbb R^n$, $$ |\v x+\v y|\leq |\v x|+|\v y|. $$

Proof

Vector product open_in_new

Definition (vector product) open_in_new

For $\v a,\v b\in\mathbb R^3$, define $$ \v a\times\v b = |\v a||\v b|\sin\theta\ \vhat n $$ where $\theta$ is the angle between $\v a$ and $\v b$, and $\vhat n$ is the unit vector perpendicular to $\v a,\v b$ in the right-handed sense.

Properties of the vector product:

  • $\v a\times\v b = -\v b\times\v a$;

  • $\v a\times\v 0 = \v 0$;

  • $\v a\times\v b = \v 0 \implies \v a = \mu\v b, \mu\in\mathbb R$;

  • $\v a\times(\lambda\v b) = \lambda(\v a \times\v b)$.

Definition (vector area of a triangle) open_in_new

Define the vector area of a triangle $OAB$ be $$ \frac12 \vec{OA}\times\vec{OB}.$$

Scalar triple product open_in_new

Notation (scalar triple product) open_in_new

Define $$[\v a,\v b,\v c] = \v a\cdot(\v b\times\v c).$$

This is the volume of the parallelepiped formed by $\v a,\v b,\v c$.

Properties:

  • $[\v a,\v b,\v c] = [\v b,\v c,\v a] = [\v c,\v a,\v b] = -[\v a, \v c, \v b] = -[\v b, \v a, \v c] = -[\v c,\v b,\v a]$;

  • $[\v a,\v a,\v c] = [\v a,\v b,\v b], [\v a,\v b,\v a] = 0$.

The condition for $\v a,\v b, \v c$ to be coplanar is $$[\v a,\v b,\v c] = 0.$$

Spanning sets and bases open_in_new

Definition (spanning set) open_in_new

For a vector space $V$, we say $\{\v v_1, \v v_2, \ldots, \v v_n\}$ spans $V$, or it is a spanning set of $V$, when every vector $\v v\in V$ can be written as a linear combination of $\v v_1,\ldots, \v v_n$, i.e. there exists scalars $c_1,\ldots,c_n$ such that $$ \v v = \sum_{i=1}^n c_i \v v_i. $$

Definition (linear independence) open_in_new

A list of vectors $\v v_1,\v v_2,\ldots, \v v_n\in V$ is linearly independent when for some scalars $c_1,\ldots, c_n$, $$ \sum_i c_i\v v_i = \v 0 \implies c_i=0\quad\forall i.$$

If it is not linearly independent, then it is linearly dependent.

Definition (basis) open_in_new

A list of vectors in a vector space $V$ is called a basis of $V$ if it

  • spans $V$; and

  • is linearly independent.

Definition (dimension) open_in_new

The dimension of a vector space is the number of vectors in the basis.

Proposition (uniqueness of linear combination of basis) open_in_new

If $\v u_1,\v u_2,\ldots,\v u_n$ is a basis of a vector space $V$, then for any vector $\v v\in V$, $\v v$ written as a linear combination of basis is unique.

Proof

Real and complex coordinate space open_in_new

Proposition (real coordinate space) open_in_new

$\mathbb R^n = \{ (x_1,x_2,\ldots,x_n): x_j\in\mathbb R, j=1,2,\ldots, n\}$ is a vector space.

Proof

Proposition (linear independence in R2) open_in_new

If two vectors $\v a,\v b\neq\v 0$ in $\mathbb R^2$ satisfy $\v a\times\v b\neq \v 0$, $\v a$ and $\v b$ are linearly independent.

Proof

Proposition (bases of R2) open_in_new

Any two vectors $\v a,\v b\neq\v 0$ in $\mathbb R^2$ with $\v a\times\v b\neq \v 0$ form a basis of $\mathbb R^2$.

Proposition (linear independence in R3) open_in_new

If $\v a, \v b, \v c\in\mathbb R^3$ are not coplanar, then they are linearly independent.

Proof

Proposition (bases of R3) open_in_new

If $\v a, \v b, \v c\in\mathbb R^3$ are not coplanar, then they form a basis of $\mathbb R^3$.

Standard basis of Rn open_in_new

The standard basis of $\mathbb R^n$ is $\{\v e_1,\v e_2,\ldots, \v e_n\}$ where $$ \v e_1 = (1,0,\ldots,0), \quad\v e_2 = (0,1,\ldots,0),\quad \ldots\quad\v e_n = (0,\ldots,0,1). $$

This basis is orthonormal, i.e. $$ \v e_i\cdot\v e_j = \begin{cases} 0, &i\neq j &\text{(orthogonal)}\\ 1, &i=j. \end{cases}$$

Definition (inner product of Rn) open_in_new

For any two vectors $\v x,\v y\in\mathbb R^n$ where $$\begin{align*} \v x &= \sum_{i=1}^n x_i\v e_i \\ \v y &= \sum_{i=1}^n y_i\v e_i, \end{align*}$$ define its dot or inner product $$ \v x\cdot\v y = \langle \v x | \v y\rangle = \sum_{i=1}^n x_iy_i. $$

Definition (inner product of Cn) open_in_new

For any vectors $\v u,\v v\in\mathbb C^n$ where $$ \v u = \sum_{i=1}^n u_i \v e_i, \quad u_i\in\mathbb C $$ $$ \v v = \sum_{i=1}^n v_i \v e_i, \quad v_i\in\mathbb C $$ define their dot or inner product $$ \v u\cdot\v v = \langle\v u|\v v\rangle = \sum_{i=1}^n\overline{u_i} v_i.$$

Properties of complex inner product open_in_new
  • $\v u\cdot\v v = \overline{\v v\cdot\v u}$;

  • $\v u\cdot\v u\geq 0$, and $\v u\cdot\v u=0\implies\v u=\v 0$.

  • $\v u\cdot(\lambda\v v+\mu\v w) = \lambda\v u\cdot\v v + \mu\v u\cdot\v w$ (linearity of the second argument);

  • $(\lambda\v u+\mu\v v)\cdot\v w = \overline\lambda\v u\cdot\v w + \overline\mu\v v\cdot\v w$ (Proof).

Vector subspace open_in_new

Definition (subspace) open_in_new

A non-empty subset $U$ of a vector space $V$ is a subspace of $V$ if $U$ is a vector space under the same operations as $V$.

Examples of subspace open_in_new
  • $V$ is a subspace of $V$.

  • $\{\v 0\}$ is a subspace of $V$.

All others are proper subspaces.

  • For any $\v\alpha\in\R^n$, let $$ U = \sb{\v x\in\R^n}{\v\alpha\cdot\v x = 0}. $$ $U$ is a subspace of $\R^n$ and has a dimension of $n-1$.

Theorem (subspace condition) open_in_new

A non-empty subset $U$ of a vector space $V$ is a subspace of $V$ iff for all $\v x,\v y\in U$ and scalars $\lambda,\mu$, $$\lambda\v x + \mu\v y \in U.$$

Einstein suffix notation open_in_new

Notation (Einstein suffix notation) open_in_new

For a vector $\vec v\in\R^3$, denote $v_i$ where $i=1,2,3$ be the $i$-th component of $\vec v$, i.e. $$ \vec v = v_1\vec e_1 + v_2\vec e_2 + v_3\vec e_3. $$

In Einstein suffix notation, if in the same term, a suffix appears

  • once, then it is a free suffix;

  • twice, then it is a dummy suffix, and summation over it is omitted.

A suffix cannot appears more than twice.

Dot product in suffix notation open_in_new

$$ \vec x\cdot\vec y = x_i y_i. $$ Since $i$ is a dummy suffix, the summation sign $\sum_{i=1}^3$ is omitted.

Definition (Kronecker delta) open_in_new

$\delta_{ij}$ is a 2-dimensional tensor with 2 free suffixes, defined as $$ \delta_{ij} = \begin{cases}1, &i=j, \\0, &i\neq j.\end{cases} $$

Properties of the Kronecker delta open_in_new
  • $\delta_{ij} = \delta_{ji}$ (symmetric);

  • $\delta_{ii} = 3$ in $\R^3$;

  • $a_i\delta_{ij} = a_j$;

  • $\delta_{ij}\delta_{jk} = \delta_{ik}$;

  • $a_i \delta_{ij} b_j = a_ib_i = \vec a\cdot\vec b$.

Definition (Levi-Cevita symbol) open_in_new

Define a permutation of $\se{1,2,3}$ as even (or odd) if an even (or odd) number of swaps are needed to achieve the permutation from $(1,2,3)$.

Then define the Levi-Cevita (alternating) symbol $$ \epsilon_{ijk} = \begin{cases} +1, &ijk\text{ is a even permutation}, \\ -1, &ijk\text{ is an odd permutation}, \\ 0, &ijk\text{ is not a permutation}. \end{cases} $$ This means $$\begin{align*} \epsilon_{123} = \epsilon_{231} = \epsilon_{312} &= +1, \\ \epsilon_{132} = \epsilon_{213} = \epsilon_{321} &= -1, \\ \text{Others} &= 0. \end{align*}$$

Properties of the Levi-Cevita symbol open_in_new
  • $\epsilon_{ijk}\delta_{jk} = 0$;

  • If $a_{jk} = a_{kj}$, then $\epsilon_{ijk}a_{jk} = 0$. Proof

  • $(\vec a\times\vec b)_i = \epsilon_{ijk} a_j b_k$.

  • $\epsilon_{ijk} \epsilon_{ij'k'} = \delta_{jj'}\delta_{kk'} - \delta_{jk'}\delta_{kj'}$
    $\epsilon_{ijk} \epsilon_{i'jk'} = \delta_{ii'}\delta_{kk'} - \delta_{ik'}\delta_{ki'}$
    $\epsilon_{ijk} \epsilon_{i'j'k} = \delta_{ii'}\delta_{jj'} - \delta_{ij'}\delta_{ji'}$. [[FILE NOT FOUND: Proof (multiplying two alternating symbols)]]

Proposition (vector triple product) open_in_new

For $\vec a,\vec b, \vec c\in\R^3$, $$\begin{align*} \vec a\times(\vec b\times\vec c) &= (\vec a\cdot\vec c)\vec b - (\vec a\cdot\vec b)\vec c \\ (\vec a\times\vec b)\times\vec c &= (\vec a\cdot\vec c)\vec b - (\vec b\cdot\vec c)\vec a. \end{align*}$$ (Furthest dot product is positive)

Proof

Geometry in R3 open_in_new

Line in R3 open_in_new

If a line $L$ goes through a point $A$ with position vector $\vec a$ and is parallel to $\vec t$, a general point $\vec x$ on $L$ is $$ \vec x = \vec a + \lambda\vec t,\quad \lambda\in\R $$ or $$ (\vec x - \vec a)\times\vec t = \vec 0. $$

Plane in R3 open_in_new

If a plane has a normal vector $\vec n$ and contains a point $\vec b$, then $(\vec x -\vec b)$ lies on the plane, so $$ (\vec x - \vec b)\cdot\vec n = 0. $$

For $\vec n=\hat n$, then $\vec b\cdot\hat n\equiv p$ is the perpendicular distance from origin to plane, $$ \vec x\cdot\hat n = p. $$

Alternatively, if $\vec a, \vec b, \vec c$ lie on the plane, then $$ (\vec x - \vec a) \cdot \big((\vec b-\vec a)\times(\vec c-\vec a)\big) = 0. $$

Example (intersection of a line and a plane)

Example (shortest distance between two lines)

Vector equation open_in_new

The strategy is to take dot/cross product with suitable vectors.

Example of a vector equation

Matrices and linear maps open_in_new

Example (rotation matrix) open_in_new

To rotate a vector by $\theta$ about axis $\hat n$, the matrix is $$ R_{ij} = \delta_{ij}\cos\theta + (1-\cos\theta)n_in_j - \epsilon_{ijk}n_k\sin\theta. $$

Derivation

Example (reflection and projection onto plane) open_in_new

To reflect a point in $\R^3$ about a plane normal to $\hat n$ through the origin, the matrix is $$ R_{ij} = \delta_{ij} - 2n_in_j. $$

To project it onto the plane, the matrix is $$ R_{ij} = \delta_{ij} - n_in_j. $$

Derivation

Definition (linear map) open_in_new

Let $V,W$ be vector spaces. $T: V\to W$ is a linear map if

  • $T(\v a + \v b) = T(\v a) + T(\v b)$ for all $\v a,\v b\in V$; and

  • $T(\lambda\v a) = \lambda T(\v a)$ for all scalar $\lambda$ and $\v a\in V$.

Or equivalently, for all scalars $\lambda,\mu$ and vectors $\v a,\v b\in V$, $$ T(\lambda\v a + \mu\v b) = \lambda T(\v a) + \mu T(\v b). $$

Definition (image and kernel of linear map) open_in_new

Consider a linear map $f: U\to V$.

  • The image of $f$, denoted as $f(U)$ or $\mrm{image}(f)$, is the set $$ \sb{f(\v u)}{\v u\in U}. $$

  • The kernel of $f$, denoted as $\mrm{kernel}(f)$, is the set $$ \sb{\v u\in U}{f(\v u) = \v 0}. $$

Example of computing image and kernel

Theorem (image and kernel are subspaces) open_in_new

Consider the linear map $f: U\to V$ where $U, V$ are vector spaces.

  • $\mrm{image}(f)$ is a subspace of $V$.

  • $\mrm{kernel}(f)$ is a subspace of $U$.

Proof

Definition (rank, nullity) open_in_new

For a linear map $f: U\to V$,

  • the rank of $f$, denoted as $r(f)$, is the dimension of $f(U)$; and

  • the nullity of $f$, denoted as $n(f)$, is the dimension of $\mrm{kernel}(f)$.

Theorem (rank-nullity) open_in_new

For a linear map of $f: U\to V$ where $U,V$ are vector spaces, $$ r(f) + n(f) = \dim U. $$

Proof

Definition (associated matrix of a linear map) open_in_new

Consider a linear map $\alpha: \R^n \to \R^m$. For a basis $\v e_1, \ldots, \v e_n$ of $\R^n$, we have $$\begin{align*} \v x' = \alpha(\v x) &= \alpha\Big(\sum_{j=1}^n x_j \v e_j\Big) &&\text{for some scalars } x_j\in\R \\ &= \sum_{j=1}^n x_j \alpha(\v e_j). \end{align*}$$ In suffix notation, $$ A_{ij} x_j = x'_i = \big[\alpha(\v e_j)\big]_i x_j $$ so let $$ A_{ij} = \big[\alpha(\v e_j)\big]_i. $$

We write the $m\times n$ matrix with $A_{ij}$ being the entry at row $i$ and column $j$: $$ A = \{ A_{ij} \} = \begin{pmatrix} A_{11} & \ldots & A_{1n} \\ \vdots & A_{ij} & \vdots \\ A_{m1} & \ldots & A_{mn} \end{pmatrix} $$ and we write $$ \v x' = A \v x. $$

Note that the $j$-th column represents what $\alpha$ maps $\v e_j$ to.

Matrix algebra open_in_new

Matrix addition open_in_new

Consider two linear maps $\alpha,\beta: \R^n\to \R^m$. Define the sum of linear maps as $(\alpha+\beta)(\vec x) = \alpha(\vec x) + \beta(\vec x)$. The associated matrices satisfy $$ (A+B)_{ij} x_j = A_{ij} x_j + B_{ij} x_j $$ so we define matrix addition as just adding it entry by entry: $$ (A+B)_{ij} = A_{ij} + B_{ij}. $$

Matrix scalar multiplication open_in_new

We define the scalar multiplication of a linear map as $$ (\lambda\alpha)(\vec x) = \lambda\cdot\alpha(\vec x). $$ Therefore $$ (\lambda A)_{ij} = \lambda A_{ij}. $$

Matrix multiplication open_in_new

Consider $\alpha: \R^r \to \R^n$ and $\beta: \R^n\to\R^m$. $A$ is the associated $n\times r$ matrix and $B$ is the associated $m\times n$ matrix.

We consider the composition map $\beta\alpha: \R^r\to\R^m$. $$\begin{align*} (BA)_{ij} x_j &= \big(B(A\vec x)\big)_i \\ &= B_{ik}(A\vec x)_k \\ &= B_{ik}A_{kj}x_j \end{align*}$$ so we let $$ (BA)_{ij} = B_{ik}A_{kj}. $$

Properties:

  • In general, $AB\neq BA$.

  • Associativity: $(AB)C = A(BC)$. Proof

Matrix transpose open_in_new

Let $A$ be a $m\times n$ matrix. The transpose of $A$, denoted as $A^T$, is a $n\times m$ matrix defined by $$ (A^T)_{ij} = A_{ji}. $$

Properties:

  • $(A^T)^T = A$.

  • $(AB)^T = B^T A^T$. Proof

Matrix inverse open_in_new
  • $B$ is the left inverse of $A$ if $BA = I$.

  • $C$ is the right inverse of $A$ if $AC = I$.

  • If $A$ is a square matrix, then $A^{-1}\equiv B=C$ is the inverse of $A$. Proof This means inverse $A\inv$ satisfies $$ A\inv A = AA \inv = I. $$

  • If $A\inv$ exists, then $A$ is called invertible.

  • $(AB)\inv = B\inv A\inv$. Proof

Hermitian conjugate open_in_new

For a complex matrix $A$, $$ A^\dagger \equiv (A^T)^* \equiv (A^*)^T. $$

Properties:

  • $(AB)^\dagger = B^\dagger A^\dagger$.

Common type of matrices open_in_new

Definition (symmetric matrix) open_in_new

A square matrix $A$ is symmetric if $$ A^T = A. $$

Definition (Hermitian matrix) open_in_new

A square matrix $A$ is Hermitian if $$ A^\dagger = A. $$

The diagonal elements are necessarily real.

A real symmetric matrix is Hermitian.

Definition (anti-symmetric matrix) open_in_new

A square matrix is anti-symmetric if $$ A^T = -A. $$ The diagonal elements are necessarily 0.

Definition (skew-Hermitian matrix) open_in_new

A square matrix is skew-Hermitian $A$ if $$ A^\dagger = -A. $$

The diagonal elements are necessarily purely imaginary.

A real anti-symmetric matrix is a skew-Hermitian matrix.

Definition (orthogonal and unitary matrix) open_in_new

A real matrix $A$ is orthogonal if $$ A^T = A\inv \quad\text{i.e. } AA^T = A^T A = I. $$

A complex matrix $U$ is unitary if $$ U^\dagger = U\inv \quad\text{i.e. } UU^\dagger = U^\dagger U = I. $$

Definition (normal matrix) open_in_new

An $n\times n$ matrix $N$ is called normal if it commutes with its Hermitian conjugate $$ NN^\dagger = N^\dagger N. $$

Hermitian, symmetric, skew-Hermitian, anti-symmetric, orthogonal, unitary matrices are all normal.

Trace of a square matrix open_in_new

For a matrix $A$, the trace of $A$, denoted as $\mrm{trace}(A)$, is the sum of the diagonal elements of $A$, $$ \mrm{trace}(A) = A_{ii}. $$

Properties:

  • $\mrm{trace}(BC) = \mrm{trace}(CB)$. Proof

Definition (isotropic matrix) open_in_new

A matrix $A$ is isotropic if $$ A = \lambda I $$ for some scalar $\lambda$.

Decomposition of a square matrix open_in_new

Any $n\times n$ matrix $B$ can be written as a sum of symmetric and anti-symmetric parts, $$\begin{align*} B_{ij} &= \frac12 (B_{ij} + B_{ji}) + \frac12 (B_{ij} - B_{ji}) \\ B &= \underbrace{\frac12 (B + B^T)}_{\text{symmetric } S} + \underbrace{\frac12 (B - B^T)}_{\text{anti-symmetric } A} \end{align*}$$

A symmetric matrix $S$ can be decomposed an isotropic part and a traceless part, $$\begin{align*} S_{ij} &= \frac1n \mrm{trace}(S)\, \delta_{ij} + \big(S_{ij} - \frac1n \mrm{trace}(S)\, \delta_{ij} \big) \\ S &= \underbrace{\frac1n \mrm{trace}(S)\, I}_\text{isotropic} + \underbrace{\big(S - \frac1n\mrm{trace}(S)\, I\big)}_{\text{traceless, since } \mrm{trace}(\frac1n I) = 1} \end{align*}$$

In $\R^3$, the anti-symmetric part $A$ can be written in terms of a single vector $\vec w$ as $$ A_{ijk} = \epsilon_{ijk}\omega_k = \begin{pmatrix} 0 & \omega_3 & -\omega_2 \\ -\omega_3 & 0 & \omega_1 \\ \omega_2 & -\omega_1 & 0 \end{pmatrix} $$ which is a general anti-symmetric matrix.

Proposition (rows and columns of orthogonal and unitary matrix are orthonormal) open_in_new

For an orthogonal matrix $A$, the rows of $A$ form an orthonormal set. Similarly the columns of $A$ also form an orthonormal set. Same for a unitary matrix.

Proof

Gram-Schmidt process open_in_new

Given a set $\set{\v w_1, \v w_2, \ldots, \v w_r}$ of linearly independent vectors, we can use this process to form a orthonormal set $\set{\v v_1, \v v_2, \ldots, \v w_r}$ that has the same span.

Define the projection of $\v w$ onto $\v v$ by $$ \mathcal P_{\v v}(\v w) = \frac{\langle\v v|\v w\rangle}{\langle\v v|\v v\rangle}\v v.$$

  • Step 1: let $\v v_1 = \v w_1 / \sqrt{\langle\v w_1|\v w_1\rangle}$.

  • Step $k$: let $$\v u_k = \v w_k - \sum_{i=1}^{k-1} \mathcal P_{\v v_i}(\v w_k), $$ which gives an orthogonal vector. Then normalise it by $$ \v v_k = \frac{\v u_k}{\sqrt{\langle\v u_k|\v u_k\rangle}}. $$ (Explanation)

Determinant open_in_new

Motivation for determinant open_in_new

For a linear map $\alpha: \R^3 \to \R^3$ and standard basis $\vec e_1,\vec e_2,\vec e_3\mapsto \vec e_1', \vec e_2', \vec e_3'$, the determinant is defined to be the volume of the parallelepiped formed by $\vec e_1', \vec e_2', \vec e_3'$, $$\begin{align*} \det A &\equiv [\vec e_1', \vec e_2', \vec e_3'] \\ &= \epsilon_{ijk} (\vec e_1')_i (\vec e_2')_j (\vec e_3')_k \\ &= \epsilon_{ijk} \big(A_{il} (\vec e_1)_l\big) \big(A_{jm} (\vec e_2)_m\big) \big(A_{kn} (\vec e_3)_n\big) \\ &= \epsilon_{ijk} A_{il} \delta_{l1} A_{jm} \delta_{m2} A_{kn} \delta_{n3} \\ &= \epsilon_{ijk} A_{i1} A_{j2} A_{k3}. \end{align*}$$

See permutations in Groups for detailed discussion.

Definition (generalisation of Levi-Cevita symbol) open_in_new

Define $$ \epsilon_{j_1j_2\ldots j_n} = \begin{cases} +1 & \text{if }(j_1,j_2,\ldots,j_n)\text{ is an even permutation}, \\ -1 & \text{if }(j_1,j_2,\ldots,j_n)\text{ is an odd permutation}, \\ 0 & \text{otherwise.} \end{cases} $$

Definition (determinant) open_in_new

For an $n\times n$ matrix $A$, define its determinant $$ \det A = \sum_{\sigma\in S_n} \epsilon(\sigma) A_{\sigma(1) 1} A_{\sigma(2) 2} \ldots A_{\sigma(n) n}. $$

Alternatively, in suffix notation, $$ \det A = \epsilon_{j_1j_2\ldots j_n} A_{j_1 1} A_{j_2 2} \ldots A_{j_n n} $$ or equivalently, $$ \det A = \frac{1}{n!}\epsilon_{i_1i_2\ldots i_n}\epsilon_{j_1j_2\ldots j_n} A_{i_1 j_1} A_{i_2 j_2} \ldots A_{i_n j_n} $$

Properties of determinant open_in_new

Matrices mentioned here are of size $n\times n$.

Proposition (transpose has the same determinant) open_in_new

$$\det A = \det A^T.$$

Proof

Proposition (determinant when multiplying a row or column by scalar) open_in_new

If matrix $B$ is formed by multiplying every entry in a single row or column of $A$ by scalar $\lambda$, then $$\det B = \lambda \det A.$$

More formal description and proof

Proposition (determinant of scalar multiple) open_in_new

$$ \det \lambda A = \lambda^n \det A. $$

Proof

Proposition (determinant when two rows or columns equal) open_in_new

If two rows or columns of $A$ are identical, then $\det A = 0$.

Proof

Proposition (determinant when adding multiple of rows or columns onto another) open_in_new

If a matrix $B$ is formed by adding a scalar multiple $\lambda$ of a column (or row) of $A$ onto another column (or row), then $\det B = \det A$.

More formal description and proof

Proposition (determinant when two rows or columns are linearly dependent) open_in_new

If two rows or columns of $A$ are linearly dependent, then $\det A = 0$.

Proof

Proposition (determinant of products) open_in_new

$$ \det AB = \det A \det B. $$

Proof

Proposition (determinant of orthogonal and unitary matrix) open_in_new
  • If $A$ is orthogonal, then $\det A = \pm 1$ (Proof). In particular, in $\R^3$, $A$ represents a rotation ($\det A = 1$) or a reflection ($\det A = -1$).

  • If $U$ is unitary, then $|\det U| = 1$ (Proof).

Minors and cofactors open_in_new

Definition (minors, cofactors) open_in_new

For an $n\times n$ matrix $A$, define $A^{ij}$ be the $(n-1)\times(n-1)$ matrix in which row $i$ and column $j$ of $A$ are removed, $$ A^{ij} = \pmat{ A_{11} & \ldots & A_{1(j-1)} & A_{1(j+1)} & \ldots & A_{1n} \\ \vdots & & \vdots & \vdots & & \vdots \\ A_{(i-1)1} & \ldots & A_{(i-1)(j-1)} & A_{(i-1)(j+1)} & \ldots & A_{(i-1)n} \\ A_{(i+1)1} & \ldots & A_{(i+1)(j-1)} & A_{(i+1)(j+1)} & \ldots & A_{(i+1)n} \\ \vdots & & \vdots & \vdots & & \vdots \\ A_{n1} & \ldots & A_{n(j-1)} & A_{n(j+1)} & \ldots & A_{nn} \\ }.$$

  • The minor of the $ij$-th element of $A$ is defined as $$ M_{ij} = \det A^{ij}. $$

  • The cofactor of the $ij$-th element of $A$ is defined as $$ \Delta_{ij} = (-1)^{i-j} M_{ij}. $$

Proposition (Laplace expansion) open_in_new

For any $I=1,2,\ldots n$ of an $n\times n$ matrix $A$, the determinant of $A$ can be expanded along column $I$ as $$ \det A = \sum_{J_I=1}^n A_{J_I I} \Delta_{J_I I} $$ or along row $I$ as $$ \det A = \sum_{J_I=1}^n A_{IJ_I} \Delta_{IJ_I}. $$

Proof (Laplace expansion)

Proposition (expanding wrongly gives zero determinant) open_in_new

For an $n\times n$ matrix $A$ and row indices $i\neq I$, $$ \sum_{k=1}^n A_{ik} \Delta_{Ik} = 0. $$ Similarly for column indices $j\neq J$, $$ \sum_{k=1}^n A_{kj} \Delta_{kJ} = 0. $$

Proof (expanding wrongly gives zero determinant)

Matrices and linear equations open_in_new

Theorem (inverse of matrix) open_in_new

For an $n\times n$ matrix $A$, if $\det A\neq 0$, then $A\inv$ exists and is $$ (A\inv)_{ij} = \frac{\Delta_{ji}}{\det A}. $$

Proof

Calculating inverse of matrix is time-consuming.

System of linear equations with unique solution open_in_new

Suppose $A\v x = \v b$, where $A$ is an $n\times n$ matrix, and $\v x,\v b$ are $n\times 1$ column vectors.

We call the system homogenous if $\v b=\v 0$, otherwise inhomogenous.

If $\det A\neq 0$, then $A\inv$ exists, and $$\v x=A\inv\v b$$ is the unique solution.

Another perspective is that for the standard basis $\v e_i$, $\det A\neq 0$ implies that the columns i.e. images of the basis $\v e_i' = A\v e_i$ are linearly independent. Since there are $n$ such vectors, $\v e_i'$ form a basis of $\R^n$ or $\C^n$. Therefore, $$ \text{rank } r(A) = n,\quad \text{nullity } n(A) = 0. $$ This agrees with the fact that the kernel is $\set \v0$.

Gaussian elimination open_in_new

Process of Gaussian elimination open_in_new

For a system of $m$ linear equations in $n$ unknowns, $$\pmat{A_{11} & A_{12} & A_{13} & \ldots & A_{1n} \\ A_{21} & A_{22} & A_{23} & \ldots & A_{2n} \\ \vdots & & & \ddots & \vdots \\ A_{m1} & A_{m2} & A_{m3} & \ldots & A_{mn}} \pmat{x_1 \\ x_2 \\ x_3 \\ \vdots \\ x_n} = \pmat{d_1 \\ d_2 \\ \vdots \\ d_m} \qquad \qquad \begin{cases} A_{11} x_1 + A_{12} x_2 + \ldots + A_{1n} x_n &= d_1 \\ A_{21} x_1 + A_{22} x_2 + \ldots + A_{2n} x_n &= d_2 \\ \vdots \\ A_{m1} x_1 + A_{m2} x_2 + \ldots + A_{mn} x_n &= d_m \\ \end{cases}$$

By assuming $A_{11}\neq 0$ etc by reordering the equations or variables if needed, we write $x_1$ in terms of the other variables, and then substitute into the other equations. Repeat and terminate when we have no equations with non-zero coefficients left. We will get $$\pmat{A_{11} & A_{12} & A_{13} & \ldots & \ldots & \ldots & A_{1n} \\ 0 & A_{22}^{(2)} & A_{23}^{(2)} & \ldots & \ldots & \ldots & A_{2n}^{(2)} \\ \vdots & & \ddots &&& &\vdots \\ 0 & \ldots & 0 & A_{rr}^{(r)} & A_{r(r+1)}^{(r)} & \ldots & A_{rn}^{(n)} \\ 0 & \ldots & 0 & 0 & 0 & \ldots & 0 \\ \vdots &&&&&& \vdots \\ 0 & \ldots & \ldots & \ldots & \ldots & \ldots & 0} \pmat{x_1 \\ x_2 \\ x_3 \\ \vdots \\ x_n} = \pmat{d_1 \\ d_2 \\ \vdots \\ d_m} \quad \quad \begin{cases} A_{11} x_1 &+& A_{12} x_2 &+& \ldots &+&\ldots&+&A_{1n} x_n &=& d_1 \\ & &A_{22}^{(2)} x_2 &+&\ldots &+& \ldots &+& A_{2n}^{(2)} x_n &=& d_2^{(2)} \\ &&&\ddots &&&&&&&\vdots \\ &&&&A_{rr}^{(r)} x_r &+& \ldots &+& A_{rn}^{(r)} x_n &=& d_r^{(r)} \\ &&&&&&&&0 &=& d_{r+1}^{(r)} \\ &&&&&&&&\vdots &=& \vdots \\ &&&&&&&&0 &=& d_{n}^{(r)} \\ \end{cases}$$ with $A_{ii}^{(n)} \neq 0$ for all $i=1,2,\ldots,r$, where the superfix refers to the version number.

Overdetermined, determined and underdetermined system open_in_new
  • If $r<m$ and $d_i^{(r)} \neq 0$ for some $i=r+1,r+2,\ldots,m$, then the system is inconsistent, so there is no solution.
    We say the system is overdetermined.

  • If $r=n\leq m$ and all $d_i^{(r)} = 0$ for some $i=r+1,r+2,\ldots,m$, then last non-zero equation $$ A_{nn}^{(n)} x_n = d_n^{(n)} $$ can be solved, then performing back substitution gives a unique solution.
    We say the system is determined.

  • If $r<n$ and all $d_i^{(r)} = 0$ for some $i=r+1,r+2,\ldots,m$, then the last non-zero equation is $$A_{rr}^{(r)} x_r + A_{r(r+1)}^{(r)} x_{r+1} + \ldots + A_{rn}^{(r)} x_{n} = d_{r}^{(r)}, $$ so $x_{r+1}, \ldots, x_n$ can be chosen freely, and back substitution gives a valid solution.
    Therefore we have infinitely many solution.
    We say the system is underdetermined.

Upper triangular matrix of Gaussian elimination open_in_new

When $m=n$, $\det A = (-1)^R \det$ (the upper triangular matrix), where $R$ is the number of rearrangements of rows and columns.

Note that since the only $\sigma\in S_n$ such that $\sigma(i)\geq i$ for all $i=1,\ldots,n$ is the identity, $$ \det A = (-1)^R A_{11} A_{22}^{(2)} A_{33}^{(3)} \ldots A_{nn}^{(n)}. $$ Therefore $\det A=0$ iff $r<n$.

Matrix rank open_in_new

Definition (matrix rank) open_in_new

For an $m\times n$ matrix $A$, its rank is defined as $r(A) = r(\alpha)$, where $\alpha$ is the associated linear map $\alpha: \R^n \to \R^m$.

Theorem (row rank equals column rank) open_in_new

For an $m\times n$ matrix $A$, define the column rank of $A$ as the dimension of the spanning set of columns of $A$, and similarly for row rank. Then $$ \text{row rank} = \text{column rank} = r(A). $$

Proof

General solution of linear equations open_in_new

For the equation $$ A\v x = \v d $$ where $A$ is an $m\times n$ matrix.

Let $\set{\v u_i}_{i=1,2,\ldots,n(A)}$ be the basis of the kernel. Extend the basis to $\set{\v u_i}_{i=1,2,\ldots,n}$. Then $$ \im A = \mrm{span}\{A\v u_{n(A)+1}, \ldots A\v u_n\}.$$

  • If $\v d \not\in \im A$, then there is no solution.

  • If $\v d \in \im A$, then at least one solution exists. Let $\v x_0$ be a particular solution. The general can be written as $$ \v x = \v x_0 + \v y $$ where $\v y \in \ker A$.

    • If $n(A) = 0$, then $\v y = \v 0$ gives the only solution.

    • If $n(A) > 0$, then $$\v x = \v x_0 + \sum_{j=1}^{n(A)} \mu_j \v u_j.$$

Eigenvalues and eigenvectors open_in_new

Definition (eigenvector, eigenvalue) open_in_new

Consider linear map $\alpha: \C^n\to\C^n$ with the associated $n\times n$ matrix $A$.

A vector $\v x\neq \v 0$ is an eigenvector of $A$ and $\lambda$ is the associated eigenvalue if $$ A\v x = \lambda \v x. $$

Definition (characteristic polynomial and equation of eigenvalues) open_in_new

For an $n\times n$ matrix $A$, the characteristic polynomial is $$ p_A(\lambda) \equiv \det(A - \lambda I). $$ Eigenvalues satisfy the characteristic equation $$ p_A(\lambda) = \det(A-\lambda I) = 0. $$

Properties of the characteristic polynomial open_in_new
  • $p_A(\lambda)$ is a polynomial of order $n$.

  • By the fundamental theorem of algebra, $A$ has $n$ eigenvalues accounting multiplicity.

  • Sum and product of eigenvalues are $$\begin{align*} \sum_{\text{eigenvalue }\lambda} \lambda &= \mrm{tr}\, A, \\ \prod_{\text{eigenvalue }\lambda} \lambda &= \det A. \end{align*}$$ (Derivation)

Definition (eigenspace) open_in_new

The eigenspace $E_\lambda$ of an eigenvalue $\lambda$ is $$E_\lambda = \ker(A-\lambda I) = \sb{\v x\in\C^n}{A\v x= \lambda\v x}.$$

Definition (algebraic and geometric multiplicity, degenerate, defect) open_in_new

For an eigenvalue $\lambda$,

  • The algebraic multiplicity $M_\lambda$ is the multiplicity of $\lambda$ as a root of $p_A(\lambda) = 0$.

    • If $M_\lambda > 1$, then eigenvalue $\lambda$ is called degenerate.

    • By the fundamental theorem of algebra, $\sum_{\text{eigenvalue }\lambda} M_\lambda = n$.

  • The geometric multiplicity $m_\lambda$ is the maximum number of linearly independent eigenvectors with eigenvalue $\lambda$, i.e. $$ m_\lambda = \dim E_\lambda. $$

  • The defect $\Delta_\lambda$ is defined as $$ \Delta_\lambda = M_\lambda - m_\lambda. $$

Proposition (non-negative defect) open_in_new

For any matrix $A$ and its eigenvalue $\lambda$, the defect $$ \Delta_\lambda \geq 0. $$

Proof

Theorem (distinct eigenvalues imply linearly independent eigenvectors) open_in_new

Suppose an $n\times n$ matrix $A$ has $n$ eigenvalues $\lambda_1, \lambda_2, \ldots, \lambda_n$ corresponding to eigenvectors $\v x_1, \v x_2, \ldots, \v x_n$.

If $\lambda_1, \ldots, \lambda_n$ are distinct, then $\v x_1, \ldots, \v x_n$ are linearly independent.

Proof

Eigenvector basis open_in_new

By the above theorem, if $n\times n$ matrix $A$ has $n$ distinct eigenvalues, then $A$ has $n$ linearly independent $\v v_1, \v v_2, \ldots, \v v_n$, so the matrix $A$ with respect to this basis is diagonal: $$ A\v v_i = \lambda_i\v v_i,\quad \forall i=1,2,\ldots,n $$ $$ A = \pmat{ \lambda_1 & 0 & \ldots & 0 \\ 0 & \lambda_2 & \ldots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \ldots & \lambda_n} $$

Transformation matrices open_in_new

Suppose we want to change the basis from $\set{\v e_1, \v e_2, \ldots, \v e_n}$ to $\set{\v e_1', \v e_2', \ldots, \v e_n'}$.

Change-of-basis matrix open_in_new

Define the change-of-basis matrix $P$ by (using summation notation) $$ \v e_j' = P_{ij} \v e_i. $$ To change it back, use the inverse matrix $P\inv$ $$ \v e_i = (P\inv)_{ij} \v e_j'. $$ (Derivation)

Transformation law for vectors open_in_new

To transform a vector $\v u$ from $\v e_i$ to $\v e_j'$ basis, multiply by $P\inv$: $$ u_j' = (P\inv)_{jk} u_k, \qquad \v u' = P\inv \v u. $$ To transform it back, multiply by $P$: $$ u_i = P_{ij} u_j', \qquad \v u = P\v u'. $$ (Derivation and notes)

Example

Transformation law for matrices open_in_new

Consider linear map $\alpha: \C^m \to \C^n$ with associated $n\times m$ matrix $A$.

To transform to a matrix that takes the input in the new basis and output a vector in the new basis, if $P$ is the change-of-basis matrix of $\C^m$ and $Q$ is that of $\C^n$, use $$ A' = Q\inv A P. $$ (Derivation)

For $\alpha: \C^n\to\C^n$, we usually transform to the same basis in domain and codomain, so $$ A' = P\inv AP. $$

Definition (similar matrix) open_in_new

Two $n\times n$ matrices $A,B$ are similar if there exists an invertible matrix $P$ such that $$ B = P\inv A P. $$

Proposition (similar matrices have the same characteristic polynomials) open_in_new

If $A,B$ are similar matrices, then their characteristic polynomials equal: $$ p_A(\lambda) = p_B(\lambda). $$

Proof

It follows that $\det A = \det B$ and $\mrm{tr}\, A = \mrm{tr}\, B$.

Proposition (transformation matrix between orthonormal bases is unitary) open_in_new

Suppose $U$ is the change-of-basis matrix between one orthonormal basis and a new orthonormal basis. Then $U$ is unitary.

Proof

  • Equivalent does not imply similar: $I_n$ is equivalent to every element in $\mathrm{GL}_n(\mathbb{F})$, but $I_n$ is only similar to itself.

Diagonalisable matrices open_in_new

Definition (diagonalisable matrix) open_in_new

An $n\times n$ matrix $A$ is diagonalisable if it is similar to a diagonal matrix.

Equivalently, $A$ is diagonalisable if its eigenvectors form a basis of $\C^n$.

Theorem (basis vectors of eigenspaces are linearly independent) open_in_new

Let $\lambda_1, \lambda_2, \ldots, \lambda_r$ with $r\leq n$ be the distinct eigenvalues of an $n\times n$ matrix $A$, and let $B_i$ be the bases of the corresponding eigenspaces $E_{\lambda_i}$.

Then the set $B = \bigcup_{i=1}^r B_i$ is linearly independent.

Proof

Test for diagonalisability open_in_new
  1. Solve $p_A(\lambda) = 0$ for distinct solutions $\lambda_1, \lambda_2, \ldots, \lambda_r$;

  2. Find the basis $B_i$ of eigenspace $E_{\lambda_i}$ to find $m_{\lambda_i}$ for all $i=1,2,\ldots, r$;

  3. Calculate the size of $B$ $= \sum_{i=1}^r m_{\lambda_i}$.

    • If this equals $n$, then $A$ is diagonalisable.

    • Otherwise $A$ is not.

Jordan normal form open_in_new

Proposition (2x2 matrix has Jordan normal form) open_in_new

Any $2\times2$ complex matrix $A$ is similar to one of $$ \pmat{\lambda_1&0\\0&\lambda_2}, \quad\pmat{\lambda&0\\0&\lambda}, \quad\pmat{\lambda&1\\0&\lambda}. $$

Proof

Proposition (nxn matrix has Jordan normal form) open_in_new

Every complex $n\times n$ matrix is similar to a matrix $A'$ satisfying $$ A'_{ij} = \begin{cases} \lambda_{i}, &j=i, \\ 0 \text{ or } 1, &j=i+1, \\ 0, &\text{otherwise}. \end{cases} $$

Example (finding Jordan normal form)

Cayley-Hamilton theorem open_in_new

Theorem (Cayley-Hamilton theorem) open_in_new

Every $n\times n$ complex matrix $A$ satisfies its own characteristic equation, i.e. $$ p_A(A) = 0. $$

Partial proof

Corollary (matrix inverse using coefficients in characteristic polynomial) open_in_new

If $A\inv$ exists and $$ p_A(x) = c_0 + c_1 x + \ldots + c_n x^n, $$ then $$ A\inv = -\frac1{c_0}(c_1 I + c_2 A + \ldots + c_n A^{n-1}). $$

Proof

Eigenvectors of normal matrices open_in_new

Theorem (eigenvalues of Hermitian matrix is real) open_in_new

The eigenvalues of a Hermitian matrix $H$ are real.

Proof

Consequently so are those of a real symmetric matrix.

Lemma (distinct eigenvalues of normal matrix correspond to orthogonal eigenvectors) open_in_new

Eigenvectors of a normal matrix corresponding to distinct eigenvalues are orthogonal.

Proof

Theorem (normal matrix has orthogonal eigenvector basis) open_in_new

An $n\times n$ normal matrix has $n$ orthogonal eigenvectors.

Proof

Theorem (normal matrix iff diagonalisable via unitary transform) open_in_new

A matrix $A$ is similar to a diagonal matrix $D$ via a unitary transform $U$, i.e. $$ A = UDU^\dagger, $$ iff $A$ is normal.

Theorem (Gershgorin circle theorem) open_in_new

For an $n\times n$ matrix $A$, for each row $i$ define $$ R_i = \sum_{j\neq i} |A_{ij}| $$ and define a disk $D_i(A_{ii}, R_i)\subset\C$ to be the circle with centre $A_{ii}$ and radius $R_i$.

Then every eigenvalues lie within a disk $D_i$ for some $i$.

Proof

Quadratic forms and conics open_in_new

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*}$$

Transformation group open_in_new

Orthogonal groups open_in_new

Definition (orthogonal groups) open_in_new

The $n$-dimensional orthogonal group is the subgroup of $\gl n\R$ that preserves distance in $\R^n$: $$ O(n) = \sb{A\in\gl n\R}{\|Av\| = \|v\|\ \forall v\in\R^n}. $$

Lemma (equivalent definitions of orthogonal matrices) open_in_new

Let $P\in M_n(\R)$. The following are equivalent:

  1. $P^T P = I$.

  2. $|P\v x| = |\v x|$ for all $\v x\in\R^n$;

  3. $(P\v x)\cdot(P\v y) = \v x\cdot\v y$ for all $\v x,\v y\in\R^n$.

  4. if $(\v v_1, \v v_2, \ldots, \v v_n)$ are orthonormal, then so are $(P\v v_1, P\v v_2, \ldots, P\v v_n)$;

  5. columns of $P$ form an orthonormal basis.

Proof

Proposition (determinant of orthogonal and unitary matrix) open_in_new
  • If $A$ is orthogonal, then $\det A = \pm 1$ (Proof). In particular, in $\R^3$, $A$ represents a rotation ($\det A = 1$) or a reflection ($\det A = -1$).

  • If $U$ is unitary, then $|\det U| = 1$ (Proof).

Definition (special orthogonal group) open_in_new

The special orthogonal group is the group of all orthogonal matrices with determinant 1, $$ \mrm{SO}(n) = O(n) \inter \sl n\R = \sb{A\in O(n)}{\det A=1}.$$

Definition (reflection) open_in_new

Any $v\in\R^n \setminus \set 0$ define an orthogonal hyperplane $P_v = \sb{x\in R^n}{x\cdot v = 0}.$ The reflection in $P_v$ is defined to be $$ S_v(x) = x - \frac{2(x\cdot v)}{\|v\|^2}v. $$

Properties of reflection open_in_new
  • We can assume $v$ is normalised to $v/\|v\|$.

  • $S_v^2 = I$. (Proof)

  • $S_v \in O(n)$. (Proof)

  • $\det S_v = -1$, so $S_v\not\in \mrm{SO}(n)$. (Proof)

Theorem (reflection generate $O(n)$) open_in_new

Every $A\in O(n)$ is a product of at most $n$ reflections.

Proof

Lemma (elements of $O(2)$) open_in_new

Let $A\in O(2)$.

  • If $A\not\in \mrm{SO}(2)$, then $A$ is a reflection;

  • If $A\in\mrm{SO}(2)$, then $A$ is a rotation, here means that $A=I$ or $\mrm{Fix}(A) = \set 0$.

Proof

Lemma ($SO(3)$ fixes a line) open_in_new

If $A\in\mrm{SO}(3)$, then $A$ is a rotation, here defined as $A=I$ or $\mrm{Fix}(A)$ is a line.

Proof

Minkowski spacetime open_in_new

Consider a Minkowski 1+1 dimensional spacetime, i.e. one dimension of space and one dimension of time.

Definition (Minkowski inner product) open_in_new

Define the Minkowski inner product of $\v x,\v y$ to be $$ \langle \v x|\v y\rangle \equiv \v x^T \Lambda \v y \equiv x_1 y_1 - x_2 y_2, \quad \Lambda = \pmat{1 & 0 \\ 0 & -1}. $$

Proposition (Minkowski inner product-preserving transformation) open_in_new

If a matrix $M$ has top right entry $M_{11} > 0$ (to preserve forward/backward light cone) and preserves the Minkowski inner product, i.e. $$ \langle \v x|\v y\rangle = \langle M\v x|M\v y\rangle, $$ then $M$ satisfies $$ \Lambda = M^T \Lambda M $$ and is of the form $H_\alpha$ or $K_{\alpha/2}$, where $$ H_\alpha = \pmat{\cosh\alpha & \sinh\alpha \\ \sinh\alpha & \cosh\alpha}, \quad K_{\alpha/2} = \pmat{\cosh\alpha & -\sinh\alpha \\ \sinh\alpha & -\cosh\alpha}. $$

Proof

Definition (Lorentz matrix) open_in_new

Define the Lorentz matrix as $$ B_v \equiv \frac1{\sqrt{1-v^2}}\pmat{1 & v \\ v & 1} = H_{\tanh\inv v} $$ for some velocity $v$ in natural unit, i.e. speed of light = 1.

Proposition (Lorentz matrix forms a group) open_in_new

The set of all Lorentz matrix $\sb{B_v}{v \in (-1,1)}$ forms a group.

Proof