Welcome to the World of Matrices!

In this chapter, we are going to explore Matrices. Think of a matrix as a powerful "mathematical spreadsheet" that allows us to move, stretch, and rotate shapes in space. Whether you are interested in video game graphics, structural engineering, or data science, matrices are the tools that make it all happen! Don't worry if it looks like a lot of numbers at first—we will break it down step-by-step.

1. Matrix Basics: Addition, Subtraction, and Multiplication

A matrix is simply a rectangular grid of numbers arranged in rows (horizontal) and columns (vertical). We describe the size of a matrix as \(m \times n\) (rows by columns).

Addition and Subtraction

To add or subtract matrices, they must be the same size (mathematically, we say they are conformable). You simply add or subtract the numbers in the corresponding positions.

Example:

\(\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} + \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix} = \begin{pmatrix} 1+5 & 2+6 \\ 3+7 & 4+8 \end{pmatrix} = \begin{pmatrix} 6 & 8 \\ 10 & 12 \end{pmatrix}\)

Scalar Multiplication

This is when you multiply a whole matrix by a single number (a scalar). You just multiply every single "element" inside the matrix by that number. It’s like zooming in on a picture!

Matrix Multiplication (The Tricky Part!)

Multiplying two matrices is not just multiplying the numbers in the same spots. We use a "Row by Column" rule. To find the top-left element of the result, you multiply the first row of the first matrix by the first column of the second matrix.

Quick Review: You can only multiply matrices if the number of columns in the first matrix equals the number of rows in the second. If Matrix A is \(2 \times 3\) and Matrix B is \(3 \times 2\), you can multiply them! The result will be a \(2 \times 2\) matrix.

Memory Aid: Think of the number 7. Your hand moves across the first matrix and down the second, just like drawing the number 7.

Important Point: Matrix multiplication is Associative: \((\mathbf{AB})\mathbf{C} = \mathbf{A}(\mathbf{BC})\).
However, it is NOT Commutative: \(\mathbf{AB} \neq \mathbf{BA}\). In the world of matrices, the order matters!

Key Takeaway:

Always check if matrices are "conformable" before starting. Remember: Rows first, then Columns!

2. Special Matrices: Zero and Identity

Just like the number 0 and the number 1 in normal arithmetic, matrices have special versions too.

  • The Zero Matrix (\(\mathbf{0}\)): Every single entry is 0. Adding this to any matrix changes nothing.
  • The Identity Matrix (\(\mathbf{I}\)): This is a square matrix with 1s on the main diagonal (top-left to bottom-right) and 0s everywhere else. Multiplying any matrix by \(\mathbf{I}\) leaves it unchanged (\(\mathbf{AI} = \mathbf{A}\)).

\(\mathbf{I} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}\) (for a \(2 \times 2\) case).

3. Linear Transformations in 2-D

Matrices can represent Linear Transformations. This means they move every point \((x, y)\) to a new position \((x', y')\). A linear transformation always keeps the origin \((0,0)\) fixed and keeps straight lines straight.

How to find the Matrix for a Transformation

The easiest way to find a matrix is to see what happens to the unit vectors \(\mathbf{i} = \begin{pmatrix} 1 \\ 0 \end{pmatrix}\) and \(\mathbf{j} = \begin{pmatrix} 0 \\ 1 \end{pmatrix}\).

  1. Apply the transformation to \(\begin{pmatrix} 1 \\ 0 \end{pmatrix}\). The new coordinates become the first column of your matrix.
  2. Apply it to \(\begin{pmatrix} 0 \\ 1 \end{pmatrix}\). The new coordinates become the second column.

Common 2-D Transformations to Know:

  • Reflection: Flip over the \(x\)-axis, \(y\)-axis, or lines like \(y = x\).
  • Rotation: Rotating around the origin. Positive angles are always anti-clockwise.
  • Enlargement: Scaling from the origin.
  • Stretch: Pulling the shape parallel to the \(x\) or \(y\) axis.
  • Shear: Tilting the shape while keeping one axis fixed.

Successive Transformations

If you do transformation \(\mathbf{A}\) and then transformation \(\mathbf{B}\), the combined matrix is \(\mathbf{BA}\).
Common Mistake: Students often write \(\mathbf{AB}\). Remember, the transformation closest to the vector happens first. We write it as \(\mathbf{B}(\mathbf{A}\mathbf{r})\), so the order is right to left!

Key Takeaway:

To find any matrix, just track where \((1,0)\) and \((0,1)\) end up. That's your columns!

4. Determinants: Area and Volume Scale Factors

The Determinant of a matrix, written as \(\det \mathbf{M}\) or \(|\mathbf{M}|\), is a single number that tells us a lot about the transformation.

Calculating the Determinant

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, use your calculator! The MEI syllabus encourages using technology for \(3 \times 3\) determinants.

What does it mean?

  • Area Scale Factor: In 2-D, the absolute value of the determinant is the area scale factor. If \(\det \mathbf{M} = 3\), the new shape is 3 times bigger.
  • Volume Scale Factor: In 3-D, the determinant is the volume scale factor.
  • Orientation: If the determinant is negative, it means the shape has been reflected (it's "inside out" or the "handedness" has changed).
  • Singular Matrices: If \(\det \mathbf{M} = 0\), the matrix is singular. This means it has squashed the whole shape into a single line or a point!

Did you know? If a matrix is singular, it cannot be reversed. It’s like a mathematical black hole—information is lost!

5. Inverse Matrices

The Inverse of a matrix \(\mathbf{M}\), written as \(\mathbf{M}^{-1}\), is the matrix that "undoes" what \(\mathbf{M}\) did.
\(\mathbf{M}\mathbf{M}^{-1} = \mathbf{I}\).

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

If \(\mathbf{M} = \begin{pmatrix} a & b \\ c & d \end{pmatrix}\), then:

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

Steps: Swap the main diagonal elements (\(a\) and \(d\)), change the signs of the others (\(b\) and \(c\)), and divide everything by the determinant.

The Product Rule for Inverses

This is a favorite exam question! \((\mathbf{AB})^{-1} = \mathbf{B}^{-1}\mathbf{A}^{-1}\).
Analogy: Imagine putting on socks (\(\mathbf{A}\)) then shoes (\(\mathbf{B}\)). To undo this, you must take off your shoes (\(\mathbf{B}^{-1}\)) then take off your socks (\(\mathbf{A}^{-1}\)). The order reverses!

Key Takeaway:

Only non-singular matrices (\(\det \neq 0\)) have an inverse. Use \(\mathbf{M}^{-1}\) to solve equations like \(\mathbf{M}\mathbf{x} = \mathbf{c}\) by calculating \(\mathbf{x} = \mathbf{M}^{-1}\mathbf{c}\).

6. Invariance: Points and Lines

Sometimes, parts of a shape don't move during a transformation.

  • Invariant Point: A point that stays in exactly the same place. The origin \((0,0)\) is always invariant in linear transformations.
  • Invariant Line: A line where every point on the line stays in exactly the same place.
  • Line of Invariant Points: This is a stronger version of an invariant line where each individual point remains fixed.

Quick Review Box:
- Singular: Determinant is 0. No inverse.
- Non-singular: Determinant is not 0. Has an inverse.
- Successive: Order is \(\mathbf{B}\) then \(\mathbf{A}\) = \(\mathbf{AB}\) is wrong, it's \(\mathbf{BA}\).
- Determinant: Tells you the scale factor of the area or volume.

Don't worry if this seems tricky at first! Matrix arithmetic is very mechanical. Once you get the "Row by Column" rhythm and learn how to use your calculator for the \(3 \times 3\) cases, you'll be flying through these problems!