topic badge
AustraliaVIC
VCE 12 General 2023

7.01 Matrix review

Lesson

Matrices

Preferred colourFemaleMale
\text{Black}136
\text{Green}310
\text{Purple}89

Often we can represent information in a rectangular group, like in this table. This table of information can also be represented as a matrix.

In mathematics, a matrix is a particular method of displaying information. It is any rectangular array of numbers, symbols, or expressions arranged in rows and columns. So the table above would be represented by a matrix, which we can call A and is shown below.A=\begin{bmatrix} 13 & 6 \\ 3 & 10 \\ 8 & 9 \end{bmatrix}

We refer to the dimensions or order of a matrix as a reference to the number of rows and number of columns.

A matrix with dimensions m\times n has m rows and n columns. For instance, the following matrix has dimensions 3\times 4:\begin{bmatrix} 3 & 4 &5&3 \\ 1 & 0 & 7&0 \\ 6 & 0 &4 &0 \end{bmatrix}

Elements are the individual entries of a matrix. An element can be identified by its position (that is, its row and column) in the matrix. For the following matrix B, the elements in the second row and third column is 7, where we use the following notation b_{23}=7.B=\begin{bmatrix} 1&3&0&1 \\ 4&5&7&8 \end{bmatrix}

Generally, we may represent any matrix with m rows and n columns as shown:A=\begin{bmatrix} a_{11}&a_{12}&a_{13}&a_{14}&...&a_{1n} \\ a_{21}&a_{22}&a_{23}&a_{24}&...&a_{2n} \\ .&.&.&.&...&. \\ .&.&.&.&...&. \\ .&.&.&.&...&. \\ a_{m1}&a_{m2}&a_{m3}&a_{m4}&...&a_{mn} \end{bmatrix}

A row matrix or row vector has just a single row. The following matrix T is an example of a row matrix.T=\begin{bmatrix} 3&4&5 \end{bmatrix}

A column matrix or column vector has just a single column. The following matrix M is an example of a column matrix.M=\begin{bmatrix} 5\\3\\0\\11 \end{bmatrix}

A square matrix has an equal number of rows and columns. The matrices G and J are examples of square matrices.G=\begin{bmatrix} 1&5\\ 5&19 \end{bmatrix}, \quad J=\begin{bmatrix} 2&0&-1\\ 16&\sqrt{2}&5\\ 0.1&3&-7 \end{bmatrix}

A diagonal matrix is a square matrix with zero elements off of the leading diagonal or main diagonal. The leading diagonal represents the elements along the diagonal starting at the top-left to the bottom-right. The matrix C is an example of a diagonal matrix.C=\begin{bmatrix} 6&0&0\\ 0&-7&0\\ 0&0&\frac{4}{7} \end{bmatrix}

An identity matrix is a special type of diagonal matrix where all the elements on the main diagonal are ones.

For example: N = \begin{bmatrix} 1&0&0\\ 0&1&0\\ 0&0&1 \end{bmatrix}

Matrix N is also called a binary matrix as it consists entirely of 1's and 0's.

A zero matrix is a matrix of any dimension where all of the elements are zero. For example: \begin{pmatrix} 0&0\\ 0&0 \end{pmatrix}

A triangular matrix is a square matrix where:

  • All entries above the diagonal are zero (called a lower triangular matrix)

  • OR all entries below the diagonal are zero (called an upper triangular matrix)

  • OR the entries above and below the diagonal are zero (called a diagonal matrix)

  • OR all of the entries are zero (called a zero matrix)

Examples

Example 1

Determine the dimensions of the matrix \begin{bmatrix} -1 & -4 \\ -9 & 9 \end{bmatrix} .

⬚ \times ⬚

Worked Solution
Create a strategy

An m \times n matrix has m rows and n columns.

Apply the idea

The matrix has two rows and two columns.

2 \times 2

Example 2

What is the entry at a_{23} in A=\begin{bmatrix} -2&-5&5\\ -1&1&-7\\ 8&4&7 \end{bmatrix}?

Worked Solution
Create a strategy

Find the element in the 2nd row and 3rd column of matrix A.

Apply the idea

From matrix A, we can see that the element in the 2nd row and 3rd column is:a_{23}=-7

Example 3

M is a 3 \times 3 matrix. The elements of M are determined by the rule m_{ij}=i+2j+1.

Write down the matrix M.

Worked Solution
Create a strategy

For each element, substitute the values of i=\text{row number} and j=\text{column number} into the given rule.

Apply the idea

Substitute the corresponding values of i and j into m_{ij}=i+2j+1.

\begin{bmatrix} 1+2\times1+1 & 1+2\times2+1 & 1+2\times3+1 \\ 2+2\times1+1 & 2+2\times2+1 & 2+2\times3+1 \\ 3+2\times1+1 & 3+2\times2+1 & 3+2\times3+1 \\ \end{bmatrix}

Evaluate each element.

\begin{bmatrix} 4 & 6 & 8 \\ 5 & 7 & 9 \\ 6 & 8 & 10 \\ \end{bmatrix}

Idea summary

