Welcome to Matrices!

Welcome to one of the most powerful and exciting areas of Further Mathematics! At first glance, a matrix (plural: matrices) looks just like a grid or table of numbers. But behind this simple layout lies a mathematical superpower. Matrices are used everywhere: in video game 3D graphics, search engine algorithms (like Google PageRank), quantum physics, and computer animations.

In this unit for CCEA AS 1: Pure Mathematics, you will learn how to build, combine, and manipulate matrices up to size \(3 \times 3\), calculate determinants, find inverses, and use them to solve systems of linear equations. Don't worry if this seems brand new or daunting at first—we will break every single step down into easy, bite-sized pieces!


1. What is a Matrix? Order and Notation

A matrix is simply a rectangular array of numbers arranged in rows (going across horizontally) and columns (going down vertically). We enclose matrices inside curved brackets or square brackets.

Matrix Order (Dimensions)

The order or dimension of a matrix is written as \(m \times n\), where:

\(m =\) number of Rows (horizontal lines)
\(n =\) number of Columns (vertical lines)

Memory Trick: Think of RC cars or the phrase Roman Catholic to remember: Rows first, then Columns!

For example, the matrix \(A = \begin{pmatrix} 2 & 5 & -1 \\ 4 & 0 & 3 \end{pmatrix}\) has 2 rows and 3 columns, so its order is \(2 \times 3\).

A square matrix is a matrix where the number of rows equals the number of columns (\(m = n\)), such as a \(2 \times 2\) or \(3 \times 3\) matrix.

Key Takeaway: Always count the rows across first, then the columns down (\(\text{Rows} \times \text{Columns}\)).


2. Basic Matrix Operations

Addition and Subtraction

To add or subtract two matrices, they must have the exact same order. You simply add or subtract the corresponding elements in the matching positions.

Example: Let \(A = \begin{pmatrix} 1 & 4 \\ -2 & 3 \end{pmatrix}\) and \(B = \begin{pmatrix} 5 & -1 \\ 2 & 7 \end{pmatrix}\).

\(A + B = \begin{pmatrix} 1 + 5 & 4 + (-1) \\ -2 + 2 & 3 + 7 \end{pmatrix} = \begin{pmatrix} 6 & 3 \\ 0 & 10 \end{pmatrix}\)

\(A - B = \begin{pmatrix} 1 - 5 & 4 - (-1) \\ -2 - 2 & 3 - 7 \end{pmatrix} = \begin{pmatrix} -4 & 5 \\ -4 & -4 \end{pmatrix}\)

Scalar Multiplication

A scalar is just an ordinary number (like \(3\), \(-2\), or \(0.5\)). To multiply a matrix by a scalar, multiply every single entry inside the matrix by that number.

Example: Using \(A = \begin{pmatrix} 1 & 4 \\ -2 & 3 \end{pmatrix}\):

\(3A = 3\begin{pmatrix} 1 & 4 \\ -2 & 3 \end{pmatrix} = \begin{pmatrix} 3 \times 1 & 3 \times 4 \\ 3 \times (-2) & 3 \times 3 \end{pmatrix} = \begin{pmatrix} 3 & 12 \\ -6 & 9 \end{pmatrix}\)

Key Takeaway: Addition and subtraction are done entry-by-entry. If matrices have different orders, you cannot add or subtract them!


3. Matrix Multiplication

Multiplying two matrices together is different from regular multiplication. Instead of multiplying matching entries, we use the Row-by-Column method (often called the "dot product" of rows and columns).

When is Matrix Multiplication Possible? (Conformability)

You can only multiply matrix \(A\) by matrix \(B\) (to find \(AB\)) if the number of columns in \(A\) equals the number of rows in \(B\).

If \(A\) has order \(m \times k\) and \(B\) has order \(k \times n\), then the product \(AB\) exists and has order \(m \times n\).

Visual Check: \((m \times \mathbf{k}) \times (\mathbf{k} \times n) \implies m \times n\). The inside numbers must match!

Step-by-Step Multiplication: \(2 \times 2\) Example

Let \(A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}\) and \(B = \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix}\).

To find the entry in row \(1\), column \(1\) of \(AB\): take Row 1 of \(A\) and Column 1 of \(B\):
\((1 \times 5) + (2 \times 7) = 5 + 14 = 19\)

To find row \(1\), column \(2\): take Row 1 of \(A\) and Column 2 of \(B\):
\((1 \times 6) + (2 \times 8) = 6 + 16 = 22\)

To find row \(2\), column \(1\): take Row 2 of \(A\) and Column 1 of \(B\):
\((3 \times 5) + (4 \times 7) = 15 + 28 = 43\)

