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

← All study notes

Why AB and BA Are Usually Different Matrices

Multiply matrices after checking their orders and see why the product is not commutative, find non-zero matrices whose product is zero, and tell singular from non-singular matrices while proving that an inverse is unique.

How is multiplying matrices different from multiplying numbers?

Numbers can be multiplied in any order, and a product is zero only when a factor is zero. Matrices break both rules. Understanding why — and when a matrix can be undone by an inverse — is the key to solving equations with matrices.

This part covers matrix multiplication and non-commutativity, zero products of non-zero matrices, and singular matrices with the uniqueness of the inverse.

How do you multiply two matrices, and why is matrix multiplication not commutative?

**The product AB exists only when the number of columns of A equals the number of rows of B; an matrix times an matrix is an matrix whose entries are row-by-column sums of products, and in general .

Rule.** .

Worked example. Let and .



So : multiplying by B on the right swaps the columns of A, while multiplying on the left swaps its rows.

Orders can block a product. If A is and B is , then AB is , but BA does not exist.

Properties that do hold: , and .

An everyday example. **Two customers buying rice and dal in amounts kg, at prices rupees per kg,** get the bills — each row of quantities multiplied by the column of prices.

The substance. Non-commutativity changes familiar algebra, which equals only when .

Can two non-zero matrices multiply to give the zero matrix?

**Yes — unlike numbers, two non-zero matrices can have the zero matrix as their product, so does not force or .

Worked example.** Let and .



Neither A nor B is the zero matrix.

Worked example 2. satisfies , even though .

Consequences:

- The cancellation law fails: does not imply unless A has an inverse
- An equation such as can have non-zero solutions

An everyday example. A stock-sold matrix and a matrix of price changes that exactly cancel across items can multiply to the zero matrix — a total revenue change of zero — even though neither matrix is zero.

The substance. This happens only with singular matrices — as the next section shows, a matrix with an inverse can always be cancelled.

How do you tell whether a square matrix is singular, and why is the inverse of a matrix unique?

**A square matrix A is singular when and non-singular when ; only a non-singular matrix has an inverse, a matrix B with , and that inverse is unique.

Singular or not.** For , .

- has determinant , so it is singular
- has determinant , so it is non-singular

Worked example. For , the inverse is . Check:



Proof of uniqueness. Suppose B and C are both inverses of A. Then



so the two inverses are the same matrix.

An everyday example. A matrix used to scramble a message must be non-singular, or the receiver has no way to decode it.

The substance. The rows of a singular matrix are dependent — in the second row is twice the first, which is why no inverse exists.
Exam tip

What earns full marks on matrix multiplication and inverses?

**Write the orders beneath each matrix, such as , before multiplying — it proves the product exists and gives the order of the answer.**

- Columns of A must equal rows of B for AB to exist
- in general
- is possible with and
- An inverse exists only when , and it is unique

The trap. Cancelling A from to conclude . This is valid only when A is non-singular.
Did you know

How do matrices help send secret messages?

Letters can be turned into numbers — A as 1, B as 2 and so on — and grouped into small columns. Multiplying each column by a fixed non-singular matrix scrambles the message.

The receiver multiplies by the inverse matrix to recover the original numbers. Because the inverse is unique, the decoded message is exactly the one that was sent.

If the scrambling matrix were singular, different messages could turn into the same code, and no one could reliably decode it.
Exam relevance

How are matrix multiplication and singular matrices tested in JEE Main?

Matrices and Determinants are recurring JEE Main chapters, and their questions are frequently combined.

What gets asked. Powers of a matrix such as found from a pattern, **conditions for , non-zero matrices with zero products or , and whether a matrix is singular.

Question types. Multiple-choice and numerical-value questions, often asking for a trace or a single entry.

The trap that costs marks. Expanding as ** without checking whether A and B commute.
Key takeaways

What must you be able to do from this part?

- Multiplication: columns of A must match rows of B; an times an matrix is , and in general
- Zero products: non-zero matrices can multiply to O, so cancellation can fail
- Singular matrices and inverses: means no inverse; a non-singular matrix has exactly one inverse

For , what is ?

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