The idea, then worked examples solved step by step, then practice questions whose numbers change every time you try them.
A table of numbers with a size
A matrix is a rectangle of numbers set out in rows and columns, inside brackets. Its size is the number of rows, then the number of columns. A matrix with 2 rows and 3 columns is a 2×3 matrix, read "2 by 3". Rows go across, columns go down.
Here is a 2×3 matrix:
M=[42−1705] Each number is an entry. The entry in row 2, column 3 is 5. The picture marks that row and that column; the entry sits where they cross.
Adding, subtracting and multiplying by a number
Two matrices of the same size are added by adding the entries in the same places. Subtracting works the same way. Multiplying a matrix by a number, a scalar, multiplies every entry by it.
A+B=[2513]+[10−24]=[35−17] 3A=3[2513]=[61539] Matrices of different sizes cannot be added: some entries would have no partner.
Multiplying two matrices: row times column
To multiply A by B, take a row of A and a column of B, multiply the entries in pairs and add. That sum is one entry of AB: row 1 of A with column 2 of B gives the entry in row 1, column 2. Watch the four entries of AB filled one at a time.
The engine works the whole product, and the product the other way round:
PQ=matMul(A,B)=[2502]=matMul(B,A)=[−820−512] The two products are different. For matrices, AB and BA are usually not equal, so the order matters.
Rule.
A product AB exists only when the number of columns of A equals the number of rows of B. An m×n matrix times an n×p matrix gives an m×p matrix: the inside numbers must match, and the outside numbers give the size.
So a 2×3 matrix times a 3×4 matrix is a 2×4 matrix, but a 3×4 matrix times a 2×3 matrix does not exist.
The determinant of a 2 by 2 matrix
For a 2×2 matrix with rows a,b and c,d, the determinant is ad−bc: the product down the main diagonal minus the product down the other one.
For A above, with rows 2, 1 and 5, 3:
DE=ad−bc=2×3−1×5=1=matDet(A)=1 When the determinant is 0, the matrix has no inverse. The picture shows why. Take the matrix with rows 2,1 and c,3. Its two columns are drawn as arrows, and the size of its determinant, 2(3)−1(c), is the area of the shaded shape they make. Drag c: at c=6 the two arrows line up, the shape goes flat, and the determinant is 0.
A system of equations as a matrix equation
The system 2x+y=4 and 5x+3y=11 can be written as one matrix equation. The numbers in front of x and y make the coefficient matrix, the unknowns make a column, and the right sides make another column:
[2513][xy]=[411] Multiplying row by column on the left gives back the two equations. The engine solves the matrix equation:
s=matSolve(A,r)=[1,2] So x=1 and y=2. The two lines meet at that point:
Note.
On the ACT a matrix question is usually short: the size of a product, one entry of a sum or a product, a scalar multiple, a 2×2 determinant, or which matrix equation stands for a system. Write the sizes down first, then work only the entries asked for.
Worked examples
Each example is one of the kinds of matrix question the ACT asks. The numbers in the working are found by the engine.
Example.
1. The size of a product. Matrix A is 2×3 and matrix B is 3×4. Does AB exist, and what is its size? Does BA exist?
For AB, write the sizes side by side: (2×3)(3×4). The inside numbers, 3 and 3, match, so AB exists. The outside numbers give its size: 2×4.
For BA the order is (3×4)(2×3). The inside numbers, 4 and 2, do not match, so BA does not exist. Here are two such matrices; the engine multiplies them in the order that works:
P=matMul(A,B)=[55252032] The product has 2 rows and 4 columns, as the sizes said.
Example.
2. A scalar multiple and a difference. Find 3A−2B for the matrices below.
A=[42−15],B=[3−126] Multiply every entry of A by 3 and every entry of B by 2, then subtract entry by entry:
UVW=matScale(A,3)=[126−315]=matScale(B,2)=[6−2412]=matSub(U,V)=[68−73] So 3A−2B=[68−73]. Check one entry by hand: the top left is 3(4)−2(3), which is 6.
Example.
3. One entry of a product. For the matrices below, find the entry in row 2, column 1 of AB.
A=[24−31],B=[5−206] Row 2 of A is 4, 1. Column 1 of B is 5, −2. Multiply in pairs and add:
z=eg+fh=4×5+1×(−2)=18 The entry is 18. The whole product shows it in row 2, column 1:
P=matMul(A,B)=[1618−186] Multiplying only the two entries that sit in that place, 4 and −2, gives −8: a common slip, and not how a product works.
Example.
4. From a situation. A school sells adult tickets for 9 dollars, student tickets for 5 dollars and child tickets for 3 dollars. The table shows the tickets sold for two plays. Use matrices to find the money taken at each play.
| Play | Adult | Student | Child |
|---|
| Friday | 120 | 210 | 40 |
| Saturday | 150 | 180 | 65 |
Put the counts in a 2×3 matrix T (a row for each play) and the prices in a 3×1 column C. The inside numbers match, so TC is 2×1: one amount for each play.
M=matMul(T,C)=[22502445] Friday took 2250 dollars and Saturday took 2445 dollars. The bars show the two amounts and the part from each kind of ticket.
Example.
5. When there is no inverse. For what value of k does the matrix [k346] have no inverse?
A matrix has no inverse when its determinant is 0. The determinant is 6k−4(3). Set it equal to 0 and solve:
6k−4×3k=0=2 Check: with k=2 the determinant D is
D=matDet(M)=0 So k=2. The rows 2, 4 and 3, 6 are then in the same ratio: the second row is 23 times the first.
Example.
6. A system as a matrix equation. Write the system 3x−y=7 and x+2y=7 as a matrix equation, and solve it.
The coefficients of x and y go in the rows of the matrix, one row for each equation, in the same order as the right sides:
[31−12][xy]=[77] The determinant is not 0, so there is exactly one solution. The engine finds it:
dv=matDet(A)=7=matSolve(A,r)=[3,2] The first number is x and the second is y. Check in both equations:
xyLR=v[0]=3=v[1]=2=3x−y=3×3−2=7=x+2y=3+2×2=7 Both give 7. The two lines cross at that point:
Answer ACT-style questions on matrices. Each answer is checked, with the full solution, and every try brings new numbers. Practice needs a free account: it keeps your progress.