To find row \(2\), column \(2\): take Row 2 of \(A\) and Column 2 of \(B\):
\((3 \times 6) + (4 \times 8) = 18 + 32 = 50\)

Therefore, \(AB = \begin{pmatrix} 19 & 22 \\ 43 & 50 \end{pmatrix}\).

Crucial Property: Non-Commutativity

In regular arithmetic, \(3 \times 5 = 5 \times 3\). But with matrices, order matters! In general:

\(AB \neq BA\)

Matrix multiplication is not commutative. Always keep matrices in the order they are written.

Key Takeaway: Move across the rows of the first matrix and down the columns of the second matrix.


4. Special Matrices: The Identity and Zero Matrices

The Identity Matrix (\(I\))

The Identity matrix acts like the number \(1\) in regular arithmetic. It is a square matrix with \(1\)s on the main leading diagonal (top-left to bottom-right) and \(0\)s everywhere else.

\(2 \times 2\) Identity: \(I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}\)

\(3 \times 3\) Identity: \(I = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}\)

For any compatible matrix \(A\): \(AI = IA = A\).

The Zero Matrix (\(O\))

A matrix where every entry is \(0\) is called the zero matrix. For example: \(O = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}\).


5. The Determinant of a Matrix

The determinant of a square matrix is a single scalar value that reveals important geometric and algebraic information about the matrix. The determinant of matrix \(A\) is denoted as \(\det(A)\) or \(|A|\).

Determinant of a \(2 \times 2\) Matrix

For a matrix \(A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}\):

\(\det(A) = ad - bc\)

Example: If \(A = \begin{pmatrix} 3 & 2 \\ 1 & 4 \end{pmatrix}\), then \(\det(A) = (3)(4) - (2)(1) = 12 - 2 = 10\).

Determinant of a \(3 \times 3\) Matrix

To find the determinant of a \(3 \times 3\) matrix, we expand along the top row using minors and alternating signs (\(+\), \(-\), \(+\)):

Let \(M = \begin{pmatrix} a & b & c \\ d & e & f \\ g & h & i \end{pmatrix}\).

\(\det(M) = a \begin{vmatrix} e & f \\ h & i \end{vmatrix} - b \begin{vmatrix} d & f \\ g & i \end{vmatrix} + c \begin{vmatrix} d & e \\ g & h \end{vmatrix}\)

\(\det(M) = a(ei - fh) - b(di - fg) + c(dh - eg)\)

Worked Example: Find the determinant of \(M = \begin{pmatrix} 1 & 2 & -1 \\ 3 & 0 & 2 \\ 4 & -2 & 1 \end{pmatrix}\).

\(\det(M) = 1 \begin{vmatrix} 0 & 2 \\ -2 & 1 \end{vmatrix} - 2 \begin{vmatrix} 3 & 2 \\ 4 & 1 \end{vmatrix} + (-1) \begin{vmatrix} 3 & 0 \\ 4 & -2 \end{vmatrix}\)

\(\implies 1(0 - (-4)) - 2(3 - 8) - 1(-6 - 0)\)
\(\implies 1(4) - 2(-5) - 1(-6)\)
\(\implies 4 + 10 + 6 = 20\)

Singular vs Non-Singular Matrices

A matrix is singular if \(\det(A) = 0\).
A matrix is non-singular if \(\det(A) \neq 0\).

Crucial Rule: Only non-singular matrices have an inverse!

Important Determinant Properties

\(\det(AB) = \det(A)\det(B)\)
\(\det(A^{-1}) = \frac{1}{\det(A)}\)
\(\det(kA) = k^n \det(A)\) where \(n\) is the order of the square matrix (\(n=2\) for \(2 \times 2\), \(n=3\) for \(3 \times 3\)).

Key Takeaway: Remember the alternating signs (\(+\), \(-\), \(+\)) when expanding a \(3 \times 3\) determinant!


6. The Inverse of a Matrix

The inverse of a square matrix \(A\) is written as \(A^{-1}\). It has the property that:

\(AA^{-1} = A^{-1}A = I\)

Note: You cannot "divide" by a matrix in mathematics. Instead, we multiply by the matrix inverse!

Inverse of a \(2 \times 2\) Matrix

For \(A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}\), where \(\det(A) = ad - bc \neq 0\):

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

Memory Trick: Swap the main diagonal entries (\(a\) and \(d\)), and change the signs of the other two entries (\(b\) and \(c\)), then divide by the determinant!

Example: Find the inverse of \(A = \begin{pmatrix} 4 & 2 \\ 3 & 2 \end{pmatrix}\).

