Free Mathematics Class 12 CBSE notes · practise this chapter with an AI quiz

← All study notes

Why A Times B Is Not Always B Times A for Matrices

Multiply conformable matrices and use their associative and distributive laws, see why AB and BA differ and how two non-zero matrices can multiply to zero, apply transpose rules, and split any square matrix into symmetric and skew symmetric parts.

What changes when matrices are multiplied instead of added?

Adding matrices works entry by entry, but multiplying them combines rows of one matrix with columns of the other. That one change makes the order matter.

This part covers matrix multiplication, why it is not commutative, the transpose, and symmetric and skew symmetric matrices with the uniqueness of the inverse.

How do you multiply two matrices, and which properties does matrix multiplication follow?

A product ABAB exists only when the number of columns of AA equals the number of rows of BB, and each entry of ABAB is a row of AA multiplied entry by entry with a column of BB and added; matrix multiplication is associative and distributive over addition.

The rule.
If AA is m×nm \times n and BB is n×pn \times p, then ABAB is m×pm \times p, with

cik=ai1b1k+ai2b2k+⋯+ainbnkc_{ik} = a_{i1}b_{1k} + a_{i2}b_{2k} + \cdots + a_{in}b_{nk}

Worked example. Let A=[1234]A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} and B=[2015]B = \begin{bmatrix} 2 & 0 \\ 1 & 5 \end{bmatrix}.

AB=[4101020]AB = \begin{bmatrix} 4 & 10 \\ 10 & 20 \end{bmatrix}

For instance, row 1 with column 2 gives 1⋅0+2⋅5=101 \cdot 0 + 2 \cdot 5 = 10.

Properties, whenever the products are defined:

- Associative — (AB)C=A(BC)(AB)C = A(BC)
- Distributive — A(B+C)=AB+ACA(B + C) = AB + AC and (A+B)C=AC+BC(A + B)C = AC + BC

An everyday example. A canteen's order matrix of idli and dosa plates for each class, multiplied by a price column, gives every class's bill in one step.

The substance. A 2×32 \times 3 matrix can multiply a 3×43 \times 4 matrix, but not the other way round — whether a product exists depends on the order.

Why is matrix multiplication not commutative, and how can two non-zero matrices multiply to zero?

In general AB≠BAAB \ne BA, even when both products exist, and two non-zero matrices can have a zero product — so neither the commutative law nor the rule that a zero product needs a zero factor holds for matrices.

Worked example — order matters.
With the same AA and BB:

BA=[2015][1234]=[241622]≠ABBA = \begin{bmatrix} 2 & 0 \\ 1 & 5 \end{bmatrix}\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = \begin{bmatrix} 2 & 4 \\ 16 & 22 \end{bmatrix} \ne AB

Worked example — a zero product.

[0100][1000]=[0000]\begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}\begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}

Consequences:

- (A+B)2=A2+AB+BA+B2(A + B)^2 = A^2 + AB + BA + B^2, which equals A2+2AB+B2A^2 + 2AB + B^2 only if AB=BAAB = BA
- From AB=ACAB = AC you cannot cancel AA to conclude B=CB = C in general

An everyday example. Putting on socks and then shoes is not the same as shoes and then socks — as with matrices, the order of the steps changes the result.

The substance. Some pairs do commute — every square matrix commutes with II and with itself.

What is the transpose of a matrix, and how do you use the rules for the transpose of a sum, a multiple and a product?

The transpose A′A' turns the rows of AA into columns, so an m×nm \times n matrix becomes n×mn \times m, and transposes obey (A′)′=A(A')' = A, (A+B)′=A′+B′(A + B)' = A' + B', (kA)′=kA′(kA)' = kA' and the reversal rule (AB)′=B′A′(AB)' = B'A'.

Definition.
If A=[aij]m×nA = [a_{ij}]_{m \times n}, then A′=[aji]n×mA' = [a_{ji}]_{n \times m}.

Worked example — verify the reversal rule. From before, AB=[4101020]AB = \begin{bmatrix} 4 & 10 \\ 10 & 20 \end{bmatrix}, so (AB)′=[4101020](AB)' = \begin{bmatrix} 4 & 10 \\ 10 & 20 \end{bmatrix}. Now

B′A′=[2105][1324]=[4101020]=(AB)′B'A' = \begin{bmatrix} 2 & 1 \\ 0 & 5 \end{bmatrix}\begin{bmatrix} 1 & 3 \\ 2 & 4 \end{bmatrix} = \begin{bmatrix} 4 & 10 \\ 10 & 20 \end{bmatrix} = (AB)'

In the other order, A′B′=[216422]A'B' = \begin{bmatrix} 2 & 16 \\ 4 & 22 \end{bmatrix}, which is why the order must reverse.

An everyday example. Turning a marks register sideways, so subjects become rows and students become columns, is exactly taking a transpose — the data stay the same, only the layout flips.

The substance. The reversal rule extends to longer products: (ABC)′=C′B′A′(ABC)' = C'B'A'.

