PYQ Vault

CBSE Class 12 Maths · Matrices

Multiplication of Matrices

When the product AB is defined and what order it has, the row-by-column rule, the laws matrix multiplication obeys and the ones it breaks, powers and polynomials of a matrix, and matrices used in word problems.

Why this matters

91 questions, the largest page of the chapter, fifty-five of them from board papers in every year from 2023 to 2026. The board asks for the order of a matrix when a product with it is defined (every year), a product worked out (2023, 2025), a value of x that makes a product of matrices zero or equal to another (2024, 2025), an unknown matrix from a product (2025, 2026), which expansions such as the square of A + B hold for matrices (every year), a polynomial in A such as A squared minus 5A plus 4I worked out or shown to be the zero matrix (every year), powers of a matrix whose square is A, I or O (2023, 2024, 2026) and a sales problem done with matrices (2025). The textbook adds Exercise 3.2, its examples and most of the Miscellaneous Exercise.

Concept 1 of 6: When a product is defined, and its order

To multiply two matrices you run along a row of the first and down a column of the second, pairing the numbers. That only works if the row and the column have the same length: the number of columns of the first must equal the number of rows of the second. Write the two orders side by side: the inner numbers must match, and the outer numbers give the order of the product.

Definition

  • ABAB is defined only when the number of columns of AA = the number of rows of BB.
  • If AA is m×nm \times n and BB is n×pn \times p, then ABAB is m×pm \times p.
  • ABAB can be defined while BABA is not. When both are defined they can still have different orders: AA of order 2×32 \times 3 and BB of order 3×23 \times 2 give ABAB of order 2×22 \times 2 but BABA of order 3×33 \times 3.
  • The transpose of an m×nm \times n matrix is n×mn \times m (next page). Use this when a question puts a transpose in the product.
  • To find an unknown order: let it be p×qp \times q, write one condition for each product, and solve.

Order of a product

Am×n Bn×p=(AB)m×pA_{m \times n} \, B_{n \times p} = (AB)_{m \times p}
  • nnthe inner numbers, which must be equal
  • m×pm \times pthe outer numbers, the order of the product

Worked example

AA, BB and CC are matrices of orders 2×32 \times 3, 3×43 \times 4 and 4×24 \times 2. Which of ABAB, BABA, ABCABC and CACA are defined? Give the order of each one that is.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/5/2 · Q5Easy

Example 1 · Matrices · Multiplication of Matrices

The product of matrix P and Q is equal to a diagonal matrix. If the order of matrix Q is 3×23 \times 2, then order of matrix P is :

Matching the wrong pair of numbers

It is the COLUMNS of the first matrix that must equal the ROWS of the second: the two inner numbers when the orders are written side by side. The outer numbers give the order of the product.

Assuming BA is defined because AB is

A 2×32 \times 3 matrix times a 3×43 \times 4 matrix is defined, but the other way round is not. Test each product on its own.

Forgetting that a transpose swaps the order

If AA is m×nm \times n, then A′A' is n×mn \times m. In a question with A′BA'B or AB′AB', write the order of the transpose first, then match the inner numbers.

Concept 2 of 6: The row-by-column rule

Each element of AB comes from one row of A and one column of B: multiply the first number of the row by the first number of the column, the second by the second, and so on, and add. The row you use is the row of the answer; the column you use is the column of the answer. Work element by element and write each sum out, because one slip in a sign spoils the whole matrix.

Definition

  • If A=[aij]m×nA = [a_{ij}]_{m \times n} and B=[bjk]n×pB = [b_{jk}]_{n \times p}, the element in row ii, column kk of ABAB is cik=ai1b1k+ai2b2k+⋯+ainbnkc_{ik} = a_{i1}b_{1k} + a_{i2}b_{2k} + \dots + a_{in}b_{nk}.
  • A row matrix times a column matrix of the same length is a 1×11 \times 1 matrix: one number in brackets.
  • A column matrix times a row matrix is a full table: each element is a number of the column times a number of the row.
  • A product of three matrices: (AB)C=A(BC)(AB)C = A(BC), so multiply in whichever order keeps the working short.
  • An unknown matrix in a product (AX=BAX = B): find the order of XX first, write XX with letters, multiply, and equate elements. Check every equation: if one fails, no such matrix exists.

Element of a product

cik=∑j=1naij bjkc_{ik} = \sum_{j=1}^{n} a_{ij}\, b_{jk}
  • cikc_{ik}the element in row i and column k of AB
  • aija_{ij}elements of row i of A
  • bjkb_{jk}elements of column k of B

