Skip to main content

Matrices and Linear Transformations

Matrix Operations

Notation

An m×nm \times n matrix AA has mm rows and nn columns. The entry in row ii, column jj is aija_{ij}.

Addition and Scalar Multiplication

For A,B{M}m×n({R})A, B \in \mathcal{'\{'}M{'\}'}_{m \times n}(\mathbb{'\{'}R{'\}'}) and λ{R}\lambda \in \mathbb{'\{'}R{'\}'}:

(A+B)ij=aij+bij,(λA)ij=λaij(A + B)_{ij} = a_{ij} + b_{ij}, \qquad (\lambda A)_{ij} = \lambda a_{ij}

Matrix Multiplication

If AA is m×pm \times p and BB is p×np \times n, the product C=ABC = AB is m×nm \times n with:

cij=k=1paikbkjc_{ij} = \sum_{k=1}^{p} a_{ik}b_{kj}

Key properties:

  • (AB)C=A(BC)(AB)C = A(BC) (associative)
  • A(B+C)=AB+ACA(B + C) = AB + AC (distributive)
  • ABBAAB \ne BA in general (not commutative)
  • (AB)T=BTAT(AB)^T = B^T A^T

Example. If A=(1234)A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} and B=(5678)B = \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix}:

AB=(15+2716+2835+4736+48)=(19224350)AB = \begin{pmatrix} 1 \cdot 5 + 2 \cdot 7 & 1 \cdot 6 + 2 \cdot 8 \\ 3 \cdot 5 + 4 \cdot 7 & 3 \cdot 6 + 4 \cdot 8 \end{pmatrix} = \begin{pmatrix} 19 & 22 \\ 43 & 50 \end{pmatrix}

BA=(23343146)ABBA = \begin{pmatrix} 23 & 34 \\ 31 & 46 \end{pmatrix} \ne AB


Determinants

2×22 \times 2 Determinant

det(abcd)=adbc\det\begin{pmatrix} a & b \\ c & d \end{pmatrix} = ad - bc

3×33 \times 3 Determinant (Cofactor Expansion)

detA=a11a22a23a32a33a12a21a23a31a33+a13a21a22a31a32\det A = a_{11}\begin{vmatrix} a_{22} & a_{23} \\ a_{32} & a_{33} \end{vmatrix} - a_{12}\begin{vmatrix} a_{21} & a_{23} \\ a_{31} & a_{33} \end{vmatrix} + a_{13}\begin{vmatrix} a_{21} & a_{22} \\ a_{31} & a_{32} \end{vmatrix}

Example. det(102311241)\det\begin{pmatrix} 1 & 0 & 2 \\ 3 & 1 & -1 \\ 2 & 4 & 1 \end{pmatrix}

=111410+23124=1(1+4)+2(122)=5+20=25= 1\begin{vmatrix} 1 & -1 \\ 4 & 1 \end{vmatrix} - 0 + 2\begin{vmatrix} 3 & 1 \\ 2 & 4 \end{vmatrix} = 1(1 + 4) + 2(12 - 2) = 5 + 20 = 25

Properties

  • det(AB)=det(A)det(B)\det(AB) = \det(A)\det(B)
  • det(AT)=det(A)\det(A^T) = \det(A)
  • det(λA)=λndet(A)\det(\lambda A) = \lambda^n \det(A) for n×nn \times n matrix AA
  • Swapping two rows multiplies the determinant by 1-1
  • If two rows are equal, det(A)=0\det(A) = 0
  • det(A)=0\det(A) = 0 if and only if AA is singular (non-invertible)

Matrix Inverses

Definition

If AA is a square matrix, its inverse A1A^{-1} satisfies:

AA1=A1A=IAA^{-1} = A^{-1}A = I

AA is invertible if and only if det(A)0\det(A) \ne 0.

2×22 \times 2 Inverse

A1=1adbc(dbca)A^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}

Example. Find the inverse of A=(3152)A = \begin{pmatrix} 3 & 1 \\ 5 & 2 \end{pmatrix}.

det(A)=65=10\det(A) = 6 - 5 = 1 \ne 0, so AA is invertible.

A1=(2153)A^{-1} = \begin{pmatrix} 2 & -1 \\ -5 & 3 \end{pmatrix}

Inverse via Row Reduction (Gauss-Jordan)

To find A1A^{-1}, augment AA with II and apply row operations:

