Skip to main content

Section 2.1 Matrices

What is a Matrix?

A matrix (plural: matrices) is a rectangular arrangement of numbers, symbols, or expressions that are organized in rows and columns, and enclosed by brackets.
Each number in a matrix is called an \(\textbf{entry}\) or \(\textbf{element}\text{.}\) The position of each element is identified by its row number and column number.
\(\textbf{Basic Structure Example:}\)
Let matrix \(A = \displaystyle \begin{pmatrix} 2 & 3 \\ 4 & 5 \end {pmatrix}\)
This matrix has 2 rows and 2 columns, so we call it a \(\textbf{2 times 2}\) matrix (read: "2 by 2 matrix").
The number \(2\) is in the \(\textbf{first row, first column}\text{.}\)
The number \(5\) is in the \(\textbf{second row, second column}\text{.}\)

Subsection 2.1.1 Identifying a Matrix in Different Situations

A \(\textbf{matrix}\) is a way of organizing numbers or information in rows and columnsβ€”just like the tables you have seen in other topics, such as measurement and data handling. Matrices help us organize, compare, and analyze data efficiently.
Matrices are powerful tools for organizing and analyzing real-world data, such as sports scores, business sales, or scientific results. By turning tables into matrices, we can use mathematical methods to solve problems more easily.

Activity 2.1.1.

Work in Groups
The Greenfield School Cafeteria prepares meals for students in three school levels: Lower Primary, Upper Primary, and Secondary. Each week, they prepare two types of meals: Vegetarian and Non-Vegetarian. The number of meals prepared (in hundreds) for Week 1 and Week 2 is recorded in the tables below:
Week 1 Meal Data
School Level Vegetarian Non-Vegetarian
Lower Primary 4 6
Upper Primary 3 5
Secondary 2 7
Week 2 Meal Data
School Level Vegetarian Non-Vegetarian
Lower Primary 5 4
Upper Primary 4 6
Secondary 3 8
\(\textbf{What you need:}\)
\(\textbf{Instructions:}\)
  1. Carefully study the tables for Week 1 and Week 2.
  2. \(\textbf{Discuss with your group: }\)
    • How many rows and columns are in each table? What does each represent?
    • Write the data for each week as a matrix. Use square brackets for Week 1 and curly brackets for Week 2.
    • What do you notice about the arrangement of the data in matrix form compared to the table?
  3. \(\textbf{Explore: }\)
    • Compare the matrices for Week 1 and Week 2. In which categories did the cafeteria increase or reduce production?
    • If the cafeteria added a new meal type, how would the matrix change?
    • Try changing one value in the matrix. How does it affect the totals for each category?
  4. \(\textbf{Reflect and Share:}\)
    • How does using a matrix help you organize and analyze data more easily?
    • Can you think of another real-life situation where a matrix would be useful?
    • Share your answers and reasoning with another group. Did you agree? Why or why not?
Key Take Away
Matrices help us organize, compare, and analyze data efficiently, making it easier to spot patterns and make decisions.

Example 2.1.1.

Write the table below as a matrix.
Who read the most books in Term 2?
How many books did Brian read in total?
Term 1 Term 2
Alice 4 5
Brian 3 6
Carol 5 4
Solution.
Step 1: Write the matrix:
\(\textbf{Matrix:}\) \(\begin{bmatrix} 4 & 5 \\ 3 & 6 \\ 5 & 4 \\ \end{bmatrix}\)
Rows: Alice, Brian, Carol.
Columns: Term 1, Term 2.
  • Who read the most books in Term 2? \(\textbf{Brian}\)
  • We compare the Termβ€―2 column: Alice = 5, Brian = 6, Carol = 4. The highest number is \(\textbf{6}\text{,}\) which belongs to \(\textbf{Brian}\text{.}\)
  • How many books did Brian read in total?
  • We add the numbers in Brian’s row: 3 (Term 1) + 6 (Term 2) = 9. therefore he read a total of \(\textbf{9 books}\text{.}\)

Subsection 2.1.2 Determining the Order of a Matrix in Different Situations

The order of a matrix tells us how many rows and columns it has. This is written as rows Γ— columns (for example, 2 Γ— 3 means 2 rows and 3 columns). Knowing the order helps us describe, compare, and use tables and schedules correctly in real life.

Activity 2.1.2.

Work in Pairs
The following table shows the number of students in four different classes (A, B, C, D) over three days:
Day 1 Day 2 Day 3
Class A 30 28 29
Class B 27 29 28
Class C 25 26 27
Class D 32 31 30
\(\textbf{What you need:}\)
\(\textbf{Instructions:}\)
  1. Write the data as a matrix S.
  2. \(\textbf{Discuss:}\)
    • What is the order of matrix S?
    • What does each row and each column represent?
    • If you wanted to add another class or another day, how would the order of the matrix change?
  3. \(\textbf{Explore:}\)
    • Why is it important to know the order of a matrix when organizing data?
    • Can you think of a real-life example where knowing the order of a matrix is helpful?
  4. \(\textbf{Reflect and Share:}\)
    • How does the order of a matrix help you describe and use tables or schedules?
    • Share your answers with another pair and discuss any differences.