Worked example

If A=[1−2320−1]A = \begin{bmatrix} 1 & -2 & 3 \\ 2 & 0 & -1 \end{bmatrix} and B=[21−1014]B = \begin{bmatrix} 2 & 1 \\ -1 & 0 \\ 1 & 4 \end{bmatrix}, find ABAB.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2025 · 65/6/3 · Q26Moderate

Example 2 · Matrices · Multiplication of Matrices

Find the value of x, if [1x1][1322511532][12x]=O.\begin{bmatrix} 1 & x & 1 \end{bmatrix} \begin{bmatrix} 1 & 3 & 2 \\ 2 & 5 & 1 \\ 15 & 3 & 2 \end{bmatrix} \begin{bmatrix} 1 \\ 2 \\ x \end{bmatrix} = O.

Multiplying element by element

The element in row 1, column 1 of ABAB is NOT a11b11a_{11}b_{11}. It is the whole of row 1 of AA paired with the whole of column 1 of BB, and the products added.

Stopping before every equation is used

When you find an unknown matrix by comparing elements, put your values into every equation. A board 2025 question had a third equation that failed, so the right answer was that no such matrix exists.

Writing a number for a 1 by 1 product

A row times a column gives a 1×11 \times 1 matrix. Equating it to OO gives one equation in the unknown, which may be a quadratic with two roots: keep both unless the question rules one out.

Concept 3 of 6: Laws of multiplication: what holds and what fails

Matrix multiplication keeps some of the rules of ordinary numbers and loses others. Brackets can be moved (associative) and opened (distributive), and the identity matrix acts like 1. But AB and BA are usually different, and two non-zero matrices can multiply to the zero matrix. So any school identity that swaps a product, like the square of a sum, must be checked again for matrices.

Definition

  • 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. Identity: IA=AI=AIA = AI = A.
  • Not commutative: in general AB≠BAAB \neq BA. Some pairs do commute: diagonal matrices of the same order always do.
  • Zero product: AB=OAB = O does NOT mean A=OA = O or B=OB = O.
  • (A+B)2=A2+AB+BA+B2(A + B)^2 = A^2 + AB + BA + B^2 always. It becomes A2+2AB+B2A^2 + 2AB + B^2 only when AB=BAAB = BA.
  • (A+B)(A−B)=A2−AB+BA−B2(A + B)(A - B) = A^2 - AB + BA - B^2. It becomes A2−B2A^2 - B^2 only when AB=BAAB = BA.
  • So (A+B)2=A2+B2(A + B)^2 = A^2 + B^2 holds exactly when AB+BA=OAB + BA = O, that is AB=−BAAB = -BA.

Square of a sum of matrices

(A+B)2=A2+AB+BA+B2(A + B)^2 = A^2 + AB + BA + B^2

Worked example

If A=[1201]A = \begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix} and B=[1031]B = \begin{bmatrix} 1 & 0 \\ 3 & 1 \end{bmatrix}, show that AB≠BAAB \neq BA and that (A+B)2≠A2+2AB+B2(A + B)^2 \neq A^2 + 2AB + B^2.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2026 · 65/2/1 · Q2Moderate

Example 3 · Matrices · Multiplication of Matrices

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(A + B) (A - B) = A^2 - B^2 (ii) AB=BAAB = BA (iii) (A+B)2=A2+AB+BA+B2(A + B)^2 = A^2 + AB + BA + B^2 (iv) AB=0⇒A=0AB = 0 \Rightarrow A = 0 or B=0B = 0

Writing the square of a sum as A2+2AB+B2A^2 + 2AB + B^2

That needs AB=BAAB = BA, which is not given. Expand (A+B)(A+B)(A + B)(A + B) term by term and keep ABAB and BABA as two separate terms.

Combining AB with BA

ABAB and BABA are different matrices in general, so 7AB−BA7AB - BA cannot be shortened to 6AB6AB. Board 2025 offered exactly that wrong simplification.

Concluding A = O or B = O from AB = O

For matrices this is false. Do not cancel a matrix from both sides of an equation either: AB=ACAB = AC does not give B=CB = C.

Assertion-reason: a true Reason that does not explain

Board 2026 paired 'AB need not equal BA' with 'diagonal matrices of the same order commute'. Both are true, but the Reason is about a special case, so it does not explain the Assertion: code (B). In Mathematics, code (D) means the Assertion is false and the Reason is true.