[AI]row ops[IA1]\left[\,A \mid I\,\right] \xrightarrow{\mathrm{row\ ops}} \left[\,I \mid A^{-1}\,\right]

If the left half reduces to II, the right half is A1A^{-1}. If the left half has a zero row, AA is singular.

Example. Find A1A^{-1} for A=(123014001)A = \begin{pmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 0 & 0 & 1 \end{pmatrix}.

Since AA is upper triangular, det(A)=111=1\det(A) = 1 \cdot 1 \cdot 1 = 1.

[123100014010001001]\left[\begin{array}{ccc|ccc} 1 & 2 & 3 & 1 & 0 & 0 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 0 & 0 & 1 & 0 & 0 & 1 \end{array}\right]

R1R12R2R_1 \to R_1 - 2R_2:

[105120014010001001]\left[\begin{array}{ccc|ccc} 1 & 0 & -5 & 1 & -2 & 0 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 0 & 0 & 1 & 0 & 0 & 1 \end{array}\right]

R1R1+5R3R_1 \to R_1 + 5R_3, R2R24R3R_2 \to R_2 - 4R_3:

[100125010014001001]\left[\begin{array}{ccc|ccc} 1 & 0 & 0 & 1 & -2 & 5 \\ 0 & 1 & 0 & 0 & 1 & -4 \\ 0 & 0 & 1 & 0 & 0 & 1 \end{array}\right]

A1=(125014001)A^{-1} = \begin{pmatrix} 1 & -2 & 5 \\ 0 & 1 & -4 \\ 0 & 0 & 1 \end{pmatrix}


Solving Systems of Linear Equations

Matrix Form

The system A{x}={b}A\mathbf{'\{'}x{'\}'} = \mathbf{'\{'}b{'\}'} where AA is n×nn \times n:

  • Unique solution: det(A)0\det(A) \ne 0, giving {x}=A1{b}\mathbf{'\{'}x{'\}'} = A^{-1}\mathbf{'\{'}b{'\}'}
  • No solution or infinitely many: det(A)=0\det(A) = 0

Cramer's Rule

If det(A)0\det(A) \ne 0, the ii-th component of the solution is:

xi=det(Ai)det(A)x_i = \frac{\det(A_i)}{\det(A)}

where AiA_i is AA with the ii-th column replaced by {b}\mathbf{'\{'}b{'\}'}.

Example. Solve {2x+y=5xy=1\begin{cases} 2x + y = 5 \\ x - y = 1 \end{cases}.

A=(2111),det(A)=21=3A = \begin{pmatrix} 2 & 1 \\ 1 & -1 \end{pmatrix}, \quad \det(A) = -2 - 1 = -3

x=det(5111)3=63=2,y=det(2511)3=33=1x = \frac{\det\begin{pmatrix} 5 & 1 \\ 1 & -1 \end{pmatrix}}{-3} = \frac{-6}{-3} = 2, \qquad y = \frac{\det\begin{pmatrix} 2 & 5 \\ 1 & 1 \end{pmatrix}}{-3} = \frac{-3}{-3} = 1

Gaussian Elimination

For systems of any size, use row reduction to transform the augmented matrix to row echelon form, then back-substitute.


Geometric Transformations

2×22 \times 2 Transformation Matrices

Each linear transformation of {R}2\mathbb{'\{'}R{'\}'}^2 can be represented by a 2×22 \times 2 matrix.

TransformationMatrixEffect on Area
Reflection in xx-axis(1001)\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}Preserved
Reflection in yy-axis(1001)\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}Preserved
Reflection in y=xy = x(0110)\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}Preserved
Rotation θ\theta anticlockwise(cosθsinθsinθcosθ)\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}Preserved
Enlargement by kk(k00k)\begin{pmatrix} k & 0 \\ 0 & k \end{pmatrix}Scaled by k2k^2
Stretch parallel to xx-axis by kk(k001)\begin{pmatrix} k & 0 \\ 0 & 1 \end{pmatrix}Scaled by $
Shear parallel to xx-axis by kk(1k01)\begin{pmatrix} 1 & k \\ 0 & 1 \end{pmatrix}Preserved

Composition of Transformations

If transformation AA is followed by transformation BB, the combined transformation is represented by the matrix product BABA (note the order: apply AA first, then BB).

Example. Find the matrix for a rotation of 9090\,{}^{\circ} anticlockwise about the origin, followed by a reflection in the xx-axis.

