Q.If A=[2134−12] and B=242351, then AB and BA are defined and equal.
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-day free trial to unlock the full solution →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 | …
Concept: Matrix Multiplication Compatibility — for AB to be defined, the number of columns in A must equal the number of rows in B; the product AB and BA are generally not equal even when both are defined.
Step 1: Check dimensions. A is 2×3, B is 3×2. So AB is 2×2, and BA is 3×3. Both products are defined, but they are not the same size — hence they cannot be equal.
Step 2: Compute AB:
AB=[2134−12]242351=[2(2)+3(4)+(−1)(2)1(2)+4(4)+2(2)2(3)+3(5)+(−1)(1)1(3)+4(5)+2(1)]=[14222025]
Step 3: Compute BA: …
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 2×3 and B is 3×2, so both AB (2×2) and BA (3×3) are defined — but they are not equal because their dimensions differ.
Why this question is a trap
Many students see that both products are defined and assume they must be equal. That’s a natural guess — but matrix multiplication is not commutative. Even when both products exist, they rarely give the same result. Here, the dimensions alone tell you they can’t be equal: AB is a 2×2 matrix, while BA is 3×3. Two matrices of different sizes cannot be equal.
Let’s work through the multiplication to confirm.
Step-by-step computation
1. Check compatibility for AB
A is 2×3 (2 rows, 3 columns). B is 3×2 (3 rows, 2 columns). The inner dimensions match (3 = 3), so AB is defined and will be 2×2.
2. Compute AB
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: [2,3,−1]
-
Row 2 of A: [1,4,2]
-
Column 1 of B: 242
-
Column 2 of B: 351
Now:
(AB)11=2⋅2+3⋅4+(−1)⋅2=4+12−2=14
(AB)12=2⋅3+3⋅5+(−1)⋅1=6+15−1=20
(AB)21=1⋅2+4⋅4+2⋅2=2+16+4=22
(AB)22=1⋅3+4⋅5+2⋅1=3+20+2=25
So
AB=[14222025]
3. Check compatibility for BA
B is 3×2, A is 2×3. Inner dimensions match (2 = 2), so BA is defined and will be 3×3.
4. Compute BA
Row i of B with column j of A.
Rows of B:
Row 1: [2,3]
Row 2: [4,5]
Row 3: [2,1]
Columns of A:
Col 1: [21], Col 2: [34], Col 3: [−12]
Now:
(BA)11=2⋅2+3⋅1=4+3=7
(BA)12=2⋅3+3⋅4=6+12=18
(BA)13=2⋅(−1)+3⋅2=−2+6=4
(BA)21=4⋅2+5⋅1=8+5=13 …
Method: Deciding Whether AB and BA Can Be Equal (Shape-First)
Use this for any claim that two products of the same two matrices are equal. Check orders before computing anything — mismatched sizes settle it instantly.
Steps
Step 1: Write the orders and the product shapes.
For A of order m×n and B of order n×m, AB is m×m and BA is n×n. Both are defined, but they are equal-sized only if m=n.
Step 2: If the sizes differ, stop — they cannot be equal. …
Common Mistakes
Mistake 1: Assuming that because both AB and BA exist, they are equal.
Why it's wrong: for a 2×3 and a 3×2 matrix, AB is 2×2 while BA is 3×3 — different orders, so never equal. Correct approach: compare orders first.
Mistake 2: Rushing into multiplication before checking shapes.
Why it's wrong: the size mismatch already answers the question and saves all the arithmetic. Correct approach: read off the product orders before computing entries. …
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. …
- 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. …
- 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
$$= A^2 + AB + BA + B^2$$ … - 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.
…
- 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 …
- 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
…
- 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
…
- 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. …
- 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 …
- 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 …
- 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: …
- 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]. …
🎓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.