IB Mathematics: Applications and Interpretation HL 6 Sections80 LessonsLifetime
Matrices AI HL
Lesson 1.14 · Matrices
Organise data, perform matrix operations, solve systems and model practical problems.
Faith connection · God’s love
A matrix brings several pieces of information into one organised picture. The Bible tells us that God’s love has been shown clearly in Jesus: “For God so loved the world, that he gave his only begotten Son” (John 3:16, KJV). As you learn to recognise patterns and connections in mathematics, remember this invitation: come to Jesus, trust Him as your Savior, and follow Him as Lord.
Learning objectives
By the end of this lesson, you should be able to:
- identify the order, rows, columns and elements of a matrix;
- add, subtract and multiply matrices by scalars;
- multiply compatible matrices and interpret the result;
- recognise the identity and zero matrices and the main properties of matrix multiplication;
- find determinants and inverses of
matrices by hand; - use technology for determinants and inverses of larger matrices;
- write and solve a system of linear equations in the form
; - apply matrices to sales information and simple message coding.
1 · Matrix language and order
A matrix is a rectangular array of numbers. A matrix with
rows and
columns has order
. Each number is an element.
![]()
Matrix
has two rows and three columns, so its order is
. The element in row 2, column 3 is
.
For the matrix below, state its order and find
.
![Rendered by QuickLaTeX.com \[B=\begin{pmatrix} 2&8\\ -1&6\\ 7&0 \end{pmatrix}\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-bffe4405e0d50fdeabfbbee1a5e3a90c_l3.png?resize=126%2C72&ssl=1)
There are three rows and two columns, so the order is
. The element in row 3, column 1 is
.
2 · Equality, addition, subtraction and scalar multiplication
Two matrices are equal when they have the same order and corresponding elements are equal. Matrices can be added or subtracted only when they have the same order.
![]()
A scalar is an ordinary number. Multiplying a matrix by a scalar multiplies every element by that number.
Let
and
. Find
.
![Rendered by QuickLaTeX.com \[2A-B =\begin{pmatrix}4&-2\\6&8\end{pmatrix} -\begin{pmatrix}5&2\\-1&6\end{pmatrix} =\boxed{\begin{pmatrix}-1&-4\\7&2\end{pmatrix}}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-3398f2e961834c6fb4a275710a55e0c8_l3.png?resize=425%2C62&ssl=1)
3 · Matrix multiplication
You can multiply an
matrix by an
matrix. The inner dimensions must match; the result has order
.
![]()
To calculate an element of the product, multiply the entries of one row by the corresponding entries of one column and add the results.
Find
for the matrices below.
![Rendered by QuickLaTeX.com \[A=\begin{pmatrix} 1&2&0\\ 3&-1&4 \end{pmatrix}, \qquad B=\begin{pmatrix} 2&1\\ 0&3\\ -1&2 \end{pmatrix}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-185c0f504a6665ee6c94c9540caf7d36_l3.png?resize=345%2C72&ssl=1)
The product has order
. For example, its top-right element comes from the first row of
and second column of
:
![]()
Calculating the other three elements gives:
![Rendered by QuickLaTeX.com \[AB= \boxed{\begin{pmatrix} 2&7\\ 2&8 \end{pmatrix}}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-c63e47cea952cb7d65660a6d0ba05af2_l3.png?resize=142%2C62&ssl=1)
4 · Properties of matrix multiplication
Matrix multiplication is associative and distributive whenever the products have compatible dimensions.
![]()
Matrix multiplication is generally not commutative: changing the order can change the answer.
![]()
Let
and
.
![]()
Both products exist, but
.
5 · Identity and zero matrices
The identity matrix
has 1s on its main diagonal and 0s elsewhere. Multiplying a matrix by a compatible identity matrix leaves it unchanged.
![]()
A zero matrix
has 0 in every position. Adding it to a matrix of the same order leaves that matrix unchanged.
![]()
For
:
![]()
6 · Determinants and inverses
For a
matrix, its determinant is found by multiplying along the main diagonal and subtracting the other diagonal product.
![]()
If
, the matrix has an inverse
, satisfying
. For a
matrix:
![Rendered by QuickLaTeX.com \[\boxed{ A^{-1}=\frac1{ad-bc} \begin{pmatrix}d&-b\\-c&a\end{pmatrix} },\qquad ad-bc\ne0.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-62907085d92c10c726d739c5b1ec6885_l3.png?resize=393%2C62&ssl=1)
Find the determinant and inverse of
.
![]()
![Rendered by QuickLaTeX.com \[A^{-1} =\frac11\begin{pmatrix}2&-1\\-3&2\end{pmatrix} =\boxed{\begin{pmatrix}2&-1\\-3&2\end{pmatrix}}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-4119e178056a5be3fa4020b878c3d2e4_l3.png?resize=321%2C62&ssl=1)
7 · Solving equations using 
A system of linear equations can be written as a matrix equation
. Here
contains the coefficients,
is a column of unknowns, and
is a column of constants. If
is invertible, multiply both sides on the left by
.
![]()
Solve the system below using an inverse matrix.
![]()
Write it as
.
![]()
Use the inverse found in the previous section.
![]()
Therefore
.
8 · Using the TI-84 Plus CE
For a numerical matrix calculation, press 2nd, then x−1 to open the MATRIX menu. Under EDIT, choose a matrix, enter its dimensions, and fill in its elements. Return to the home screen to select the matrix under NAMES.
- For a determinant, choose det( from MATRIX → MATH and enter the matrix name.
- For an inverse, enter the matrix name followed by the calculator’s x−1 key.
- To solve
, store
and
, then calculate
. - Before multiplying, check the dimensions and the order of the matrices.
Solve the following system by entering its coefficient matrix
and constant column
into a calculator, then calculating
.
![]()
![Rendered by QuickLaTeX.com \[A=\begin{pmatrix} 1&1&1\\ 1&-1&1\\ 2&1&-1 \end{pmatrix}, \qquad b=\begin{pmatrix}6\\2\\1\end{pmatrix}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-fd2d21383bf25581dda7c5992982861c_l3.png?resize=314%2C72&ssl=1)
![Rendered by QuickLaTeX.com \[A^{-1}b =\begin{pmatrix}1\\2\\3\end{pmatrix}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-4abc29b779c5a709372538693afe8d0a_l3.png?resize=123%2C72&ssl=1)
Hence
. Substitution checks all three original equations.
IB-style Paper 1 · Skill practice
State the order of
and the values of
and
.
![]()
Show solution
has two rows and three columns. Therefore its order is
, with
and
.
Let
and
. Find
.
Show solution
![]()
![Rendered by QuickLaTeX.com \[3A-2B =\boxed{\begin{pmatrix}-7&11\\-6&8\end{pmatrix}}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-34a92b791ec62469548d478a6e3969b6_l3.png?resize=212%2C62&ssl=1)
Let
and
. Find
.
Show solution
![Rendered by QuickLaTeX.com \[AB= \begin{pmatrix} 2(4)+1(0)&2(-2)+1(5)\\ (-1)(4)+3(0)&(-1)(-2)+3(5) \end{pmatrix} =\boxed{\begin{pmatrix}8&1\\-4&17\end{pmatrix}}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-989455fb71cec55e1d695e2242ecbb20_l3.png?resize=511%2C62&ssl=1)
Find the determinant and inverse of
by hand.
Show solution
![]()
![Rendered by QuickLaTeX.com \[A^{-1} =\frac11\begin{pmatrix}1&-1\\-3&4\end{pmatrix} =\boxed{\begin{pmatrix}1&-1\\-3&4\end{pmatrix}}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-13c13e767c3fce1a17db878dff3f4113_l3.png?resize=321%2C62&ssl=1)
Explain why
has no inverse.
Show solution
![]()
A matrix with determinant zero is not invertible. Therefore
.
Use an inverse matrix to solve
and
.
Show solution
![]()
The determinant is
, so:
![]()
![]()
.
Let
and
. Solve the matrix equation
.
Show solution
Multiply on the left by
.
![]()
Since
, its inverse is
.
![Rendered by QuickLaTeX.com \[X= \begin{pmatrix}1&-1\\-1&2\end{pmatrix} \begin{pmatrix}5&2\\3&1\end{pmatrix} =\boxed{\begin{pmatrix}2&1\\1&0\end{pmatrix}}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-ca8989f3c7ecf9f47aa878c379e45d50_l3.png?resize=325%2C62&ssl=1)
Applications · Advanced IB-style questions
A shop sells three products. The rows of
give the numbers sold in weeks 1 and 2; its columns correspond to products A, B and C. Matrix
gives their prices in euros.
![Rendered by QuickLaTeX.com \[S=\begin{pmatrix} 12&8&5\\ 15&6&9 \end{pmatrix}, \qquad p=\begin{pmatrix}4\\7\\10\end{pmatrix}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-327fcbc1000a746fdae771d0936586ae_l3.png?resize=296%2C72&ssl=1)
(a) Explain why
can be calculated. (b) Find
and interpret each element. (c) Find the difference between the weeks’ revenues.
Show solution
(a) The dimensions are
, so the inner dimensions match and the result is
.
(b)
![Rendered by QuickLaTeX.com \[Sp= \begin{pmatrix} 12(4)+8(7)+5(10)\\ 15(4)+6(7)+9(10) \end{pmatrix} =\boxed{\begin{pmatrix}154\\192\end{pmatrix}}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-e79e655ad249ae8aeb8c14722d141e52_l3.png?resize=356%2C62&ssl=1)
The entries are the week 1 and week 2 revenues, respectively, in euros.
(c) The difference is
.
A message uses A = 1, B = 2, … , Z = 26. Each pair of letter numbers is written as a column
. An encoder calculates
, where:
![]()
(a) Encode the pairs HE and LP. (b) Find
. (c) Use your inverse to decode the column
.
Show solution
(a) HE corresponds to
; LP corresponds to
.
![Rendered by QuickLaTeX.com \[K\begin{pmatrix}8\\5\end{pmatrix} =\boxed{\begin{pmatrix}13\\18\end{pmatrix}}, \qquad K\begin{pmatrix}12\\16\end{pmatrix} =\boxed{\begin{pmatrix}28\\44\end{pmatrix}}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-7e9f718ae1f5e68f213a8f4b7b6cad53_l3.png?resize=363%2C62&ssl=1)
(b) Since
:
![Rendered by QuickLaTeX.com \[\boxed{K^{-1}=\begin{pmatrix}2&-1\\-1&1\end{pmatrix}}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-589d6629e01009ec8059da98798d72c7_l3.png?resize=181%2C62&ssl=1)
(c)
![]()
The decoded letters are
.
A workshop produces three items. Let
,
and
be the numbers of each item made in one day. The resource requirements give the system:
![]()
(a) Write the system as
. (b) Use an inverse matrix on your calculator to find
,
and
. (c) Check the solution in one original equation.
Show solution
(a)
![Rendered by QuickLaTeX.com \[\underbrace{\begin{pmatrix} 1&1&1\\ 2&1&3\\ 1&2&1 \end{pmatrix}}_{A} \underbrace{\begin{pmatrix}x\\y\\z\end{pmatrix}}_{\text{unknowns}} = \underbrace{\begin{pmatrix}30\\65\\38\end{pmatrix}}_{b}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-a1acd138193b5af7f1387edf18984b2e_l3.png?resize=262%2C100&ssl=1)
(b) Calculate
.
![Rendered by QuickLaTeX.com \[\begin{pmatrix}x\\y\\z\end{pmatrix} =A^{-1}b =\boxed{\begin{pmatrix}10\\8\\12\end{pmatrix}}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-85ef3878a30ad19d8099d5a9dfdc7767_l3.png?resize=210%2C87&ssl=1)
(c) For example,
. This does not equal 65, so the proposed result requires correction.
Solving the system carefully: subtract the first equation from the third to get
. Then
. The second equation gives
; subtract
to get
and
.
![]()
Check:
.
A café sells a drink and a snack. Two drinks and three snacks cost €18; four drinks and one snack cost €22.
(a) Construct a matrix equation for the prices. (b) Solve it using the inverse matrix method. (c) Find the cost of five drinks and two snacks.
Show solution
(a) Let
be the drink price and
the snack price, in euros.
![]()
(b) The determinant is
.
![]()
![Rendered by QuickLaTeX.com \[\begin{pmatrix}d\\s\end{pmatrix} =A^{-1}\begin{pmatrix}18\\22\end{pmatrix} =\boxed{\begin{pmatrix}4.8\\2.8\end{pmatrix}}.\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-e1fa28e157edd1a87224b04d29630653_l3.png?resize=249%2C62&ssl=1)
(c) The requested cost is
.
Quick recap
![]()
![]()
![]()
Exam habit: Check matrix dimensions before multiplying, keep factors in the correct order, and substitute a calculated solution back into the original context.
Looking ahead: Matrices also appear in transition models and Markov chains later in AI HL.