A=(0110)(rotation),B=(1001)(reflection)A = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} \quad \mathrm{(rotation)}, \qquad B = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix} \quad \mathrm{(reflection)}

BA=(0110)BA = \begin{pmatrix} 0 & -1 \\ -1 & 0 \end{pmatrix}

This is equivalent to a reflection in the line y=xy = -x.

Invariant Points and Lines

An invariant point satisfies A{x}={x}A\mathbf{'\{'}x{'\}'} = \mathbf{'\{'}x{'\}'}, i.e. (AI){x}={0}(A - I)\mathbf{'\{'}x{'\}'} = \mathbf{'\{'}0{'\}'}. An invariant line is a line mapped to itself (points on the line may move along it).


Eigenvalues and Eigenvectors

Definition

For a square matrix AA, a scalar λ\lambda is an eigenvalue if there exists a non-zero vector {v}\mathbf{'\{'}v{'\}'} such that:

A{v}=λ{v}A\mathbf{'\{'}v{'\}'} = \lambda\mathbf{'\{'}v{'\}'}

The vector {v}\mathbf{'\{'}v{'\}'} is the corresponding eigenvector.

Characteristic Equation

det(AλI)=0\det(A - \lambda I) = 0

This is a polynomial equation of degree nn in λ\lambda whose roots are the eigenvalues.

Finding Eigenvectors

For each eigenvalue λi\lambda_i, solve (AλiI){v}={0}(A - \lambda_i I)\mathbf{'\{'}v{'\}'} = \mathbf{'\{'}0{'\}'}.

Worked Examples

Example. Find the eigenvalues and eigenvectors of A=(4123)A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}.

Characteristic equation:

det(4λ123λ)=(4λ)(3λ)2=λ27λ+10=0\det\begin{pmatrix} 4 - \lambda & 1 \\ 2 & 3 - \lambda \end{pmatrix} = (4 - \lambda)(3 - \lambda) - 2 = \lambda^2 - 7\lambda + 10 = 0

(λ5)(λ2)=0    λ1=5,λ2=2(\lambda - 5)(\lambda - 2) = 0 \implies \lambda_1 = 5, \quad \lambda_2 = 2

For λ1=5\lambda_1 = 5: (A5I){v}={0}(A - 5I)\mathbf{'\{'}v{'\}'} = \mathbf{'\{'}0{'\}'}:

(1122)(xy)=(00)    x+y=0    y=x\begin{pmatrix} -1 & 1 \\ 2 & -2 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix} \implies -x + y = 0 \implies y = x

Eigenvector: {v}1=(11)\mathbf{'\{'}v{'\}'}_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix} (or any scalar multiple).

For λ2=2\lambda_2 = 2: (A2I){v}={0}(A - 2I)\mathbf{'\{'}v{'\}'} = \mathbf{'\{'}0{'\}'}:

(2121)(xy)=(00)    2x+y=0    y=2x\begin{pmatrix} 2 & 1 \\ 2 & 1 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix} \implies 2x + y = 0 \implies y = -2x

Eigenvector: {v}2=(12)\mathbf{'\{'}v{'\}'}_2 = \begin{pmatrix} 1 \\ -2 \end{pmatrix}.

Diagonalisation

If AA has nn linearly independent eigenvectors, it can be diagonalised:

A=PDP1A = PDP^{-1}

where DD is the diagonal matrix of eigenvalues and PP has eigenvectors as columns.

Applications:

  • Computing AnA^n efficiently: An=PDnP1A^n = PD^nP^{-1}
  • Solving systems of differential equations
  • Principal component analysis (statistics)

Trace and Determinant

For a 2×22 \times 2 matrix with eigenvalues λ1,λ2\lambda_1, \lambda_2:

tr(A)=λ1+λ2=a11+a22\mathrm{tr}(A) = \lambda_1 + \lambda_2 = a_{11} + a_{22}

det(A)=λ1λ2\det(A) = \lambda_1 \lambda_2

3×33 \times 3 Eigenvalue Example

Example. Find the eigenvalues and eigenvectors of A=(200031013)A = \begin{pmatrix} 2 & 0 & 0 \\ 0 & 3 & -1 \\ 0 & -1 & 3 \end{pmatrix}.

Characteristic equation:

