- 1. What is a matrix?
- 2. How big is it? The order of a matrix
- 3. Types of matrices: row, column, square, diagonal, scalar, identity, zero
- 4. When are two matrices equal?
- 5. Adding matrices and multiplying by a number
- 6. Multiplying matrices: row into column
- 7. Why AB is not BA, and other surprises of matrix multiplication
- 8. Turning rows into columns: the transpose
- 9. Symmetric and skew symmetric matrices
- 10. Undoing a matrix: invertible matrices
- 11. Finding an inverse with row operations (JEE extra)
- Review
7 of 11·NCERT §3.4.5 · §3.4.6·6 min
Why AB is not BA, and other surprises of matrix multiplication
The big ideaMatrix multiplication keeps some rules of ordinary multiplication (brackets, spreading over addition, a "1" that changes nothing) but breaks two big ones: AB is usually not BA, and AB can be O when neither A nor B is O.
In simple words
With plain numbers, 3 times 5 is the same as 5 times 3, and if two numbers multiply to zero then one of them was zero. Matrices do not keep these promises. Swap the two and the answer often changes. Two grids full of non-zero numbers can multiply to a grid of only zeros. Most mistakes in this chapter come from forgetting this.
Guess first: does AB equal BA?
Take \( A = \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix} \) and \( B = \begin{bmatrix} 1 & 0 \\ 1 & 1 \end{bmatrix} \). Both are 2 × 2, so AB and BA both exist and have the same size. Guess: are they equal?
See what happens
There are three ways AB and BA can fail to match:
- One is defined and the other is not (A is 2 × 3, B is 3 × 4: AB exists, BA does not).
- Both are defined but have different orders (A is 2 × 3, B is 3 × 2: AB is 2 × 2, BA is 3 × 3).
- Both are defined, same order, but the entries differ, as above.
This does not mean AB ≠ BA for every pair. Some pairs commute (AB = BA): two diagonal matrices of the same order, any square A with I or with a scalar matrix kI, and A with its own powers \( A^2, A^3, \ldots \).
Try it: a 2 × 2 matrix moves every point of the plane, so you can watch it move a picture. Play both orders of the same two moves side by side.
Guess first: can AB = O with A ≠ O and B ≠ O?
For numbers, if ab = 0 then a = 0 or b = 0. Guess: is it the same for matrices? Try \( A = \begin{bmatrix} 1 & 1 \\ 2 & 2 \end{bmatrix} \) and \( B = \begin{bmatrix} 1 & -1 \\ -1 & 1 \end{bmatrix} \).
See what happens
A consequence: you cannot cancel. From AB = AC you may not conclude B = C. With the A above, \( B = \begin{bmatrix} 2 & 0 \\ 0 & 1 \end{bmatrix} \) and \( C = \begin{bmatrix} 1 & 1 \\ 1 & 0 \end{bmatrix} \) are different, yet \( AB = AC = \begin{bmatrix} 2 & 1 \\ 4 & 2 \end{bmatrix} \).
Try it: find your own non-zero B with AB = O by dragging the two columns of B.
The rules that do hold
NCERT states these without proof. Whenever both sides are defined:
- Associative law: (AB)C = A(BC). You may multiply in any grouping, as long as you keep the left-to-right order of A, B, C.
- Distributive law: A(B + C) = AB + AC and (A + B)C = AC + BC. Keep each matrix on its own side.
- Multiplicative identity: for every square matrix A there is an identity matrix I of the same order with IA = AI = A.
Quick check of (AB)C = A(BC) with \( A = \begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix} \), \( B = \begin{bmatrix} 3 & 0 \\ 1 & 2 \end{bmatrix} \), \( C = \begin{bmatrix} 1 & -1 \\ 2 & 0 \end{bmatrix} \): AB = \( \begin{bmatrix} 5 & 4 \\ 1 & 2 \end{bmatrix} \) and BC = \( \begin{bmatrix} 3 & -3 \\ 5 & -1 \end{bmatrix} \); both routes give \( \begin{bmatrix} 13 & -5 \\ 5 & -1 \end{bmatrix} \).
Algebra with matrices
For a square matrix, \( A^2 = AA \), \( A^3 = AAA \), and so on. Old formulas need care:
\[ (A + B)^2 = A^2 + AB + BA + B^2, \]
which equals \( A^2 + 2AB + B^2 \) only if AB = BA. With the A and B from the first trap, \( (A + B)^2 = \begin{bmatrix} 5 & 4 \\ 4 & 5 \end{bmatrix} \) but \( A^2 + 2AB + B^2 = \begin{bmatrix} 6 & 4 \\ 4 & 4 \end{bmatrix} \).
Worked example: a matrix polynomial
Show that \( A = \begin{bmatrix} 2 & 1 \\ 1 & 3 \end{bmatrix} \) satisfies \( A^2 - 5A + 5I = O \).
- \( A^2 = \begin{bmatrix} 4 + 1 & 2 + 3 \\ 2 + 3 & 1 + 9 \end{bmatrix} = \begin{bmatrix} 5 & 5 \\ 5 & 10 \end{bmatrix} \).
- \( 5A = \begin{bmatrix} 10 & 5 \\ 5 & 15 \end{bmatrix} \) and \( 5I = \begin{bmatrix} 5 & 0 \\ 0 & 5 \end{bmatrix} \).
- \( A^2 - 5A + 5I = \begin{bmatrix} 5 - 10 + 5 & 5 - 5 + 0 \\ 5 - 5 + 0 & 10 - 15 + 5 \end{bmatrix} = O \).
The constant term is written 5I, not 5: you can only add matrices to matrices.
Not in the current textbook, but JEE asks it: a square matrix is idempotent if \( A^2 = A \), involutory if \( A^2 = I \), and nilpotent if \( A^k = O \) for some k (like N above). JEE also likes power patterns: for \( A = \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix} \), \( A^n = \begin{bmatrix} 1 & n \\ 0 & 1 \end{bmatrix} \), which you can prove by induction. And trace(AB) = trace(BA) even when AB ≠ BA.
Don't mix these up
- AB ≠ BA in general; order matters. "Pre-multiply by A" means A on the left, "post-multiply" means A on the right.
- AB = O does not mean A = O or B = O.
- AB = AC does not give B = C.
- \( (A + B)^2 = A^2 + 2AB + B^2 \) only when A and B commute.
- Commute
- A and B commute if AB = BA.
- Non-commutative
- Order of multiplication can change the answer.
- Associative law
- (AB)C = A(BC): grouping doesn't matter.
- Distributive law
- A(B + C) = AB + AC and (A + B)C = AC + BC.
- Multiplicative identity
- I, since IA = AI = A.
- Idempotent / nilpotent
- \( A^2 = A \) / some power of A is O.
Words to know
A and B are non-zero 2 × 2 matrices with AB = O. What must be true?
- One of them is really O
- BA = O as well
- None of these need hold; it can happen with both non-zero
If \( A^2 = A \), what is \( (I + A)^2 \)?
- I + A
- I + 3A
- I + 2A
Which pair is guaranteed to commute?
- Any two 2 × 2 matrices
- Any two non-zero matrices
- Two 3 × 3 diagonal matrices
Picture and video credits