JEE maths study guide

Matrix multiplication compatibility for JEE maths

For two matrices A and B to multiply as AB, the number of columns in A must equal the number of rows in B. The product is defined only when these dimensions match; otherwise, the operation has no result.

Made for: Indian JEE maths students who have studied matrices in NCERT or JEE Advanced 2026 syllabus.

What should you take away?

  • The product AB requires m = n where A is m × n and B is n × p.
  • A zero matrix can be the product of nonzero matrices.
  • Only one compatible pair of dimensions exists at a time.

What should you know about matrix multiplication compatibility?

Matrix multiplication requires the number of columns in A to equal the number of rows in B.

The product AB is defined only when these dimensions match; otherwise, the operation has no result.

    Multiply A = [1 0 0; 0 1 0] by B = [5 6; 7 8; 9 10]. What is the resulting 2 × 2 matrix?

    A is a 2 × 3 matrix and B is a 3 × 2 matrix. Their inner dimensions are both three, so C = AB exists as a 2 × 2 matrix.

    Thus C = [5 6; 7 8], which matches the dot products of each row of A with each column of B.

    • Compute the first row of C: (1·5 + 0·7 + 0·9) for column 1 gives 5, and (1·6 + 0·8 + 0·10) for column 2 gives 6.
    • Compute the second row of C: (0·5 + 1·7 + 0·9) for column 1 gives 7, and (0·6 + 1·8 + 0·10) for column 2 gives 8.
    • Thus C = [5 6; 7 8], which matches the dot products of each row of A with each column of B.

    Which mistake should you avoid with matrix multiplication compatibility?

    Multiplying two 2 × 3 matrices ignores that their inner dimensions do not match.

    Only one pair of compatible dimensions can be multiplied at a time.

      Find the product of P = [4 −1; 2 3] and Q = [1 2; 0 1]. What is PQ?

      Use the same row-by-column rule described above.

      Answer: PQ = [4·1 + (−1)·0 4·2 + (−1)·1; 2·1 + 3·0 2·2 + 3·1] = [4 1; 2 7].

        What else should you know?

        Can I multiply a square matrix by another square matrix?

        Yes, provided their sizes are compatible: both square means they share the same order.

        Does the order matter for the resulting size?

        No. For C = AB, the result has the row count from A and the column count from B.

        Is there any exception to the dimension requirement?

        No. If the inner dimensions differ, neither AB nor BA is defined.

        What should you do next?

        Apply the idea to one attempted problem. Ask a qualified teacher to resolve disputed mathematics.

        Try one maths problem

        What changed: LFM3 prepared this guide using the linked textbook sources. The AIR1 site owner checked the draft and approved publication.