det(2λ0003λ1013λ)=(2λ)[(3λ)21]=0\det\begin{pmatrix} 2 - \lambda & 0 & 0 \\ 0 & 3 - \lambda & -1 \\ 0 & -1 & 3 - \lambda \end{pmatrix} = (2 - \lambda)\bigl[(3 - \lambda)^2 - 1\bigr] = 0

(2λ)(λ26λ+8)=(2λ)(λ2)(λ4)=0(2 - \lambda)(\lambda^2 - 6\lambda + 8) = (2 - \lambda)(\lambda - 2)(\lambda - 4) = 0

λ1=2\lambda_1 = 2 (algebraic multiplicity 2), λ2=4\lambda_2 = 4.

For λ=2\lambda = 2: (A2I){v}={0}(A - 2I)\mathbf{'\{'}v{'\}'} = \mathbf{'\{'}0{'\}'} gives (000011011){v}={0}\begin{pmatrix} 0 & 0 & 0 \\ 0 & 1 & -1 \\ 0 & -1 & 1 \end{pmatrix}\mathbf{'\{'}v{'\}'} = \mathbf{'\{'}0{'\}'}, so v2=v3v_2 = v_3 with v1v_1 free. Two linearly independent eigenvectors: {v}1=(1,0,0)\mathbf{'\{'}v{'\}'}_1 = (1, 0, 0) and {v}2=(0,1,1)\mathbf{'\{'}v{'\}'}_2 = (0, 1, 1).

For λ=4\lambda = 4: (A4I){v}={0}(A - 4I)\mathbf{'\{'}v{'\}'} = \mathbf{'\{'}0{'\}'} gives v2v3=0-v_2 - v_3 = 0 and v1=0-v_1 = 0, so {v}3=(0,1,1)\mathbf{'\{'}v{'\}'}_3 = (0, 1, -1).

The matrix is diagonalisable: P=(100011011)P = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 1 \\ 0 & 1 & -1 \end{pmatrix}, D=(200020004)D = \begin{pmatrix} 2 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 4 \end{pmatrix}.


Solving Systems Using Row Reduction

Augmented Matrix Method

For a system of mm equations in nn unknowns, write the augmented matrix [A{b}][A | \mathbf{'\{'}b{'\}'}] and apply elementary row operations to reach row echelon form.

Elementary row operations:

  1. Swap two rows (RiRjR_i \leftrightarrow R_j).
  2. Multiply a row by a non-zero scalar (RikRiR_i \to kR_i).
  3. Add a multiple of one row to another (RiRi+kRjR_i \to R_i + kR_j).

Example: Three Equations in Three Unknowns

Solve the system:

x+2yz=3x + 2y - z = 3 2xy+z=12x - y + z = 1 3x+y+2z=103x + y + 2z = 10

Augmented matrix:

[1213211131210]\left[\begin{array}{ccc|c} 1 & 2 & -1 & 3 \\ 2 & -1 & 1 & 1 \\ 3 & 1 & 2 & 10 \end{array}\right]

R2R22R1R_2 \to R_2 - 2R_1, R3R33R1R_3 \to R_3 - 3R_1:

[121305350551]\left[\begin{array}{ccc|c} 1 & 2 & -1 & 3 \\ 0 & -5 & 3 & -5 \\ 0 & -5 & 5 & 1 \end{array}\right]

R3R3R2R_3 \to R_3 - R_2:

[121305350026]\left[\begin{array}{ccc|c} 1 & 2 & -1 & 3 \\ 0 & -5 & 3 & -5 \\ 0 & 0 & 2 & 6 \end{array}\right]

Back-substitute: 2z=6    z=32z = 6 \implies z = 3. Then 5y+9=5    y=14/5=2.8-5y + 9 = -5 \implies y = 14/5 = 2.8. Then x+5.63=3    x=0.4x + 5.6 - 3 = 3 \implies x = 0.4.

Solution: (x,y,z)=(2/5,14/5,3)(x, y, z) = (2/5,\, 14/5,\, 3).

Nature of Solutions

For an n×nn \times n system A{x}={b}A\mathbf{'\{'}x{'\}'} = \mathbf{'\{'}b{'\}'}:

det(A)\det(A)RankSolutions
0\ne 0nnUnique solution
=0= 0 and consistent<n\lt nInfinitely many solutions
=0= 0 and inconsistentNo solution

3×33 \times 3 Determinant and Inverse

Cofactor Expansion Along Any Row or Column

The determinant can be computed by expanding along any row ii:

