Welcome to the World of Matrices!

In this chapter, we are going to explore Matrices. Think of a matrix as a highly organized "spreadsheet" or "grid" for numbers. While they might look like just a box of numbers at first, they are incredibly powerful tools used in computer graphics, engineering, and physics to move objects and solve complex systems of equations. Don't worry if it seems like a lot of new terminology—we'll take it one step at a time!

1. The Language of Matrices

Before we can do math with matrices, we need to know how to describe them. A matrix is simply a rectangular array of numbers (which can be real or complex numbers).

Dimensions: The "m by n" Rule

We always describe the size of a matrix by its Rows (horizontal) and Columns (vertical).
A matrix with m rows and n columns is called an \(m \times n\) matrix.

Memory Aid: Think of "RC" (like RC Cola or Roman Catholic). Rows first, then Columns!

Key Terms to Know:

  • Square Matrix: Has the same number of rows and columns (e.g., \(2 \times 2\) or \(3 \times 3\)).
  • Rectangular Matrix: Has a different number of rows and columns.
  • Zero (or Null) Matrix: A matrix where every single entry is 0. It’s the matrix version of the number zero.
  • Identity Matrix (\(I\)): A square matrix with 1s on the "main diagonal" (top-left to bottom-right) and 0s everywhere else. It acts like the number "1" in normal multiplication.
  • Transpose (\(M^T\)): This is what you get when you swap the rows and columns. The first row becomes the first column, and so on.
  • Equal Matrices: Two matrices are equal only if they have the same dimensions AND every corresponding entry is identical.

Quick Review: To find the transpose of \(\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}\), you turn the first row \((1, 2)\) into the first column. The result is \(\begin{pmatrix} 1 & 3 \\ 2 & 4 \end{pmatrix}\).

Key Takeaway: Always check the order (rows \(\times\) columns) first. It determines if you can even do math with them!

2. Matrix Arithmetic: Adding, Subtracting, and Multiplying

Addition and Subtraction

To add or subtract matrices, they must be conformable. This just means they must be exactly the same size.
Simply add or subtract the numbers in the same positions.

Scalar Multiplication

This is when you multiply a matrix by a single number (a "scalar"). You just multiply every entry in the matrix by that number.

Matrix Multiplication (The Tricky Part!)

Multiplying two matrices is not as simple as multiplying the numbers in the same spots. We use the "Row by Column" method.

Step-by-Step:
1. Check if you can multiply them: The number of columns in the first matrix must equal the number of rows in the second.
2. Move across the row of the first matrix and down the column of the second, multiplying pairs and adding them up.
3. Did you know? Matrix multiplication is associative \((AB)C = A(BC)\), but it is NOT commutative. This means usually \(AB \neq BA\). The order matters!

Common Mistake: Don't assume \(A^2\) is just squaring every number inside. \(A^2\) means \(A \times A\), so you must use the full matrix multiplication method.

Key Takeaway: Adding is easy (must be same size), but multiplying requires the "across and down" motion. Always double-check the order of multiplication!

3. Determinants: The Scale Factor

Every square matrix has a special number associated with it called a determinant, written as \(\det M\) or \(|M|\).

Calculating Determinants

  • For a \(2 \times 2\) matrix \(\begin{pmatrix} a & b \\ c & d \end{pmatrix}\): The determinant is \(ad - bc\).
  • For a \(3 \times 3\) matrix: You can use your calculator for purely numerical matrices, but you should also know how to expand them using minors (breaking them down into smaller \(2 \times 2\) parts).

What does it actually mean?

The determinant tells you the area scale factor (for 2-D) or volume scale factor (for 3-D) of the transformation the matrix represents.
- If \(\det = 2\), the shape's area doubles.
- If \(\det = 1\), the area stays the same.
- If \(\det = 0\), the matrix is singular. The shape has been squashed into a line or a point (zero area/volume), and the matrix has no inverse.

Important Property: \(\det(AB) = \det(A) \times \det(B)\). This is a great shortcut for exam questions!

Key Takeaway: Determinant = Scale Factor. If it's zero, the matrix is "broken" for division (singular).

4. Inverses: The "Undo" Button

The inverse of matrix \(A\) is written as \(A^{-1}\). When you multiply a matrix by its inverse, you get the Identity Matrix: \(AA^{-1} = I\).

Finding the Inverse

  • Non-singular: You can only find an inverse if the matrix is non-singular (\(\det \neq 0\)).
  • For a \(2 \times 2\) matrix: Swap the numbers on the main diagonal, put minus signs on the other two, and divide everything by the determinant: \(A^{-1} = \frac{1}{\det A} \begin{pmatrix} d & -b \\ -c & a \end{pmatrix}\).
  • Properties: A very useful rule to remember is \((AB)^{-1} = B^{-1}A^{-1}\). Note how the order swaps!

Key Takeaway: The inverse "undoes" a matrix. If you can't find a determinant, you can't find an inverse.

5. Linear Transformations

Matrices can represent moving points in 2-D or 3-D space. We call the original point the object and the new point the image.

2-D Transformations

You need to be able to find matrices for:

  • Reflections: In the x-axis, y-axis, or the lines \(y = x\) and \(y = -x\).
  • Rotations: About the origin (positive angle is anticlockwise).
  • Enlargements: Centred at the origin with a scale factor.
  • Stretches and Shears: Parallel to the axes.

Successive Transformations

If you want to do transformation B and then transformation A, the combined matrix is \(AB\).
Analogy: Think of it like putting on socks then shoes. The last thing you write (on the left) is the last thing you do!

Invariance

  • Invariant Point: A point that doesn't move after the transformation (e.g., the origin is always invariant in these matrices).
  • Invariant Line: A line where every point on the line ends up somewhere else on the same line.
  • Line of Invariant Points: A special line where every single point on it doesn't move at all.

Key Takeaway: Matrices are instructions for movement. Read successive transformations from right to left!

6. Solving Simultaneous Equations

We can use matrices to solve systems of equations like:
\(ax + by = e\)
\(cx + dy = f\)

This can be written as: \(\begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} e \\ f \end{pmatrix}\).
To find \(x\) and \(y\), we just multiply the right side by the inverse matrix: \(X = A^{-1}B\).

Quick Review: This only works if a unique solution exists, which means the matrix must be non-singular (\(\det \neq 0\)). If the determinant is zero, the lines might be parallel or identical!

Key Takeaway: Matrices turn messy systems of equations into a simple "multiply by the inverse" problem.