Matrix algebra

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)