det(A)=j=1n(1)i+jaijMij\det(A) = \sum_{j=1}^{n} (-1)^{i+j}\, a_{ij}\, M_{ij}

where MijM_{ij} is the minor (determinant of the submatrix obtained by removing row ii and column jj). Choosing a row or column with the most zeros minimises computation.

Adjugate Method for 3×33 \times 3 Inverse

A1=1det(A)adj(A)A^{-1} = \frac{1}{\det(A)}\,\mathrm{adj}(A)

where the adjugate (adjoint) matrix is the transpose of the cofactor matrix.

Example. Find A1A^{-1} for A=(120013101)A = \begin{pmatrix} 1 & 2 & 0 \\ 0 & 1 & 3 \\ 1 & 0 & 1 \end{pmatrix}.

det(A)=1(10)2(03)+0=1+6=7\det(A) = 1(1 - 0) - 2(0 - 3) + 0 = 1 + 6 = 7.

Cofactor matrix: C=(131212631)C = \begin{pmatrix} 1 & 3 & -1 \\ -2 & 1 & 2 \\ 6 & -3 & 1 \end{pmatrix}.

adj(A)=CT=(126313121)\mathrm{adj}(A) = C^T = \begin{pmatrix} 1 & -2 & 6 \\ 3 & 1 & -3 \\ -1 & 2 & 1 \end{pmatrix}.

A1=17(126313121)A^{-1} = \frac{1}{7}\begin{pmatrix} 1 & -2 & 6 \\ 3 & 1 & -3 \\ -1 & 2 & 1 \end{pmatrix}


Applications of Eigenvalues

Powers of Matrices

If A=PDP1A = PDP^{-1}, then An=PDnP1A^n = PD^nP^{-1}, where DnD^n is trivial to compute (just raise diagonal entries to the nn-th power).

Example. Compute A10A^{10} for A=(3124)A = \begin{pmatrix} 3 & 1 \\ 2 & 4 \end{pmatrix}.

From earlier, λ1=5\lambda_1 = 5, λ2=2\lambda_2 = 2, P=(1112)P = \begin{pmatrix} 1 & 1 \\ 1 & -2 \end{pmatrix}.

D10=(51000210)D^{10} = \begin{pmatrix} 5^{10} & 0 \\ 0 & 2^{10} \end{pmatrix}

A10=PD10P1A^{10} = PD^{10}P^{-1}

Systems of Differential Equations

The system d{x}dt=A{x}\dfrac{d\mathbf{'\{'}x{'\}'}}{dt} = A\mathbf{'\{'}x{'\}'} has solution {x}(t)=eAt{x}(0)\mathbf{'\{'}x{'\}'}(t) = e^{At}\mathbf{'\{'}x{'\}'}(0), which can be evaluated using diagonalisation: eAt=PeDtP1e^{At} = Pe^{Dt}P^{-1}.

warning

Common Pitfall

A matrix is diagonalisable if and only if it has a full set of linearly independent eigenvectors. A matrix with repeated eigenvalues may or may not be diagonalisable. For example, (1101)\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix} has eigenvalue 11 with algebraic multiplicity 22 but geometric multiplicity 11; it is not diagonalisable.


Additional Worked Examples

Worked Example: 3×33 \times 3 System with No Unique Solution

Determine the nature of solutions for the system:

x+2y+3z=4x + 2y + 3z = 4 2x+4y+6z=82x + 4y + 6z = 8 xy+z=1x - y + z = 1

Solution

Augmented matrix:

[123424681111]\left[\begin{array}{ccc|c} 1 & 2 & 3 & 4 \\ 2 & 4 & 6 & 8 \\ 1 & -1 & 1 & 1 \end{array}\right]

R2R22R1R_2 \to R_2 - 2R_1, R3R3R1R_3 \to R_3 - R_1:

[123400000323]\left[\begin{array}{ccc|c} 1 & 2 & 3 & 4 \\ 0 & 0 & 0 & 0 \\ 0 & -3 & -2 & -3 \end{array}\right]

Swap R2R_2 and R3R_3:

[123403230000]\left[\begin{array}{ccc|c} 1 & 2 & 3 & 4 \\ 0 & -3 & -2 & -3 \\ 0 & 0 & 0 & 0 \end{array}\right]

Row 2 gives 3y2z=3-3y - 2z = -3, so y=32z3=12z3y = \dfrac{3 - 2z}{3} = 1 - \dfrac{2z}{3}.