How do you identify symmetric and skew symmetric matrices, split any square matrix into both, and prove the inverse is unique?

A square matrix is symmetric if A′=AA' = A and skew symmetric if A′=−AA' = -A; every square matrix equals 12(A+A′)+12(A−A′)\frac{1}{2}(A + A') + \frac{1}{2}(A - A'), a symmetric plus a skew symmetric matrix, and an invertible matrix has exactly one inverse.

Identifying them:

-
Symmetric
— aij=ajia_{ij} = a_{ji}; entries mirrored across the main diagonal are equal
- Skew symmetric — aij=−ajia_{ij} = -a_{ji}; in particular aii=−aiia_{ii} = -a_{ii}, so every diagonal entry is 00

Worked example — the split.
Let A=[351−2]A = \begin{bmatrix} 3 & 5 \\ 1 & -2 \end{bmatrix}, so A′=[315−2]A' = \begin{bmatrix} 3 & 1 \\ 5 & -2 \end{bmatrix}.

P=12(A+A′)=[333−2]Q=12(A−A′)=[02−20]P = \frac{1}{2}(A + A') = \begin{bmatrix} 3 & 3 \\ 3 & -2 \end{bmatrix} \qquad Q = \frac{1}{2}(A - A') = \begin{bmatrix} 0 & 2 \\ -2 & 0 \end{bmatrix}

PP is symmetric, QQ is skew symmetric, and P+Q=AP + Q = A.

Uniqueness of the inverse. If BB and CC are both inverses of AA, then AB=BA=IAB = BA = I and AC=CA=IAC = CA = I, so

B=BI=B(AC)=(BA)C=IC=CB = BI = B(AC) = (BA)C = IC = C

An everyday example. A road distance chart between cities, where Pune to Nagpur equals Nagpur to Pune, is a symmetric matrix with zeros on its diagonal.

The substance. The zero matrix is the only matrix that is both symmetric and skew symmetric, since A′=AA' = A and A′=−AA' = -A together force A=−AA = -A.
Exam tip

What earns full marks on matrix multiplication and transpose?

Write the orders of both matrices before multiplying, and show one row-by-column calculation in full so the method earns marks even if arithmetic slips.

- Product: m×nm \times n times n×pn \times p gives m×pm \times p
- Laws: associative and distributive hold; commutative does not
- Transpose: (A′)′=A(A')' = A, (A+B)′=A′+B′(A + B)' = A' + B', (kA)′=kA′(kA)' = kA', (AB)′=B′A′(AB)' = B'A'
- Symmetric: A′=AA' = A; skew symmetric: A′=−AA' = -A, with zero diagonal
- Split: A=12(A+A′)+12(A−A′)A = \frac{1}{2}(A + A') + \frac{1}{2}(A - A')

The trap. Writing (AB)′=A′B′(AB)' = A'B'. The order reverses: (AB)′=B′A′(AB)' = B'A'.
Did you know

How do computer games rotate a character on the screen?

Every point of a character in a 2D game can be stored as a column matrix [xy]\begin{bmatrix} x \\ y \end{bmatrix}. Multiplying it by a rotation matrix turns the point about the origin.

Rotating and then shifting a character gives a different picture from shifting first and rotating afterwards — the non-commutativity of matrix multiplication, visible on screen.

Graphics software multiplies all the step matrices together once and applies that single product to every point, relying on the associative law from this lesson.
Exam relevance

How are matrix multiplication, transpose and symmetric matrices tested in JEE Main?

Matrices is part of the JEE Main unit Matrices and Determinants, and products, transposes and special matrices come up again and again.

What gets asked. Products and powers such as A2A^2 or AnA^n for patterned matrices, conditions for AB=BAAB = BA, using (AB)′=B′A′(AB)' = B'A', deciding whether expressions like A′AA'A or A−A′A - A' are symmetric or skew symmetric, and properties of the inverse. These combine with determinants and adjoints in the next chapter.

Question types. Multiple-choice questions on properties, and numerical-value questions on entries of products or powers.

The trap that costs marks. Expanding (A+B)2(A + B)^2 as A2+2AB+B2A^2 + 2AB + B^2 without checking that AA and BB commute.
Key takeaways

What must you be able to do from this part?

- Multiplication: rows of AA with columns of BB; m×nm \times n times n×pn \times p is m×pm \times p; associative and distributive
- Non-commutativity: AB≠BAAB \ne BA in general; non-zero matrices can multiply to OO
- Transpose: rows become columns; (AB)′=B′A′(AB)' = B'A'
- Symmetric and skew symmetric: A′=AA' = A or A′=−AA' = -A; every square matrix is 12(A+A′)+12(A−A′)\frac{1}{2}(A + A') + \frac{1}{2}(A - A'); an inverse, when it exists, is unique

Find A2A^2 for A=[1101]A = \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}, then guess A5A^5 and check your guess with one more multiplication.

Ready to put this into practice?

Create a personalized quiz on this exact topic — free to start.

Create your own quiz on Matrices — Part 2Create a free account
← Back to all articles