Q.If A=[1−4−2235] and B=242351, then find AB, BA. Show that AB=BA.
Concept understanding — Matrix Multiplication Compatibility
Matrix Multiplication Compatibility: The Inner-Dimensions Rule
You cannot multiply just any two matrices. Multiplication is defined only when their sizes line up in a specific way, and this compatibility check is always the very first step of any product.
The Idea: A Row Meets a Column
When you multiply A by B, you take each row of A and pair it against each column of B, multiply corresponding entries, and add. For that pairing to work, a row of A must have exactly as many entries as a column of B.
Think of a handshake: each finger of one hand must meet a finger of the other. If one hand has 4 fingers and the other has 3, the handshake fails.
The Precise Statement
Let A be m×n and B be p×q.
A×B is defined if and only if n=p — the number of columns of A equals the number of rows of B. The product C=AB then has order m×q.
Writing the sizes side by side, (m×n)(p×q), the inner numbers (n,p) must match; the outer numbers (m,q) give the result's shape.
Why the Rule Exists
Each entry of the product is
cij=∑k=1naikbkj.
Here k runs over the columns of A (up to n) and the rows of B (up to p). If n=p, the sum runs out of matching terms and is meaningless — that is exactly why compatibility demands n=p.
Even when both AB and BA are defined, they usually differ. For A of order 2×3 and B of order 3×2, AB is 2×2 but BA is 3×3 — different sizes entirely. Matrix multiplication is not commutative.
Quick Check
| A | B | Defined? | Result |
|---|---|---|---|
| 2×3 | 3×4 | Yes | 2×4 |
| 2×3 | 2×4 | No | — |
| 1×4 | 4×1 | Yes | 1×1 |
Before multiplying, write both orders side by side and circle the inner numbers. If they are equal, multiply; if not, stop — the product does not exist.
Matrix Multiplication Compatibility — the rule that the number of columns of the first matrix must equal the number of rows of the second — is one of the first checks taught in the CBSE Class 12 Matrices chapter, and "matrix multiplication rules class 12" is a common search among students preparing for board exams and JEE Main. NCERT's own solved examples emphasize checking this condition before attempting any product.
Concept: Matrix Multiplication Compatibility — two matrices can be multiplied only when the number of columns in the first equals the number of rows in the second. The product AB is defined if A is 2×3 and B is 3×2; BA is also defined since B is 3×2 and A is 2×3, but the results are different sizes.
Step 1 — Compute AB:
A is 2×3, B is 3×2, so AB is 2×2.
AB=[1(2)+(−2)(4)+3(2)−4(2)+2(4)+5(2)1(3)+(−2)(5)+3(1)−4(3)+2(5)+5(1)]
=[2−8+6−8+8+103−10+3−12+10+5]=[010−43].
Step 2 — Compute BA:
B is 3×2, A is 2×3, so BA is 3×3.
BA=2(1)+3(−4)4(1)+5(−4)2(1)+1(−4)2(−2)+3(2)4(−2)+5(2)2(−2)+1(2)2(3)+3(5)4(3)+5(5)2(3)+1(5)
=2−124−202−4−4+6−8+10−4+26+1512+256+5=−10−16−222−2213711.
Step 3 — Compare:
AB is 2×2, BA is 3×3 — they are not even the same size, so AB=BA.
AB=[010−43], BA=−10−16−222−2213711, and AB=BA because the products have different orders.
Matrix multiplication is not commutative — the product AB exists when the column count of A matches the row count of B, but BA may not even be defined, or if it is, the two products are different matrices. Here AB is 2×2 and BA is 3×3, so they cannot be equal.
We start with the core idea: two matrices can be multiplied only when the number of columns in the first equals the number of rows in the second. This is the compatibility condition. For A and B given, A is 2×3 (2 rows, 3 columns) and B is 3×2 (3 rows, 2 columns). So AB is defined and will be 2×2. Similarly, BA is also defined (since B has 2 columns and A has 2 rows) and will be 3×3. Two matrices of different sizes can never be equal, so AB=BA is immediate. But let’s compute both to see the actual numbers.
-
Compute AB
A is 2×3, B is 3×2. The product AB will be 2×2.
The entry in row i, column j of AB is the dot product of row i of A with column j of B.
-
Row 1 of A: [1,−2,3]
Column 1 of B: 242
(AB)11=1⋅2+(−2)⋅4+3⋅2=2−8+6=0
-
Row 1 of A with column 2 of B: 351
(AB)12=1⋅3+(−2)⋅5+3⋅1=3−10+3=−4
-
Row 2 of A: [−4,2,5]
With column 1: (−4)⋅2+2⋅4+5⋅2=−8+8+10=10
-
Row 2 with column 2: (−4)⋅3+2⋅5+5⋅1=−12+10+5=3
So
-
AB=[010−43]
-
Compute BA
B is 3×2, A is 2×3, so BA is 3×3.
Each entry is the dot product of a row of B with a column of A.
Rows of B:
Row 1: [2,3]
Row 2: [4,5]
Row 3: [2,1]
Columns of A:
Col 1: [1−4], Col 2: [−22], Col 3: [35]
Compute systematically:
-
(BA)11: row 1 of B with col 1 of A: 2⋅1+3⋅(−4)=2−12=−10
-
(BA)12: row 1 with col 2: 2⋅(−2)+3⋅2=−4+6=2
-
(BA)13: row 1 with col 3: 2⋅3+3⋅5=6+15=21
-
(BA)21: row 2 with col 1: 4⋅1+5⋅(−4)=4−20=−16
-
(BA)22: row 2 with col 2: 4⋅(−2)+5⋅2=−8+10=2
-
(BA)23: row 2 with col 3: 4⋅3+5⋅5=12+25=37
-
(BA)31: row 3 with col 1: 2⋅1+1⋅(−4)=2−4=−2
-
(BA)32: row 3 with col 2: 2⋅(−2)+1⋅2=−4+2=−2
-
(BA)33: row 3 with col 3: 2⋅3+1⋅5=6+5=11
So
-
BA=−10−16−222−2213711
- Compare AB and BA AB is 2×2, BA is 3×3. They don’t even have the same shape, so they cannot be equal. Even if we ignore size, the entries are completely different. This illustrates a fundamental fact: matrix multiplication is not commutative — in general, AB=BA, and often one product may not even be defined when the other is.
A common mistake is to assume AB=BA because multiplication of numbers is commutative. Matrices are different: the order matters, and the dimensions must align. Always check compatibility first.
When A is m×n and B is n×m, both AB (m×m) and BA (n×n) exist, but unless m=n, they can't be equal because their sizes differ. Here m=2, n=3, so AB is 2×2 and BA is 3×3 — immediate proof of inequality.
AB=[010−43], BA=−10−16−222−2213711, and since they are of different orders, AB=BA.
Method: Comparing AB and BA for non-commutativity
Use this when asked to compute both AB and BA and show they are unequal.
Steps
Step 1: Determine the order of each product first.
For Am×n and Bn×m, AB is m×m and BA is n×n. If m=n the products already differ in size, which alone proves AB=BA.
Step 2: Compute each product by the row-by-column rule.
Even when both are defined, evaluate them fully to display the actual entries.
Step 3: Compare and conclude.
Different orders (or different entries) confirm matrix multiplication is not commutative.
Common Mistakes
Mistake 1: Assuming AB=BA as with numbers.
Why it's wrong: matrix multiplication is generally non-commutative; here AB is 2×2 while BA is 3×3. Correct approach: compute both and compare orders/entries.
Mistake 2: Believing both products must have the same order.
Why it's wrong: A2×3B3×2 gives 2×2, but B3×2A2×3 gives 3×3. Correct approach: read the outer dimensions for each order separately.
Mistake 3: Sign errors accumulating in the dot products.
Why it's wrong: entries like 1(2)+(−2)(4)+3(2) need careful sign tracking. Correct approach: write each term with its sign before summing.
Showing the 12 most recent of 39 on this concept.
- CBSE 2025Set 65/1/11 markMCQQ.Let A=10−3−242−1−11, B=−2−5−7, C=[9 8 7], which of the following is defined ? (A) Only AB (B) Only AC (C) Only BA (D) All AB, AC and BA
›Reveal solutionSolution
Matrix multiplication is defined only when the number of columns in the first matrix equals the number of rows in the second. Here, A is 3×3, B is 3×1, and C is 1×3. So AB (3×3 times 3×1) is defined, AC (3×3 times 1×3) is defined, but BA (3×1 times 3×3) is not defined. The correct option is (B) Only AC.
The key idea is simple: you can multiply two matrices only if the inner dimensions match. That is, if the first matrix has size m×n and the second has size p×q, the product is defined iff n=p. The resulting matrix then has size m×q.
Let’s check each product one by one.
1. Check AB
A is 3×3 (3 rows, 3 columns).
B is 3×1 (3 rows, 1 column).
The inner dimensions: 3 (columns of A) and 3 (rows of B) are equal. So AB is defined. The result will be a 3×1 matrix.
2. Check AC
A is 3×3.
C is 1×3 (1 row, 3 columns).
Inner dimensions: 3 (columns of A) and 1 (rows of C) — these are not equal. So AC is not defined.
Watch outA common mistake is to think that because C has 3 columns, it can multiply with A's 3 rows. But the rule is about columns of the first matching rows of the second, not the other way around. AC would require C to have 3 rows, but it has only 1.
3. Check BA
B is 3×1.
A is 3×3.
Inner dimensions: 1 (columns of B) and 3 (rows of A) — these are not equal. So BA is not defined.
TipNotice that BA would be 3×1 times 3×3 — the inner numbers (1 and 3) don’t match. But if you reversed the order to AB, they do match. Matrix multiplication is not commutative; order matters completely.
So among the three, only AB is defined. That matches option (A).
✓Final answerThe correct option is (A) Only AB.
- CBSE 20241 markMCQQ.If for two non-zero square matrices A and B of the same order, (A+B)2=A2+B2, then : (A) AB=O (B) AB=−BA (C) BA=O (D) AB=BA Questions number 19 and 20 are Assertion and Reason based questions. Two statements are given, one labelled Assertion (A) and the other labelled Reason (R). Select the correct answer to these questions from the codes (A), (B), (C) and (D) as given below. (A) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A). (B) Both Assertion (A) and Reason (R) are true, but Reason (R) is not the correct explanation of Assertion (A). (C) Assertion (A) is true, but Reason (R) is false. (D) Assertion (A) is false, but Reason (R) is true.
›Reveal solutionSolution
The given equation (A+B)2=A2+B2 forces the cross terms to cancel, which means AB=−BA. The correct option is (B).
Why This Works: The Core Idea
Matrix multiplication is not commutative — AB is generally not equal to BA. When you expand (A+B)2, you get A2+AB+BA+B2. The given condition says this equals A2+B2, so the middle terms AB+BA must vanish. That gives AB=−BA, a condition called anti-commutativity.
Watch outA common mistake is to assume AB=O (zero matrix) from AB+BA=O. But that’s only one possibility — the matrices could be non-zero and still satisfy AB=−BA. For example, take A=(0010) and B=(0100); then AB=(1000) and BA=(0001), so AB=−BA holds but neither product is zero.
Step-by-Step Reasoning
- Expand the square Since A and B are square matrices of the same order, we can multiply them. The distributive law holds for matrices, so:
(A+B)2=(A+B)(A+B)=A2+AB+BA+B2
- Apply the given condition The problem states:
(A+B)2=A2+B2
Substituting the expansion:
A2+AB+BA+B2=A2+B2
- Cancel the common terms Subtract A2+B2 from both sides:
AB+BA=O
where O is the zero matrix of the same order.
- Interpret the result The equation AB+BA=O is equivalent to:
AB=−BA
This is the definition of anti-commuting matrices. It does not force AB or BA to be zero individually — only that they are negatives of each other.
TipIf you multiply both sides of AB=−BA by A on the left, you get A2B=−ABA. Multiply by A on the right instead: ABA=−BA2. Combining these gives A2B=BA2, so A2 and B commute. This is a neat extra property that follows from anti-commutativity, but it’s not needed here.
- Match with the options
- (A) AB=O — not forced; only true in special cases.
- (B) AB=−BA — exactly what we derived.
- (C) BA=O — same as (A), not forced.
- (D) AB=BA — this would give 2AB=O, which forces AB=O, a much stricter condition.
ImportantThe condition AB=−BA is the only necessary and sufficient condition derived from (A+B)2=A2+B2 for any square matrices A and B of the same order. No further simplification is possible without additional assumptions.
✓Final answerThe correct option is (B) AB=−BA.
- CBSE 2026Set 65/2/11 markMCQQ.If A and B are square matrices of same order, then which of the following statements is/are always true?(i) (A+B)(A−B)=A2−B2(ii) AB=BA(iii) (A+B)2=A2+AB+BA+B2(iv) AB=0⇒A=0 or B=0 (A) Only(i) and(iii) (B) Only(ii) and(iii) (C) Only(iii) (D) Only(iii) and (iv)
›Reveal solutionSolution
Matrix multiplication is generally not commutative (AB=BA), which means many algebraic identities from scalar arithmetic do not hold for matrices. Only statement (iii) is always true, making (C) the correct option.
Concept and Intuition
When we work with numbers (scalars), we are used to properties like ab=ba (commutativity) and ab=0⇒a=0 or b=0. However, matrices behave differently. The most crucial distinction is that matrix multiplication is generally not commutative. This means that for two matrices A and B, AB is usually not equal to BA. This single property is the root cause for why many familiar algebraic identities, which rely on terms like AB and BA cancelling or combining, do not hold true for matrices.
Let's examine each statement with this fundamental understanding in mind.
Step-by-step Evaluation
- Evaluate statement (i): (A+B)(A−B)=A2−B2 To check if this is always true, we expand the left-hand side using the distributive property of matrix multiplication over addition, which does hold for matrices:
(A+B)(A−B)=A(A−B)+B(A−B)
=A⋅A−A⋅B+B⋅A−B⋅B
=A2−AB+BA−B2
For this expression to be equal to $A^2 - B^2$, we would need the terms $-AB + BA$ to be zero. This implies $BA = AB$. However, as discussed, matrix multiplication is generally not commutative, meaning $AB \neq BA$ in most cases. > [!WARNING] > This is a classic pitfall! The identity $(x+y)(x-y) = x^2 - y^2$ is true for scalars because $xy = yx$. For matrices, this is only true if $A$ and $B$ commute. Therefore, statement (i) is not always true.2. Evaluate statement (ii): AB=BA
This statement claims that matrix multiplication is always commutative. This is false. Matrix multiplication is generally not commutative. We can easily find counterexamples.
Consider:
A=(1011),B=(1101)
Then:AB=(1011)(1101)=(1⋅1+1⋅10⋅1+1⋅11⋅0+1⋅10⋅0+1⋅1)=(2111)
And:BA=(1101)(1011)=(1⋅1+0⋅01⋅1+1⋅01⋅1+0⋅11⋅1+1⋅1)=(1112)
Since $AB \neq BA$, statement (ii) is not always true.3. Evaluate statement (iii): (A+B)2=A2+AB+BA+B2
Let's expand the left-hand side:
(A+B)2=(A+B)(A+B)
Again, using the distributive property:=A(A+B)+B(A+B)
=A⋅A+A⋅B+B⋅A+B⋅B
=A2+AB+BA+B2
This expansion relies only on the distributive property and the definition of matrix multiplication, both of which are always true for matrices. Notice that we cannot combine $AB$ and $BA$ into $2AB$ because $AB \neq BA$ in general. Therefore, statement (iii) is always true.4. Evaluate statement (iv): AB=0⇒A=0 or B=0
This property holds for scalars: if the product of two numbers is zero, at least one of them must be zero. However, this is not always true for matrices. It is possible for the product of two non-zero matrices to be the zero matrix. Such matrices are called zero divisors.
Consider:
A=(1010),B=(1−100)
Neither $A$ nor $B$ is the zero matrix. Now, let's calculate their product:AB=(1010)(1−100)=(1⋅1+1⋅(−1)0⋅1+0⋅(−1)1⋅0+1⋅00⋅0+0⋅0)=(0000)
Here, $AB = 0$, but $A \neq 0$ and $B \neq 0$. Therefore, statement (iv) is not always true.Based on our analysis, only statement (iii) is always true.
✓Final answerOnly statement (iii) is always true, so the correct option is (C).
- CBSE 2026Set A1 markMCQQ.If A=[1 2 3 4] and B=1234 then AB=(a) [30](b) [10](c) [20](d) [40]
›Reveal solutionSolution
A 1×4 row times a 4×1 column is the dot product =30.
A=[1 2 3 4] is 1×4 and B=1234 is 4×1, so AB is 1×1:
AB=1(1)+2(2)+3(3)+4(4)=1+4+9+16=30.
✓Final answer(a) [30].
- CBSE 2026Set ANNUAL1 markQ.If A=[1−4−2235] and B=242351, then find AB.
›Reveal solutionSolution
Multiply the 2×3 matrix A by the 3×2 matrix B row-by-column.
AB11=1(2)+(−2)(4)+3(2)=2−8+6=0
AB12=1(3)+(−2)(5)+3(1)=3−10+3=−4
AB21=−4(2)+2(4)+5(2)=−8+8+10=10
AB22=−4(3)+2(5)+5(1)=−12+10+5=3
AB=[010−43]
✓Final answerAB=[010−43].
- CBSE 2026Set ANNUAL1 markMCQQ.If A=[2143] then A2=(a) [49161](b) [26122](c) [1691312](d) None of these
›Reveal solutionSolution
Multiply A by itself using row-by-column matrix multiplication; the result matches none of the printed options.
Given A=[2143].
A2=A⋅A=[2143][2143]
Entry (1,1): 2(2)+4(1)=4+4=8
Entry (1,2): 2(4)+4(3)=8+12=20
Entry (2,1): 1(2)+3(1)=2+3=5
Entry (2,2): 1(4)+3(3)=4+9=13
So A2=[852013]. This does not match option (a), (b), or (c).
✓Final answer(d) None of these — the correct value is A2=[852013].
- CBSE 2026Set ANNUAL1 markQ.Find AB, if A=[00−12] and B=[3050].
›Reveal solutionSolution
Multiply the two 2×2 matrices row-by-column; every entry of the product turns out to be 0.
Given A=[00−12] and B=[3050].
AB=[00−12][3050]
Entry (1,1): 0(3)+(−1)(0)=0
Entry (1,2): 0(5)+(−1)(0)=0
Entry (2,1): 0(3)+2(0)=0
Entry (2,2): 0(5)+2(0)=0
AB=[0000]
This is a useful reminder that for matrices, AB=O does not force A=O or B=O (unlike ordinary numbers).
✓Final answerAB=[0000] (the zero matrix)
- CBSE 2026Set ANNUAL1 markQ.If A=[1 2 5 7] and B=6248, write the orders of AB and BA.
›Reveal solutionSolution
A1×4B4×1→1×1; B4×1A1×4→4×4.
A=[1 2 5 7] has order 1×4. B=6248 has order 4×1.
-
AB: (1×4)(4×1) — inner dimensions (4) agree, result order 1×1.
-
BA: (4×1)(1×4) — inner dimensions (1) agree, result order 4×4.
✓Final answerOrder of AB=1×1; order of BA=4×4.
-
- CBSE 2025Set E1 markMCQQ.[56−17]⋅[2314]=(a) [7331134](b) [733134](c) [734133](d) [1639525]
›Reveal solutionSolution
Row-by-column multiplication gives [733134].
Multiply [56−17][2314] entry by entry:
- (1,1):5⋅2+(−1)⋅3=10−3=7
- (1,2):5⋅1+(−1)⋅4=5−4=1
- (2,1):6⋅2+7⋅3=12+21=33
- (2,2):6⋅1+7⋅4=6+28=34
=[733134].
✓Final answer(B) [733134].
- CBSE 2025Set E1 markMCQQ.[1324][1001]=(a) [1004](b) [1324](c) [1024](d) [1320]
›Reveal solutionSolution
AI=A, so the product is the original matrix.
The second matrix [1001] is the 2×2 identity I. For any matrix A, AI=A. Hence
[1324][1001]=[1324].
✓Final answer(B) [1324].
- CBSE 2025Set E1 markMCQQ.[65][−11]=(a) [−65](b) [−65](c) [−1](d) [1]
›Reveal solutionSolution
[6 5][−11]=6(−1)+5(1)=−1, a 1×1 matrix.
A 1×2 matrix times a 2×1 matrix gives a 1×1 matrix:
[65][−11]=6⋅(−1)+5⋅1=−6+5=−1=[−1].
✓Final answer(C) [−1].
- CBSE 2025Set E1 markMCQQ.[1324][4004]=(a) [40816](b) [5328](c) [412816](d) [481216]
›Reveal solutionSolution
[4004]=4I, so the product is 4[1324].
Since [4004]=4I,
[1324](4I)=4[1324]=[412816].
(Direct check: row 1 =[1⋅4+2⋅0, 1⋅0+2⋅4]=[4,8]; row 2 =[12,16].)
✓Final answer(C) [412816].
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.