Row 1 gives x+2 ⁣(12z3)+3z=4x + 2\!\left(1 - \dfrac{2z}{3}\right) + 3z = 4, so x+24z3+3z=4x + 2 - \dfrac{4z}{3} + 3z = 4, hence x=25z3x = 2 - \dfrac{5z}{3}.

Let z=3tz = 3t (to avoid fractions): x=25tx = 2 - 5t, y=12ty = 1 - 2t, z=3tz = 3t.

The system has infinitely many solutions parametrised by t{R}t \in \mathbb{'\{'}R{'\}'}.

Worked Example: Composition of Transformations

Find the matrix representing an enlargement by scale factor 22 about the origin, followed by a reflection in the line y=xy = x. Determine the image of the point (3,1)(3, 1).

Solution

Enlargement by 22: E=(2002)E = \begin{pmatrix} 2 & 0 \\ 0 & 2 \end{pmatrix}.

Reflection in y=xy = x: R=(0110)R = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}.

Combined transformation (enlargement first, then reflection): T=RET = RE.

T=(0110)(2002)=(0220)T = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} 2 & 0 \\ 0 & 2 \end{pmatrix} = \begin{pmatrix} 0 & 2 \\ 2 & 0 \end{pmatrix}

Image of (3,1)(3, 1):

(0220)(31)=(26)\begin{pmatrix} 0 & 2 \\ 2 & 0 \end{pmatrix}\begin{pmatrix} 3 \\ 1 \end{pmatrix} = \begin{pmatrix} 2 \\ 6 \end{pmatrix}

The image is (2,6)(2, 6).

Worked Example: 3×33 \times 3 Eigenvalues with Complex Roots

Find the eigenvalues of A=(101020101)A = \begin{pmatrix} 1 & 0 & -1 \\ 0 & 2 & 0 \\ 1 & 0 & 1 \end{pmatrix}.

Solution

Characteristic equation:

det(1λ0102λ0101λ)=0\det\begin{pmatrix} 1 - \lambda & 0 & -1 \\ 0 & 2 - \lambda & 0 \\ 1 & 0 & 1 - \lambda \end{pmatrix} = 0

Expand along the second row:

(2λ)1λ111λ=0(2 - \lambda)\begin{vmatrix} 1 - \lambda & -1 \\ 1 & 1 - \lambda \end{vmatrix} = 0

(2λ)[(1λ)2+1]=0(2 - \lambda)\bigl[(1 - \lambda)^2 + 1\bigr] = 0

(2λ)(λ22λ+2)=0(2 - \lambda)(\lambda^2 - 2\lambda + 2) = 0

From 2λ=02 - \lambda = 0: λ1=2\lambda_1 = 2.

From λ22λ+2=0\lambda^2 - 2\lambda + 2 = 0: λ=2±482=1±i\lambda = \dfrac{2 \pm \sqrt{4 - 8}}{2} = 1 \pm i.

The three eigenvalues are λ=2\lambda = 2, λ=1+i\lambda = 1 + i, λ=1i\lambda = 1 - i.

Since complex eigenvalues of a real matrix come in conjugate pairs, this is consistent. The matrix is not diagonalisable over {R}\mathbb{'\{'}R{'\}'} but is diagonalisable over {C}\mathbb{'\{'}C{'\}'}.

Worked Example: Adjugate Method for 3×33 \times 3 Inverse

Find the inverse of A=(210131012)A = \begin{pmatrix} 2 & 1 & 0 \\ 1 & 3 & 1 \\ 0 & 1 & 2 \end{pmatrix} using the adjugate method.

Solution

First, compute det(A)\det(A) by expanding along the first row:

det(A)=2311211102+0=2(61)1(20)=102=8\det(A) = 2\begin{vmatrix} 3 & 1 \\ 1 & 2 \end{vmatrix} - 1\begin{vmatrix} 1 & 1 \\ 0 & 2 \end{vmatrix} + 0 = 2(6 - 1) - 1(2 - 0) = 10 - 2 = 8

Now compute the cofactor matrix CC:

C11=+3112=5C_{11} = +\begin{vmatrix} 3 & 1 \\ 1 & 2 \end{vmatrix} = 5, C12=1102=2C_{12} = -\begin{vmatrix} 1 & 1 \\ 0 & 2 \end{vmatrix} = -2, C13=+1301=1C_{13} = +\begin{vmatrix} 1 & 3 \\ 0 & 1 \end{vmatrix} = 1

