FP1.5 - Matrix algebra
- Syllabus
- 2019
- Topic
- —
- Level
- AS
Two matrices can be added or subtracted only when they have the same order. Combine entries that occupy the same row and column; the result has that same order.
A=(aij), B=(bij) of the same order⟹A±B=(aij±bij)
For A=(23−14),B=(5−321), match corresponding positions: A+B=(7015),A−B=(−36−33). For example, the lower-left entry of A−B is 3−(−3)=6.
Do not combine whole rows or columns, and do not add matrices of different orders. Subtraction is order-sensitive: A−B=−(B−A), so reversing the matrices usually changes every sign.
A scalar is a single number. Multiplying a matrix by a scalar multiplies every entry by that number while leaving the matrix order unchanged.
kA=k(aij)=(kaij)
If A=(23−14), then −3A=(−6−93−12). The negative scalar reverses each sign as well as multiplying each magnitude by 3. Also, 0A is the zero matrix of the same order as A.
The scalar must reach every entry, not just a row, a column or the diagonal. Scalar multiplication is different from a product of two matrices: it needs no row-by-column calculation and never changes the matrix order.
The product AB exists when the number of columns of A equals the number of rows of B. If A is m×n and B is n×p, then AB is m×p.
(AB)ij=r=1∑nairbrj
To find one entry, take a row from the first matrix and the matching column from the second, multiply corresponding terms, then add. Repeat for every row-column pair.
Let A=(1023−14),B=2−13102. Their inner dimensions are both 3, so AB=(1(2)+2(−1)+(−1)(3)0(2)+3(−1)+4(3)1(1)+2(0)+(−1)(2)0(1)+3(0)+4(2))=(−39−18).
Matrix multiplication is generally not commutative: even when both AB and BA exist, they need not be equal. Here AB is 2×2 but BA is 3×3, so equality is impossible. A2 means AA, not squaring each entry.
The determinant of a 2 by 2 matrix is one number found by multiplying along the main diagonal and subtracting the product along the other diagonal.
A=(acbd)⟹detA=∣A∣=ad−bc
| Determinant | Classification | Consequence |
|---|---|---|
| detA=0 | singular | A has no inverse |
| detA=0 | non-singular | A has an inverse |
For A=(4273), detA=4(3)−7(2)=−2, so A is non-singular. By contrast, for S=(2163), detS=2(3)−6(1)=0, so S is singular.
Keep the subtraction order ad−bc; it is not ac−bd and not the sum of the diagonal products. For a matrix containing a parameter, find the determinant expression first and solve detA=0 only when testing singularity.
An inverse A−1 reverses the effect of a square matrix: AA−1=A−1A=I. A 2 by 2 inverse exists exactly when the determinant is non-zero.
A=(acbd), ad−bc=0⟹A−1=ad−bc1(d−c−ba)
Keep the main-diagonal entries but swap their positions, change the signs of the other two entries, then multiply the resulting matrix by the reciprocal of the determinant.
For A=(4273), detA=−2, so A−1=−21(3−2−74). Multiplying A by this result gives I, which checks both the entry changes and the determinant factor.
(AB)−1=B−1A−1
The order reverses because B−1 must first undo B: (AB)(B−1A−1)=A(BB−1)A−1=I. This relation requires both A and B to be invertible.
If detA=0, division by the determinant is impossible and no inverse exists. Do not leave the factors in their original order: A−1B−1 does not generally invert AB.