Q.Find AB, if A=[6293] and B=[276908].
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 — the number of columns in A must equal the number of rows in B. Here A is 2×2 and B is 2×3, so AB is defined and will be 2×3.
Step 1: Compute the first row of AB by multiplying row 1 of A with each column of B:
- Column 1: (6)(2)+(9)(7)=12+63=75
- Column 2: (6)(6)+(9)(9)=36+81=117
- Column 3: (6)(0)+(9)(8)=0+72=72
Step 2: Compute the second row using row 2 of A:
- Column 1: (2)(2)+(3)(7)=4+21=25
- Column 2: (2)(6)+(3)(9)=12+27=39
- Column 3: (2)(0)+(3)(8)=0+24=24
Step 3: Assemble the resulting 2×3 matrix.
AB=[7525117397224]
Matrix multiplication AB is defined only when the number of columns in A equals the number of rows in B. Here A is 2×2 and B is 2×3, so AB exists and is a 2×3 matrix. The product is [7525117397224].
The key idea: matrix multiplication is row‑by‑column dot products. Each entry (i,j) of AB is the dot product of row i of A with column j of B. This only works if the row length of A (its number of columns) matches the column height of B (its number of rows). Here both are 2, so we are good.
Let’s walk through it step by step.
-
Check compatibility
A has shape 2×2 (2 rows, 2 columns). B has shape 2×3 (2 rows, 3 columns).
The inner dimensions (the 2’s) match, so AB is defined and will be 2×3 (outer dimensions: rows of A, columns of B).
-
Set up the product matrix
We will compute three columns, each with two entries. Label the result as C=AB, where
C=[c11c21c12c22c13c23].
- First column of C (use column 1 of B)
- c11 = row 1 of A dot column 1 of B:
(6)(2)+(9)(7)=12+63=75.
- c21 = row 2 of A dot column 1 of B:
(2)(2)+(3)(7)=4+21=25.
- Second column of C (use column 2 of B)
- c12 = row 1 of A dot column 2 of B:
(6)(6)+(9)(9)=36+81=117.
- c22 = row 2 of A dot column 2 of B:
(2)(6)+(3)(9)=12+27=39.
- Third column of C (use column 3 of B)
- c13 = row 1 of A dot column 3 of B:
(6)(0)+(9)(8)=0+72=72.
- c23 = row 2 of A dot column 3 of B:
(2)(0)+(3)(8)=0+24=24.
- Assemble the result Putting all entries together:
AB=[7525117397224].
A common mistake is to multiply element‑wise (like aij⋅bij). That is not matrix multiplication — it is the Hadamard product, which requires same‑shaped matrices and is rarely what exam questions ask for. Always do row‑times‑column.
Notice that row 2 of A is exactly 31 of row 1. So every entry in the second row of AB will be 31 of the corresponding entry in the first row. Check: 75/3=25, 117/3=39, 72/3=24. This is a quick sanity check.
The product is [7525117397224].
Method: Multiplying two matrices (row-by-column)
Use this for any product AB once you have confirmed it is defined.
Steps
Step 1: Check compatibility and the result's order.
AB exists iff columns of A = rows of B; the product is (rows of A) × (columns of B).
Step 2: Compute each entry as a dot product.
The (i,j) entry of AB is row i of A dotted with column j of B: multiply matching terms and add.
Step 3: Assemble all entries into the product matrix.
Work column by column (or row by row) so no position is missed.
Common Mistakes
Mistake 1: Multiplying entry-by-entry (Hadamard) instead of row-by-column.
Why it's wrong: matrix multiplication is a sum of products of a row and a column, not aij⋅bij. Correct approach: dot each row of A with each column of B.
Mistake 2: Pairing a row of A with a row (not a column) of B.
Why it's wrong: the second factor must be read down its columns. Correct approach: hold a row of A fixed and run down the columns of B.
Mistake 3: Getting the result's order wrong.
Why it's wrong: here A is 2×2 and B is 2×3, so AB is 2×3, not 2×2. Correct approach: outer dimensions give the order.
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.