What a matrix is, how to read its dimensions and entries, when two matrices are equal, and how to add, subtract and scale matrices one entry at a time.
Two bike rental stations count how many city bikes, mountain bikes and electric bikes they rent out each week. That is six numbers, and they fall naturally into a grid with one row per station and one column per bike type. Such a grid is a matrix. Adding two weeks of counts, or scaling them for a forecast, is done spot by spot, and the same grids later hold the coefficients of whole linear systems.
Key terms
Matrix
Definition Let m and n be positive integers. An m×n matrix is a rectangular array of mn numbers, called its entries, arranged in m horizontal rows and n vertical columns. The entry in row i and column j is written aij, and the whole matrix is written
In this course the entries are real numbers and the array is written in square brackets. Some books use large parentheses instead.
In plain words A matrix is a table of numbers without labels. Where a number sits tells you what it means, and its address gives the row first and the column second.
Example One week of rentals fits in a matrix whose rows are the two stations and whose columns are city, mountain and electric bikes,
A=[403015202510].
The entry a23=10 sits in row 2 and column 3, so station 2 rented out 10 electric bikes. The entry a12=15 counts mountain bikes at station 1.
Dimensions
Definition A matrix with m rows and n columns has dimensions m×n, read ”m by n”, with the number of rows always first. It has mn entries. A matrix with m=n is square. A 1×n matrix is a row matrix, or row vector, and an m×1 matrix is a column matrix, or column vector. The size of a matrix means the same thing, and some books say order.
In plain words Count the rows down the side, then the columns across the top, and say them in that order.
Example The linear system below has two equations in the three variables x, y and z.
2x−y+3zx+5z=4=−1
Its coefficient matrix has one row per equation and one column per variable,
[21−1035],
so it is 2×3. The second equation has no y, which shows up as the entry 0. In this matrix a12=−1 and a23=5.
Equal matrices
Definition Two matrices A=[aij] and B=[bij] are equal, written A=B, when they have the same dimensions and aij=bij for every row i and every column j.
In plain words Equal matrices have the same shape and the same number in every spot. So one equation between m×n matrices is really mn ordinary equations.
Example The matrix equation
[x+1342y]=[534−6]
holds exactly when x+1=5 and 2y=−6, so x=4 and y=−3. The other two spots already agree. On the other hand, the row [12] and the column with entries 1 and 2 are not equal, because one is 1×2 and the other is 2×1.
Matrix addition
Definition If A=[aij] and B=[bij] are both m×n matrices, their sum is the m×n matrix
A+B=[aij+bij].
The sum of two matrices with different dimensions is not defined.
In plain words Add the numbers that sit in the same spot. If the shapes do not match, some spots have no partner and there is no sum.
Example The second week of rentals is the matrix B below, so the two weeks together are
Station 1 rented out 78 city bikes over the two weeks. A 2×3 matrix and a 3×2 matrix cannot be added, even though both have six entries.
Scalar multiplication
Definition For a real number c, called a scalar, and an m×n matrix A=[aij], the scalar multiple cA is the m×n matrix
cA=[caij].
In plain words Multiply every entry by the same number. The shape stays the same.
Example Suppose a forecast expects 20 percent more rentals in the same week next year. Every count in the first week’s matrix A gets multiplied by 1.2,
Definition The m×n zero matrix O has every entry equal to 0, and there is one for each choice of dimensions. The negative of A=[aij] is −A=(−1)A=[−aij]. For two m×n matrices the difference is
A−B=A+(−B)=[aij−bij].
In plain words Subtract spot by spot. Adding the zero matrix changes nothing, and any matrix minus itself is the zero matrix of the same shape.
Example The change from the first week to the second is
Each rule holds because the same rule holds for real numbers, applied in every spot.
In plain words Adding matrices and multiplying them by numbers follow the familiar rules of arithmetic. So a simple matrix equation can be solved the way you would solve one with numbers.
Example Find the matrix X with 3X−A=B, where
AB=[2−104],=[4−26−1].
Add A to both sides and multiply by 31,
X=31(A+B)=31[6−363]=[2−121].
As a check, 3X−A has top row 6−2=4 and 6−0=6 and bottom row −3+1=−2 and 3−4=−1, which is B.
Check yourself
Give the dimensions of the matrix below and the entries a23 and a14.
[3504−1721]Show the answer
It has 2 rows and 4 columns, so it is 2×4. The entry in row 2 and column 3 is a23=7, and the entry in row 1 and column 4 is a14=2.
May we count page visits to understand which courses and learning features are useful? Cloudflare collects visit and performance statistics, without your account details or answers. Your choice does not affect access. Details