C21=1012=2C_{21} = -\begin{vmatrix} 1 & 0 \\ 1 & 2 \end{vmatrix} = -2, C22=+2002=4C_{22} = +\begin{vmatrix} 2 & 0 \\ 0 & 2 \end{vmatrix} = 4, C23=2101=2C_{23} = -\begin{vmatrix} 2 & 1 \\ 0 & 1 \end{vmatrix} = -2

C31=+1031=1C_{31} = +\begin{vmatrix} 1 & 0 \\ 3 & 1 \end{vmatrix} = 1, C32=2011=2C_{32} = -\begin{vmatrix} 2 & 0 \\ 1 & 1 \end{vmatrix} = -2, C33=+2113=5C_{33} = +\begin{vmatrix} 2 & 1 \\ 1 & 3 \end{vmatrix} = 5

C=(521242125)C = \begin{pmatrix} 5 & -2 & 1 \\ -2 & 4 & -2 \\ 1 & -2 & 5 \end{pmatrix}

adj(A)=CT=(521242125)\mathrm{adj}(A) = C^T = \begin{pmatrix} 5 & -2 & 1 \\ -2 & 4 & -2 \\ 1 & -2 & 5 \end{pmatrix}

(Since this matrix is symmetric, CT=CC^T = C.)

A1=18(521242125)A^{-1} = \frac{1}{8}\begin{pmatrix} 5 & -2 & 1 \\ -2 & 4 & -2 \\ 1 & -2 & 5 \end{pmatrix}

Worked Example: Matrix Power via Diagonalisation

Compute A5A^5 where A=(3120)A = \begin{pmatrix} 3 & -1 \\ 2 & 0 \end{pmatrix}.

Solution

Characteristic equation: λ(λ3)+2=λ23λ+2=0\lambda(\lambda - 3) + 2 = \lambda^2 - 3\lambda + 2 = 0, so (λ1)(λ2)=0(\lambda - 1)(\lambda - 2) = 0, giving λ1=1\lambda_1 = 1, λ2=2\lambda_2 = 2.

For λ1=1\lambda_1 = 1: (2121){v}={0}    2x=y\begin{pmatrix} 2 & -1 \\ 2 & -1 \end{pmatrix}\mathbf{'\{'}v{'\}'} = \mathbf{'\{'}0{'\}'} \implies 2x = y. Eigenvector: {v}1=(12)\mathbf{'\{'}v{'\}'}_1 = \begin{pmatrix} 1 \\ 2 \end{pmatrix}.

For λ2=2\lambda_2 = 2: (1122){v}={0}    x=y\begin{pmatrix} 1 & -1 \\ 2 & -2 \end{pmatrix}\mathbf{'\{'}v{'\}'} = \mathbf{'\{'}0{'\}'} \implies x = y. Eigenvector: {v}2=(11)\mathbf{'\{'}v{'\}'}_2 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}.

P=(1121),D=(1002)P = \begin{pmatrix} 1 & 1 \\ 2 & 1 \end{pmatrix}, \quad D = \begin{pmatrix} 1 & 0 \\ 0 & 2 \end{pmatrix}

P1=112(1121)=(1121)P^{-1} = \frac{1}{1 - 2}\begin{pmatrix} 1 & -1 \\ -2 & 1 \end{pmatrix} = \begin{pmatrix} -1 & 1 \\ 2 & -1 \end{pmatrix}

A5=PD5P1=(1121)(10032)(1121)A^5 = PD^5P^{-1} = \begin{pmatrix} 1 & 1 \\ 2 & 1 \end{pmatrix}\begin{pmatrix} 1 & 0 \\ 0 & 32 \end{pmatrix}\begin{pmatrix} -1 & 1 \\ 2 & -1 \end{pmatrix}

=(132232)(1121)=(1+641322+64232)=(63316230)= \begin{pmatrix} 1 & 32 \\ 2 & 32 \end{pmatrix}\begin{pmatrix} -1 & 1 \\ 2 & -1 \end{pmatrix} = \begin{pmatrix} -1 + 64 & 1 - 32 \\ -2 + 64 & 2 - 32 \end{pmatrix} = \begin{pmatrix} 63 & -31 \\ 62 & -30 \end{pmatrix}


