4. Topic 4(COLON) Matrices and Linear Systems

Lesson 4.1: Matrix Arithmetic

#### Lesson focus #### Learning outcomes Students should be able to:.

Lesson 4.1: Matrix Arithmetic

Introduction

Welcome to Lesson 4.1 of Foundation Further Mathematics! In this lesson, we will dive into the wonderful world of matrices and learn about matrix arithmetic. Our objective is to understand how to perform various operations with matrices and apply these skills in real-world scenarios.

Learning Objectives

By the end of this lesson, you should be able to:

  • Add, subtract, and perform scalar multiplication on matrices.
  • Multiply matrices and understand why matrix multiplication is not commutative.
  • Identify the identity matrix and zero matrix, as well as calculate powers of a matrix.
  • Determine conditions under which matrix products are defined.
  • Demonstrate addition, subtraction, scaling, and multiplication of conformable matrices.

What is a Matrix?

A matrix is a rectangular array of numbers, symbols, or expressions arranged in rows and columns. For example, a $2 \times 2$ matrix looks like this:

$$\mathbf{A} = \begin{pmatrix} a & b \\ c & d \end{pmatrix}$$

Types of Matrices

There are several types of matrices you should know:

  1. Zero Matrix: A matrix in which all elements are zero, e.g., $$\mathbf{0} = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}$$
  2. Identity Matrix: A square matrix with ones on the diagonal and zeros elsewhere, e.g., $$\mathbf{I} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$$
  3. Square Matrix: A matrix with the same number of rows and columns.

Matrix Addition and Subtraction

One of the simplest operations you can perform with matrices is addition and subtraction. To add or subtract two matrices, they must have the same dimensions.

Addition Example

If we have two matrices:

$$\mathbf{A} = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}, \quad \mathbf{B} = \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix}$$

The sum $\mathbf{C} = \mathbf{A} + \mathbf{B}$ is calculated element-wise:

$$\mathbf{C} = \begin{pmatrix} 1+5 & 2+6 \\ 3+7 & 4+8 \end{pmatrix} = \begin{pmatrix} 6 & 8 \\ 10 & 12 \end{pmatrix}$$

Subtraction Example

For subtraction:

$$\mathbf{D} = \mathbf{B} - \mathbf{A}$$

This is also calculated element-wise:

$$\mathbf{D} = \begin{pmatrix} 5-1 & 6-2 \\ 7-3 & 8-4 \end{pmatrix} = \begin{pmatrix} 4 & 4 \\ 4 & 4 \end{pmatrix}$$

Scalar Multiplication

Scalar multiplication involves multiplying every element of a matrix by a constant (scalar). For example, if we multiply matrix $\mathbf{A}$ by the scalar $k = 2$:

$$k \cdot \mathbf{A} = 2 \cdot \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} = \begin{pmatrix} 2 & 4 \\ 6 & 8 \end{pmatrix}$$

Matrix Multiplication

Matrix multiplication is slightly more complicated. The product of two matrices is defined only when the number of columns in the first matrix is equal to the number of rows in the second matrix.

Example of Matrix Multiplication

Let’s multiply the following two matrices:

$$\mathbf{A} = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}, \quad \mathbf{B} = \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix}$$

The product $\mathbf{C} = \mathbf{A} \cdot \mathbf{B}$ is calculated as follows:

$$\mathbf{C} = \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}$$

Commutative Property

It's important to note that matrix multiplication is not commutative. This means that in general, $$\mathbf{A} \cdot \mathbf{B}

eq $\mathbf{B}$ $\cdot$ $\mathbf{A}$$$. In our example:

$$\mathbf{B} \cdot \mathbf{A} = \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix} \cdot \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} = \begin{pmatrix} 43 & 50 \\ 19 & 22 \end{pmatrix}$$

As you can see, the results are different!

Identity and Zero Matrices

  • The identity matrix acts as a multiplicative identity for matrices. For any matrix $\mathbf{A}$, we have:

$$\mathbf{A} \cdot \mathbf{I} = \mathbf{A}$$

  • The zero matrix acts as an additive identity. This means:

$$\mathbf{A} + \mathbf{0} = \mathbf{A}$$

In general, when you multiply any matrix by the zero matrix, the result is the zero matrix:

$$\mathbf{A} \cdot \mathbf{0} = \mathbf{0}$$

Conclusion

In this lesson, we explored the basics of matrix arithmetic, including addition, subtraction, scalar multiplication, and multiplication. Understanding these concepts is essential not only for solving mathematical problems but also for applications in computer graphics, data science, and engineering.

Study Notes

  • A matrix is an array of numbers arranged in rows and columns.
  • Matrix operations like addition and subtraction are performed element-wise.
  • Scalar multiplication involves multiplying every element by a constant.
  • Matrix multiplication is defined based on the dimensions of the matrices and is not commutative.
  • The identity matrix retains the original matrix through multiplication, while the zero matrix provides a neutral element for addition.

Practice Quiz

5 questions to test your understanding

Lesson 4.1: Matrix Arithmetic — Further Mathematics | A-Warded