Key Takeaway
The order of a matrix helps us describe and use tables, schedules, and data sets correctly in real life. It tells us how much information a matrix can hold.

Example 2.1.2.

What is the order of the matrix B below?
What does the entry in the second row, third column represent?
\(B = \begin{bmatrix} 4 & 5 & 6 & 7 \\ 3 & 6 & 5 & 4 \\ 5 & 4 & 3 & 2 \end{bmatrix}\)
Solution.
  • Interpret the meaning.
    The entry in the second row, third column (5) means Brian borrowed 5 books in Month 3.

Subsection 2.1.3 Determining the Position of Items in a Matrix in Different Situations

Every number or item in a matrix has a special place, just like a seat in a classroom or a product on a shelf. We use the row and column numbers to find the exact position of each item. This helps us quickly locate information in tables, scoreboards, or lists.

Activity 2.1.3.

Imagine a 3Γ—3 matrix representing a simple map. Each cell can have a value: 0 (empty), 1 (tree), 2 (house), 3 (treasure). The map is represented by the following matrix:
\(M = \begin{bmatrix} 0 & 1 & 0 \\ 2 & 3 & 1 \\ 0 & 2 & 0 \\ \end{bmatrix}\)
\(Map Matrix Adventure (Work in Groups)\)What you need:
\(\textbf{Instructions:}\)
  1. \(\textbf{Explore the map:}\)
    • What is at position (2,2)? What does it represent?
    • List all the positions where there is a house.
    • If you start at (1,1) and move to (2,2), what do you find?
  2. \(\textbf{Draw:}\)
    • Draw a simple sketch of the map using the matrix values as symbols (0=empty, 1=tree, 2=house, 3=treasure).
  3. \(\textbf{Discuss:}\)
    • How does knowing the position (row, column) help you find information quickly?
    • Can you think of another example (like a seating chart or timetable) where positions in a matrix are useful?
  4. \(\textbf{Reflect and Share:}\)
    • Share your map and answers with another group. Did you find the same locations for the houses and treasure?
Key Takeaway
The position (row, column) helps us locate and understand data in real-life matrices, maps, and matrices. It makes finding information quick and fun!

Example 2.1.3.

  1. What is at position (2,2) in the matrix below?
  2. List all positions where there is a house (2).
  3. If you start at (1,1) and move to (2,2), what do you find?
\(M = \begin{bmatrix} 0 & 1 & 0 \\ 2 & 3 & 1 \\ 0 & 2 & 0 \\ \end{bmatrix}\)
Solution.

Subsection 2.1.4 Determining Compatibility of Matrices in Addition and Subtraction

In real life, we often want to combine or compare data from different sourcesβ€”like adding up sales from two weeks or comparing scores from two rounds of a game. To do this with matrices, the data must be organized in the same way. This means the matrices must have the same number of rows and columns (the same \(order\)).
Let’s see how this works with a real-life example.

Activity 2.1.4.

Work in Groups
The table below shows the number of books borrowed from a library by three students (Alice, Brian, and Carol) in two different months, and then in two more months.
Month 1 Month 2
Alice 4 5
Brian 3 6
Carol 5 4
The next month, the same students borrowed the following number of books:
Month 3 Month 4
Alice 6 3
Brian 2 7
Carol 4 5
\(\textbf{What you need: }\)
\(\textbf{Instructions:}\)
  1. Write the Month 1 & 2 data as a matrix A and the Month 3 & 4 data as a matrix B.
  2. \(\textbf{Discuss: }\)
    • Can you add matrices A and B? Why or why not?
    • Suppose you had a table for a different group of students with only two rows. Could you add this to matrix A? Why or why not?
  3. \(\textbf{Explore: }\)
    • What does the sum A + B represent in this context?
    • Why is it important for matrices to have the same order before adding or subtracting?
  4. \(\textbf{Reflect and Share: }\)
    • How does this rule help us combine or compare real-life data correctly?
    • Share your answers and reasoning with another group.
Key Takeaway
You can only add or subtract matrices if they have the same order (the same number of rows and columns). This allows us to combine or compare real-life data correctly.

Example 2.1.4.

Add the matrices A and B below?
What does the result mean?
\(Shop\ 1: \quad A = \begin{bmatrix} 10 & 12 \\ 8 & 9 \end{bmatrix}\)
\(Shop\ 2: \quad B = \begin{bmatrix} 7 & 5 \\ 6 & 11 \end{bmatrix}\)
Solution.
  • Check the order of both matrices.
  • Matrix \(A\text{:}\) 2 rows, 2 columns. Matrix \(B\text{:}\) 2 rows, 2 columns. The orders are the same.
  • Add corresponding entries:
    \(\begin{bmatrix} 10+7 & 12+5 \\ 8+6 & 9+11 \end{bmatrix} = \begin{bmatrix} 17 & 17 \\ 14 & 20 \end{bmatrix}\)
  • Interpret the result.
  • The resulting matrix shows the total number of items sold by both shops on each day.