Common Pitfalls

  1. Matrix multiplication is not commutative. ABBAAB \ne BA in general. When composing transformations, the order matters: the matrix for "transform AA then transform BB" is BABA, not ABAB.

  2. Forgetting the factor of λn\lambda^n in det(λA)\det(\lambda A). Scaling a matrix by λ\lambda multiplies the determinant by λn\lambda^n, where nn is the dimension. A common mistake is to write det(λA)=λdet(A)\det(\lambda A) = \lambda\det(A) instead of λndet(A)\lambda^n\det(A).

  3. Wrong sign in the 2×22 \times 2 inverse. The inverse of (abcd)\begin{pmatrix} a & b \\ c & d \end{pmatrix} is 1adbc(dbca)\dfrac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}. The b-b and c-c are easily misplaced.

  4. Confusing algebraic and geometric multiplicity. The algebraic multiplicity of an eigenvalue is its multiplicity as a root of the characteristic equation. The geometric multiplicity is the dimension of the corresponding eigenspace. The geometric multiplicity is always less than or equal to the algebraic multiplicity.

  5. Assuming every matrix is diagonalisable. Only matrices with a full set of linearly independent eigenvectors can be diagonalised. Matrices with defective eigenvalues (geometric multiplicity less than algebraic multiplicity) require the Jordan normal form instead.

  6. Row operation errors in Gauss-Jordan elimination. When finding the inverse via augmented matrices, remember that row operations must be applied to both sides simultaneously. A single arithmetic mistake propagates through all remaining steps.

  7. Incorrect cofactor signs. The sign of the cofactor CijC_{ij} is (1)i+j(-1)^{i+j}. This follows a checkerboard pattern starting with ++ in the top-left corner. A common error is to use all positive signs.

  8. Misidentifying invariant lines. An invariant line is mapped to itself, but points on the line may move. To find invariant lines, solve (AλI){v}={0}(A - \lambda I)\mathbf{'\{'}v{'\}'} = \mathbf{'\{'}0{'\}'} where λ\lambda is an eigenvalue. Every eigenvector lies on an invariant line through the origin.


Exam-Style Problems

  1. Compute ABBAAB - BA where A=(1203)A = \begin{pmatrix} 1 & 2 \\ 0 & 3 \end{pmatrix} and B=(4112)B = \begin{pmatrix} 4 & -1 \\ 1 & 2 \end{pmatrix}.

  2. Find the inverse of (102131210)\begin{pmatrix} 1 & 0 & 2 \\ -1 & 3 & 1 \\ 2 & 1 & 0 \end{pmatrix} using row reduction, and verify your answer by multiplication.

  3. Find the eigenvalues and eigenvectors of A=(5412)A = \begin{pmatrix} 5 & 4 \\ 1 & 2 \end{pmatrix}. Use diagonalisation to find A6A^6.

  4. A triangle has vertices at (0,0)(0, 0), (2,0)(2, 0), and (1,3)(1, 3). Find the matrix of the transformation that reflects the triangle in the yy-axis and then enlarges it by a factor of 22 about the origin. Determine the area of the image.

  5. Determine the values of kk for which the system {x+ky+z=1x+y+kz=kkx+y+z=1\begin{cases} x + ky + z = 1 \\ x + y + kz = k \\ kx + y + z = 1 \end{cases} has (a) a unique solution, (b) no solution, (c) infinitely many solutions.

  6. Find the characteristic equation of A=(210021002)A = \begin{pmatrix} 2 & 1 & 0 \\ 0 & 2 & 1 \\ 0 & 0 & 2 \end{pmatrix} and explain why AA is not diagonalisable.

  7. The matrix T=(cosθsinθsinθcosθ)T = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix} represents a rotation. Find the eigenvalues when θ=π2\theta = \dfrac{\pi}{2} and interpret them geometrically.

  8. Use Cramer's rule to solve {3x+2yz=4xy+2z=12x+3y+z=7\begin{cases} 3x + 2y - z = 4 \\ x - y + 2z = -1 \\ 2x + 3y + z = 7 \end{cases}.


Cross-References

  • Differential equations and systems solved via matrix methods: see Differential Equations
  • Proof and reasoning for properties of determinants: see Proof

tip

Diagnostic Test Ready to test your understanding of Matrices? The diagnostic test contains the hardest questions within the IB specification for this topic, each with a full worked solution.

Unit tests probe edge cases and common misconceptions. Integration tests combine Matrices with other IB mathematics topics to test synthesis under exam conditions.

See Diagnostic Guide for instructions on self-marking and building a personal test matrix.