1. \(\det(A) = (4)(2) - (2)(3) = 8 - 6 = 2\).
2. Swap and negate: \(\begin{pmatrix} 2 & -2 \\ -3 & 4 \end{pmatrix}\).
3. Multiply by \(\frac{1}{\det(A)}\): \(A^{-1} = \frac{1}{2} \begin{pmatrix} 2 & -2 \\ -3 & 4 \end{pmatrix} = \begin{pmatrix} 1 & -1 \\ -1.5 & 2 \end{pmatrix}\).

Inverse of a \(3 \times 3\) Matrix

Finding the inverse of a \(3 \times 3\) matrix requires a clear, 4-step procedure:

Step 1: Calculate the Determinant
Find \(\det(A)\). If \(\det(A) = 0\), the inverse does not exist.

Step 2: Find the Matrix of Minors (\(M\))
Replace every element with the determinant of the \(2 \times 2\) matrix left behind when you cross out that element's row and column.

Step 3: Create the Matrix of Cofactors (\(C\))
Apply the alternating sign grid to the matrix of minors:
\(\begin{pmatrix} + & - & + \\ - & + & - \\ + & - & + \end{pmatrix}\)

Step 4: Transpose the Cofactor Matrix and Divide by the Determinant
Transpose \(C\) (swap rows and columns to get \(C^T\), also known as the adjugate matrix, \(\text{adj}(A)\)):
\(A^{-1} = \frac{1}{\det(A)} C^T\)

Properties of Inverses

\((AB)^{-1} = B^{-1}A^{-1}\) (Notice that the order reverses!)
\((A^{-1})^{-1} = A\)

Key Takeaway: For \(3 \times 3\) inverses, keep your working neat and systematic: Determinant \(\to\) Minors \(\to\) Cofactors \(\to\) Transpose \(\to\) Multiply by \(\frac{1}{\det(A)}\).


7. Solving Systems of Simultaneous Equations

Matrices give us a powerful way to solve linear systems in 2 or 3 unknowns.

Setting up the Matrix Equation

Consider the system:
\(a_1 x + b_1 y + c_1 z = d_1\)
\(a_2 x + b_2 y + c_2 z = d_2\)
\(a_3 x + b_3 y + c_3 z = d_3\)

We write this as the matrix equation: \(AX = B\)

Where:
\(A = \begin{pmatrix} a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \\ a_3 & b_3 & c_3 \end{pmatrix}\) (Matrix of coefficients)
\(X = \begin{pmatrix} x \\ y \\ z \end{pmatrix}\) (Column vector of variables)
\(B = \begin{pmatrix} d_1 \\ d_2 \\ d_3 \end{pmatrix}\) (Column vector of constants)

Solving for \(X\)

Multiply both sides on the left by \(A^{-1}\):

\(A^{-1}(AX) = A^{-1}B\)
\(IX = A^{-1}B\)
\(X = A^{-1}B\)

Common Error Alert: Never write \(X = \frac{B}{A}\) or \(X = BA^{-1}\). It must be pre-multiplied as \(A^{-1}B\)!


8. Geometric Interpretation of Linear Systems in 3D

Each linear equation in 3 variables (\(ax + by + cz = d\)) represents a flat plane in 3-dimensional space. The solution to the system corresponds to the intersection of these 3 planes.

Case 1: Unique Solution (\(\det(A) \neq 0\))

The matrix \(A\) is non-singular. The three planes intersect at a single unique point \((x, y, z)\). The system is consistent.

Case 2: No Unique Solution (\(\det(A) = 0\))

When the determinant is zero, the matrix is singular. There are two possibilities:

1. Infinitely Many Solutions (Consistent system):
The three planes meet along a common line (forming a "sheaf" of planes like the pages of an open book) or all three planes are identical.

2. No Solutions (Inconsistent system):
The planes do not share any common point or line. Geometrically, this happens when:
- The planes form a triangular prism (intersecting pairwise along three parallel lines).
- Two or more planes are parallel and distinct.

Key Takeaway: If \(\det(A) \neq 0\), the planes meet at a single point. If \(\det(A) = 0\), check whether the equations are consistent (a line of solutions) or inconsistent (no solutions).


9. Quick Review & Common Pitfalls Checklist

Avoid these common mistakes in your CCEA AS 1 exam:

- Order of Multiplication: Remember that \(AB \neq BA\) in general.
- The Inverse Order Rule: Remember \((AB)^{-1} = B^{-1}A^{-1}\).
- Sign Errors in Determinants: Do not forget the middle minus sign in \(ad - bc\) and the alternating signs \((+, -, +)\) in \(3 \times 3\) expansions.
- Transposing Cofactors: A very frequent oversight is forgetting to transpose the cofactor matrix before multiplying by \(\frac{1}{\det(A)}\).
- Pre-multiplication: Always solve \(AX = B\) as \(X = A^{-1}B\), not \(X = BA^{-1}\).