A matrix is a rectangular array of numbers, symbols or expressions.

The dimensions or order of a matrix is the number of rows and columns, denoted by m\times n.

The elements of a matrix are the entries where a_{ij} denotes the element in the ith row and jth column of the matrix.

Equations involving matrices

Two matrices are said to be equal if every corresponding elements in the matrices are equal.

\begin{bmatrix} 3 & 4 \\ -2 & 7 \end{bmatrix} = \begin{bmatrix} m & 4 \\ -2 & n \end{bmatrix}

So in this case, since the two matrices are equal, then m=3 and n=7.

Examples

Example 4

Consider the equation \begin{bmatrix} x-5 \\ -4y \end{bmatrix} = \begin{bmatrix} -7 \\ -16 \end{bmatrix} .

a

Solve for x.

Worked Solution
Create a strategy

Equate the top left row into the top right row.

Apply the idea
\displaystyle x-5\displaystyle =\displaystyle -7Write the equation
\displaystyle x-5+5\displaystyle =\displaystyle -7+5Add 5 to both sides
\displaystyle x\displaystyle =\displaystyle -2Evaluate
b

Solve for y.

Worked Solution
Create a strategy

Equate the bottom left row into the bottom right row.

Apply the idea
\displaystyle -4y\displaystyle =\displaystyle -16Write the equation
\displaystyle \dfrac{-4y}{-4}\displaystyle =\displaystyle \dfrac{-16}{-4}Divide both sides by -4
\displaystyle y\displaystyle =\displaystyle 4Evaluate
Idea summary

Two matrices are equal if the corresponding elements are equal.

We can equate the corresponding rows of equal matrices to find the unknown values.

Simultaneous equations

Simultaneous equations follow the convention of organising the coefficients into matrix notation. For instance, consider the two equations x+2y=7 and 2x-5y=-4. This system can be written like this using matrices.

\begin{bmatrix} 1 & 2 \\ 2 & -5 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 7 \\ -4 \end{bmatrix}

A network showing roads between 5 towns. Ask your teacher for more information.

Here is a network showing roads between towns. The information can be put into a matrix to make it easier to read.

We can construct a matrix, where the entries represent the number of paths between the towns.

We will need to set up a 5\times 5 matrix, where each of the rows and columns represents a town:\begin{array}{cc} & \begin{array}{ccc} 1 & 2 & 3 & 4& 5 \end{array} \\ \begin{array}{c} 1 \\ 2 \\ 3\\4\\5 \end{array} & \left[ \begin{array}{ccc} . & . & . &.&. \\ . & . & . &.&. \\ . & . & . &.&.\\ . & . & . &.&.\\ . & . & . &.&. \end{array}\right] \end{array}

The next step is to fill in the numbers of roads between them. There are two roads between towns 1 and 3, so we input a 2 in a_{13} and a_{31}. As there are no roads connecting town 2 with any other towns, all elements in row 2 and column 2 are 0. \begin{bmatrix} 0&0&2&1&0\\ 0&0&0&0&0\\ 2&0&0&0&1\\ 1&0&0&0&3\\ 0&0&1&3&0 \end{bmatrix}

\text{Party preference}\text{under } 30 \text{s} \text{over } 30\text{s}
\text{Labour}1622
\text{Liberal}1019
\text{Total}2641

A matrix can also be used to represent this two way frequency table for party preference for the over 30's and under 30's. We can let the rows represent the values of the party preferences and the columns represent the age groups.

Since the rows and columns in the two way frequency table correspond to the rows and columns of the matrix, we can simply transfer the information into a matrix: \begin{bmatrix} 16&22\\ 10&19\\ 26&41 \end{bmatrix}

Examples

Example 5

Jack, a chef, is known for his CrazyCookie, which requires 360 \text{ g} of yeast, 410 \text{ g} of salt, 340 \text{ g} of flour, 230 \text{ g} of sugar and 120 \text{ g} of honey. He is also known for his ScrumptiousSurprise, which requires 420 \text{ g} of yeast, 390 \text{ g} of salt, 330 \text{ g} of flour, 200 \text{ g} of sugar and 80 \text{ g} of honey.

Organise the data into a 2 \times 5 matrix.

Let the first row be the values for CrazyCookie and the second row be the values for ScrumptiousSurprise.

Let the columns be values of each ingredient, in the order given in the instructions.

Worked Solution
Create a strategy

Write each number in the corresponding location of a 2\times 5 matrix.

Apply the idea

The 2 \times 5 matrix is given by: \begin{bmatrix} 360 & 410 & 340 & 230 & 120\\ 420 & 390 & 330 & 200 & 80 \end{bmatrix}

Idea summary

Matrices can be used for storing and displaying information in a variety of applications, such as tables and lists of data and networks.

The order that you put the data in your matrix is important. You must decide what each column and row represents.

Outcomes

U4.AoS2.1

the order of a matrix, types of matrices (row, column, square, diagonal, symmetric, triangular, zero, binary, permutation and identity), the transpose of a matrix, and elementary matrix operations (sum, difference, multiplication of a scalar, product and power)

What is Mathspace

About Mathspace