DWG NO. 7.3 — Lesson 3 of 5

Introduction to Matrices and Matrix Operations

Unit 7: Systems of Equations and Matrices · ~25 min

Objective Represent data as a matrix and perform addition, subtraction, scalar multiplication, and matrix multiplication.

Every system in Lesson 7.1 was really just a list of coefficients attached to x and y. A matrix makes that list a first-class object — a rectangular grid of numbers you can add, scale, and multiply, independent of the variables it came from. That shift in perspective is what makes Lessons 7.4 and 7.5 possible: once a system lives inside a matrix, solving it becomes a mechanical, repeatable procedure.

What is a matrix?

A matrix is a rectangular array of numbers, called entries, arranged in rows and columns. A matrix with m rows and n columns has dimension m × n (rows first, then columns). The entry in row i, column j is often written \(a_{ij}\).

2−10
357

A 2 × 3 matrix — 2 rows, 3 columns

Addition, subtraction, and scalar multiplication

Matrix multiplication

Matrix multiplication is not entrywise. To multiply an m × n matrix A by an n × p matrix B, the number of columns of A must equal the number of rows of B — the result is an m × p matrix. Each entry of the product is the sum of the products of a row of A and a column of B.

row i A col j B → entry (i, j) of A × B

Entry (i, j) of the product comes from row i of A paired with column j of B

Worked Example 1 · Add, subtract, and scale
Problem Given A =
31
−24
and B =
05
2−1
, find A + B and 2A.
1Add corresponding entries: (3+0), (1+5), (−2+2), (4−1).
A + B =
36
03
3Scale every entry of A by 2.
2A =
62
−48
Worked Example 2 · Matrix multiplication
Problem Multiply A =
12
30
by B =
4−1
25
1Both are 2 × 2, so the product AB is defined and is also 2 × 2.
2Row 1 · Column 1: (1)(4) + (2)(2) = 4 + 4 = 8.
3Row 1 · Column 2: (1)(−1) + (2)(5) = −1 + 10 = 9.
4Row 2 · Column 1: (3)(4) + (0)(2) = 12 + 0 = 12.
5Row 2 · Column 2: (3)(−1) + (0)(5) = −3 + 0 = −3.
AB =
89
12−3

Guided practice