Concept 4 of 6: Powers of A and polynomials in A

A² means A times A, and A³ means A² times A. A polynomial in A, like A squared minus 3A minus 4I, is worked out term by term: square the matrix, multiply A by its number, write the number term as that number times I, and combine element by element. The board asks you to work one out, to show one is the zero matrix, or to find the k that makes an equation true.

Definition

  • A2=AAA^2 = AA and A3=A2AA^3 = A^2A, for a square matrix AA. Squaring is NOT squaring each element (except for a diagonal matrix).
  • In a polynomial in AA, a number term cc is written cIcI, with II of the same order as AA.
  • Show that a polynomial is OO: find A2A^2 (and A3A^3 if needed); write each term as a matrix; combine element by element, one line for each; state that every element is 0.
  • Find k: write both sides as single matrices, equate elements, and check that every element gives the same kk.
  • A diagonal matrix is raised to a power element by element: diag(a,b)n=diag(an,bn)\text{diag}(a, b)^n = \text{diag}(a^n, b^n). So (kI)3=k3I(kI)^3 = k^3 I.

A quadratic in A

A2+pA+qI,A2=AA,A3=A2AA^2 + pA + qI, \qquad A^2 = AA, \quad A^3 = A^2A

Worked example

If A=[1232]A = \begin{bmatrix} 1 & 2 \\ 3 & 2 \end{bmatrix}, show that A2−3A−4I=OA^2 - 3A - 4I = O.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2025 · 65/7/1 · Q22Easy

Example 4 · Matrices · Multiplication of Matrices

If A=[23−12]A = \begin{bmatrix} 2 & 3 \\ -1 & 2 \end{bmatrix}, then show that A2−4A+7I=0A^2 - 4A + 7I = 0.

Squaring each element

A2A^2 is the product AAAA, found row by column. Squaring the elements works only for a diagonal matrix.

Adding a number to a matrix

In A2−3A−4A^2 - 3A - 4, the 4 means 4I4I: it changes only the diagonal elements. Subtracting 4 from every element is wrong.

Cubing is not multiplying by 3

A3A^3 is AAAAAA, not 3A3A. For A=kIA = kI, A3=k3IA^3 = k^3I: every diagonal element is cubed.

Finding k from one element only

Check that every element gives the same value. When two elements give different conditions (like x2=1x^2 = 1 and x+1=2x + 1 = 2), only the value that satisfies both is the answer.

Concept 5 of 6: Matrices whose square is A, I or O

Some matrices repeat when you square them. If A² = A, every power of A is A again; if A² = I, the powers go A, I, A, I; if A² = O, every power from the square onwards is the zero matrix. With these facts a long power or a long expansion collapses to one or two terms. Because I commutes with every matrix, a bracket like (I + A) can be expanded like an ordinary binomial.

Definition

  • If A2=AA^2 = A: A3=A2A=AA=AA^3 = A^2A = AA = A, and An=AA^n = A for every nn.
  • If A2=IA^2 = I: A3=AA^3 = A, A4=IA^4 = I, and so on.
  • If A2=OA^2 = O: every higher power is OO, so a series I−A+A2−…I - A + A^2 - \dots stops at I−AI - A.
  • IA=AI=AIA = AI = A, so (I+A)2=I+2A+A2(I + A)^2 = I + 2A + A^2 and (I+A)3=I+3A+3A2+A3(I + A)^3 = I + 3A + 3A^2 + A^3. Then replace the powers using the given relation.
  • A2=AA^2 = A does not mean A=IA = I or A=OA = O: [1000]\begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} is neither.

Powers when the square is A

A2=A  ⇒  An=A for all n≥1A^2 = A \;\Rightarrow\; A^n = A \text{ for all } n \geq 1

Worked example

A is a square matrix such that A2=AA^2 = A. Show that (2I+A)2−5A=4I(2I + A)^2 - 5A = 4I.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2026 · 65/5/1 · Q2Easy

Example 5 · Matrices · Multiplication of Matrices

If A is a square matrix such that A2=AA^2 = A, then (A−I)3−A(A - I)^3 - A is equal to :

Expanding a bracket of two general matrices like a binomial

(I+A)3=I+3A+3A2+A3(I + A)^3 = I + 3A + 3A^2 + A^3 works because II commutes with AA. For two general matrices (A+B)3(A + B)^3 cannot be expanded this way.

Cancelling A from A2=AA^2 = A