Subsection 2.1.5 Carry Out Addition and Subtraction of Matrices in Real Life Situations

In everyday life, we often need to combine or compare data from different sourcesβ€”such as adding up scores from two football matches or finding the difference in sales between two weeks. Matrices make these calculations easy and organized!

Activity 2.1.5.

Interactive Matrix Calculator (Work in Pairs)
Use the GeoGebra applet below to practice adding and subtracting matrices. You can choose either 2Γ—2 or 3Γ—3 matrices, enter your own values, and select the operation (addition or subtraction).
What you need:
  • Computer or tablet with internet access
  • GeoGebra applet (link or embedded)
\(\textbf{Instructions:}\)
  1. Choose the size of your matrices (2Γ—2 or 3Γ—3) in the GeoGebra applet.
  2. Enter the values for both matrices.
  3. Select either addition (+) or subtraction (βˆ’).
  4. Click "Solve" to see the result instantly.
  5. \(\textbf{Explore: }\)
    • Try changing one value. How does it affect the result?
    • Which is easier: doing the calculation by hand or using the tool? Why?
Figure 2.1.5. \(\textbf{Addition and Subtraction of Matrices (GeoGebra Interactive)}\)
  1. \(\textbf{Discuss: }\)
    • How does using GeoGebra help you understand matrix operations?
    • In what real-life situations might you need to add or subtract matrices?
  2. \(\textbf{Reflect and Share: }\)
    • Share your findings with another pair. Did you get the same results?
    • Which method did you prefer and why?
Key Takeaway
Matrix addition and subtraction help us combine and compare real-life data, making it easier to analyze results and identify patterns.

Example 2.1.6.

  1. We have two vendors selling apples and oranges over two days. The sales data is represented in matrices as follows:
  2. Find A + B and A - B for the matrices below.
  3. Explain what the results mean in this context.
\(Vendor\ 1: \quad A = \begin{bmatrix} 5 & 7 \\ 3 & 4 \end{bmatrix}\) \(Vendor\ 2: \quad B = \begin{bmatrix} 2 & 6 \\ 1 & 5 \end{bmatrix}\)
Solution.
Step 1: Add the matrices:
\(A + B = \begin{bmatrix} 5+2 & 7+6 \\ 3+1 & 4+5 \end{bmatrix} = \begin{bmatrix} 7 & 13 \\ 4 & 9 \end{bmatrix}\)
Step 2: Subtract the matrices:
\(A - B = \begin{bmatrix} 5-2 & 7-6 \\ 3-1 & 4-5 \end{bmatrix} = \begin{bmatrix} 3 & 1 \\ 2 & -1 \end{bmatrix}\)
Step 3: Interpret the results.
  • \(A + B\) shows the total number of apples and oranges sold by both vendors each day.
  • \(A - B\) shows the difference in sales between Vendor 1 and Vendor 2 for each fruit and day. A negative number means Vendor 2 sold more of that item than Vendor 1.

Subsection 2.1.6 Reflecting on the Use of Matrices in Real Life Situations

Matrices are everywhere in our daily lives! Whenever you see a table, a timetable, or a chart, you are looking at data that can be organized as a matrix. Matrices help us organize, compare, and analyze information quickly and clearly.

Activity 2.1.6.

Investigation – Who Performed Best? (Work in Groups)
The local sports club keeps a matrix of scores for three teams (Lions, Tigers, Eagles) over four games. The club wants to know which team performed best overall and in which game the highest score was recorded.
\(\begin{bmatrix} 12 amp; 15 & 14 & 10 \\ 10 & 18 & 13 & 12 \\ 14 & 11 & 16 & 15 \\ \end{bmatrix}\)
(Rows: Lions, Tigers, Eagles; Columns: Game 1, Game 2, Game 3, Game 4)
\(\textbf{Instructions:}\)What you need:
\(\textbf{Instructions: }\)
  1. \(\textbf{Work with your group to:}\)
    • Find the total score for each team.
    • Find the highest score in each game.
    • Decide which team performed best overall.
    • Identify the game with the highest single score and which team achieved it.
  2. \(\textbf{Discuss: }\)
    • How does using a matrix help you answer these questions quickly?
    • Can you think of another example where a matrix would help you analyze data in real life?
  3. \(\textbf{Reflect and Share: }\)
    • Share your answers with another group. Did you agree on the best team and the highest score?
\(\textbf{Instructions:}\)
Matrices are powerful tools for organizing, analyzing, and solving real-life problems. They help us see patterns and make decisions based on data

Example 2.1.7.

  1. Find the total score for each team in the matrix below.
  2. Which team performed best overall?
  3. What was the highest single score and which team achieved it?
\(\begin{bmatrix} 12 & 15 & 14 & 10 \\ 10 & 18 & 13 & 12 \\ 14 & 11 & 16 & 15 \\ \end{bmatrix}\)
Solution.
  1. Add up each row for team totals:
  2. Find the highest score in each column (game):
  3. The best overall team is Eagles (56 points).
  4. Step 4: The highest single score is 18 (Tigers, Game 2).
  5. Using a matrix makes it easy to compare, total, and analyze scores at a glance!