You cannot divide by a matrix. A2=AA^2 = A only tells you how to replace powers; it does not force A=IA = I.

Adding up an endless series of matrices

First square the matrix. If A2=OA^2 = O, every term from A2A^2 on is zero and the series is just I−AI - A.

Concept 6 of 6: Matrices in word problems

A sales or cost problem is a row-by-column product in disguise: each row-by-column sum adds up number times price over all the items. Put the quantities in a matrix with one row for each day (or shop, or market) and one column for each item, and the prices in a column with one row for each item. The product gives one total for each day.

Definition

  • Quantities matrix: rows = days, shops or markets; columns = items.
  • Prices (or costs, or rates) column: one row per item, in the same order as the columns of the quantities matrix.
  • Quantities (m×n)(m \times n) times prices (n×1)(n \times 1) gives an m×1m \times 1 column of totals.
  • Profit = total sale minus total cost. Convert dozens to units and paise to rupees before you multiply.
  • Label the rows of your answer (Day I, Day II) and give the money with its unit.

Total from quantities and prices

[q11q12q13q21q22q23][p1p2p3]=[q11p1+q12p2+q13p3q21p1+q22p2+q23p3]\begin{bmatrix} q_{11} & q_{12} & q_{13} \\ q_{21} & q_{22} & q_{23} \end{bmatrix}\begin{bmatrix} p_1 \\ p_2 \\ p_3 \end{bmatrix} = \begin{bmatrix} q_{11}p_1 + q_{12}p_2 + q_{13}p_3 \\ q_{21}p_1 + q_{22}p_2 + q_{23}p_3 \end{bmatrix}

Worked example

A school canteen sells 30 samosas, 20 sandwiches and 40 juices on Monday, and 25 samosas, 35 sandwiches and 30 juices on Tuesday. A samosa costs ₹12, a sandwich ₹25 and a juice ₹15. Using matrix multiplication, find the takings on each day and in all.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2025 · 65/7/1 · 27 (b)Moderate

Example 6 · Matrices · Multiplication of Matrices

A shopkeeper sells 50 Chemistry, 60 Physics and 35 Maths books on day I and sells 40 Chemistry, 45 Physics and 50 Maths books on day II. If the selling price for each such subject book is ₹ 150 (Chemistry), ₹ 175 (Physics) and ₹ 180 (Maths), then find his total sale in two days, using matrix method. If cost price of all the books together is ₹ 35,000, what profit did he earn after the sale of two days ?

Setting up the product the wrong way round

The items must line up: the columns of the quantities matrix and the rows of the prices column are the same items in the same order. Prices times quantities in the wrong order is either undefined or gives a meaningless table.

Forgetting to convert units

Change dozens to units and paise to rupees before multiplying. The answer to a money question needs its unit (₹) and a label for each row.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (6)

  • When a product is defined, and its order

    Order of a product

    Am×n Bn×p=(AB)m×pA_{m \times n} \, B_{n \times p} = (AB)_{m \times p}
  • The row-by-column rule

    Element of a product

    cik=∑j=1naij bjkc_{ik} = \sum_{j=1}^{n} a_{ij}\, b_{jk}
  • Laws of multiplication: what holds and what fails

    Square of a sum of matrices

    (A+B)2=A2+AB+BA+B2(A + B)^2 = A^2 + AB + BA + B^2
  • Powers of A and polynomials in A

    A quadratic in A

    A2+pA+qI,A2=AA,A3=A2AA^2 + pA + qI, \qquad A^2 = AA, \quad A^3 = A^2A
  • Matrices whose square is A, I or O

    Powers when the square is A

    A2=A  ⇒  An=A for all n≥1A^2 = A \;\Rightarrow\; A^n = A \text{ for all } n \geq 1
  • Matrices in word problems

    Total from quantities and prices

    [q11q12q13q21q22q23][p1p2p3]=[q11p1+q12p2+q13p3q21p1+q22p2+q23p3]\begin{bmatrix} q_{11} & q_{12} & q_{13} \\ q_{21} & q_{22} & q_{23} \end{bmatrix}\begin{bmatrix} p_1 \\ p_2 \\ p_3 \end{bmatrix} = \begin{bmatrix} q_{11}p_1 + q_{12}p_2 + q_{13}p_3 \\ q_{21}p_1 + q_{22}p_2 + q_{23}p_3 \end{bmatrix}

Watch out for (19)

Test yourself on Matrices

20 past CBSE Class 12 questions from this chapter, timed at 30 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.

Take the Matrices chapter test