Matrices

Open a spreadsheet, a seating chart, or a set of simultaneous equations and you are already looking at a matrix — a rectangular grid of numbers where position matters as much as value. ICSE Class 10 keeps the idea small and mechanical: you work only with matrices up to order 2×22\times2, and the whole topic is four skills stacked on top of one vocabulary list. First you learn to name a matrix by its order (rows times columns) and recognise the special shapes — row, column, null, identity. Then you learn the one rule that governs every operation: two matrices can only be combined if their orders are compatible in the right way, and that "right way" is different for addition than for multiplication. Addition needs identical orders; multiplication needs the inner dimensions to match. Get the compatibility check right, and the arithmetic itself is just repeated addition and multiplication of ordinary numbers, entry by entry or row by column.

The core insight

A matrix's order controls everything — same order lets you add or subtract entrywise, but multiplication needs the first matrix's column count to equal the second's row count, with the product formed by summing "row times column" pairs.

The core idea

Order and naming. A matrix with mm rows and nn columns has order m×nm\times n (rows always stated first). A matrix that is 1×n1\times n is a row matrix; one that is m×1m\times1 is a column matrix. A null matrix has every entry 00; an identity matrix II is square with 11s on the leading diagonal and 00s everywhere else, and it acts like the number 11 does in ordinary multiplication.

A=(25−13),I=(1001)A = \begin{pmatrix} 2 & 5 \\ -1 & 3 \end{pmatrix}, \qquad I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}

where: AA is a general 2×22\times2 matrix and II is the 2×22\times2 identity, so that AI=IA=AAI = IA = A for any 2×22\times2 matrix AA.

Addition and subtraction — same order only. You may add or subtract two matrices only when their orders match exactly; then you combine corresponding entries, position by position.

(abcd)±(efgh)=(a±eb±fc±gd±h)\begin{pmatrix}a&b\\c&d\end{pmatrix} \pm \begin{pmatrix}e&f\\g&h\end{pmatrix} = \begin{pmatrix}a\pm e& b\pm f\\ c\pm g& d\pm h\end{pmatrix}

where: each pair of entries in the same row-and-column position is added or subtracted independently; there is no cross-mixing between positions.

Scalar multiplication. Multiplying a matrix by a number kk (a scalar) scales every single entry by kk — nothing is compared between entries.

k(abcd)=(kakbkckd)k\begin{pmatrix}a&b\\c&d\end{pmatrix} = \begin{pmatrix}ka&kb\\kc&kd\end{pmatrix}

Matrix multiplication — a different compatibility rule entirely. ABAB is only defined when the number of columns of AA equals the number of rows of BB; the product's order is (rows of AA) times (columns of BB). For two 2×22\times2 matrices,

(abcd)(efgh)=(ae+bgaf+bhce+dgcf+dh)\begin{pmatrix}a&b\\c&d\end{pmatrix}\begin{pmatrix}e&f\\g&h\end{pmatrix} = \begin{pmatrix}ae+bg & af+bh\\ ce+dg & cf+dh\end{pmatrix}

where: each entry of the product is a row of the first matrix "dotted" against a column of the second — multiply matching positions and add. Multiplication is not commutative: AB≠BAAB \ne BA in general, so order matters and you must compute the product in the sequence the question asks for. Two matrices are equal only if they share the same order and every corresponding entry is identical; this fact is often exploited to turn an "unknown entries" problem into simultaneous equations by matching entries on both sides.

Figure
Two two by two matrices combining under matrix multiplication with the first row of A meeting the first column of B to build one entry of the product
Row of A times column of B, summed, gives one entry of AB A (2x2) a b c d B (2x2) e f g h AB entry (row 1, col 1) ae + bg Highlighted row of A meets highlighted column of B; multiply matching pairs, then add. Columns of A must equal rows of B for the product to exist at all.
Derivation AWhy the row-times-column rule gives the product AB

The goal is to show, starting from nothing more than the requirement that a linear combination of rows should transform correctly, exactly why each entry of the product ABAB has to be a sum of paired products rather than a simple entrywise multiplication like addition uses, and why this forces the compatibility condition columns of AA equals rows of BB.

Step 1. Set up what "multiplying matrices" is meant to represent. Each row of AA pairs with a set of coefficients that should be applied to the columns of BB — think of row 11 of AA, (a  b)(a\ \ b), as telling you "take aa times the first row-quantity and bb times the second row-quantity" from whatever BB supplies. This is different from addition, where positions are simply matched; here, one whole row of AA interacts with one whole column of BB.

Step 2. Build the top-left entry of ABAB by combining row 11 of A=(a  b)A = (a\ \ b) with column 11 of B=(eg)B = \begin{pmatrix}e\\g\end{pmatrix}: multiply the first entries together, multiply the second entries together, then add — (a)(e)+(b)(g)=ae+bg(a)(e) + (b)(g) = ae+bg. This single number becomes the entry in row 11, column 11 of the product.

Step 3. Repeat the same row-times-column pairing for every other position: row 11 of AA with column 22 of BB gives af+bhaf+bh; row 22 of AA, (c  d)(c\ \ d), with column 11 of BB gives ce+dgce+dg; row 22 with column 22 gives cf+dhcf+dh. Assembling all four gives exactly the multiplication formula stated above, (ae+bgaf+bhce+dgcf+dh)\begin{pmatrix}ae+bg & af+bh\\ ce+dg & cf+dh\end{pmatrix}.

Step 4. Read off the compatibility condition from the mechanics itself. Step 2 needed a row of AA (length = number of columns of AA) to pair entry-by-entry with a column of BB (length = number of rows of BB); pairing is only possible if those lengths match. That is precisely why ABAB requires columns of AA = rows of BB, and why the resulting order is rows of AA by columns of BB — every entry needed one full row of AA and one full column of BB to build.

Worked example

Question: If A=(123−1)A = \begin{pmatrix}1&2\\3&-1\end{pmatrix} and B=(0124)B = \begin{pmatrix}0&1\\2&4\end{pmatrix}, find ABAB, state its order, and verify AI=AAI = A using the 2×22\times2 identity.

Step 1. Check compatibility. Both AA and BB are order 2×22\times2, so columns of AA (2) equal rows of BB (2); the product ABAB is defined and will have order 2×22\times2 (rows of AA by columns of BB).

Step 2. Compute each entry using row-times-column. Row 11 of AA, (1  2)(1\ \ 2), with column 11 of BB, (02)\begin{pmatrix}0\\2\end{pmatrix}: (1)(0)+(2)(2)=0+4=4(1)(0)+(2)(2)=0+4=4. Row 11 with column 22, (14)\begin{pmatrix}1\\4\end{pmatrix}: (1)(1)+(2)(4)=1+8=9(1)(1)+(2)(4)=1+8=9.

Step 3. Finish the remaining row. Row 22 of AA, (3  −1)(3\ \ {-1}), with column 11 of BB: (3)(0)+(−1)(2)=0−2=−2(3)(0)+(-1)(2)=0-2=-2. Row 22 with column 22: (3)(1)+(−1)(4)=3−4=−1(3)(1)+(-1)(4)=3-4=-1. Assembling gives AB=(49−2−1)AB = \begin{pmatrix}4&9\\-2&-1\end{pmatrix}.

Step 4. Verify with the identity matrix as a sanity check on the mechanics: for I=(1001)I=\begin{pmatrix}1&0\\0&1\end{pmatrix}, AIAI gives (1)(1)+(2)(0)=1(1)(1)+(2)(0)=1, (1)(0)+(2)(1)=2(1)(0)+(2)(1)=2, (3)(1)+(−1)(0)=3(3)(1)+(-1)(0)=3, (3)(0)+(−1)(1)=−1(3)(0)+(-1)(1)=-1, reproducing AA exactly. This confirms the row-times-column procedure was applied correctly in Steps 2–3.

AB=(49−2−1)AB = \begin{pmatrix}4&9\\-2&-1\end{pmatrix}, order 2×22\times2.

Competitive stretch

For A=(2−134)A = \begin{pmatrix}2&-1\\3&4\end{pmatrix} and B=(50−21)B = \begin{pmatrix}5&0\\-2&1\end{pmatrix}, find 2A−B2A-B. First scale: 2A=(4−268)2A = \begin{pmatrix}4&-2\\6&8\end{pmatrix}. Both matrices are order 2×22\times2, so subtraction is valid entrywise: 2A−B=(4−5−2−06−(−2)8−1)=(−1−287)2A-B = \begin{pmatrix}4-5&-2-0\\6-(-2)&8-1\end{pmatrix} = \begin{pmatrix}-1&-2\\8&7\end{pmatrix}.

Common traps

  • Adding or subtracting matrices of different orders — this is never allowed, no matter what the entries are.
  • Multiplying matrices entry-by-entry (as if it were addition) instead of applying the row-times-column rule.
  • Assuming AB=BAAB=BA — matrix multiplication is generally not commutative, so always multiply in the order the question specifies.
  • Skipping the compatibility check (columns of the first = rows of the second) before attempting a product, especially with non-square matrices.

Ask the tutor: Want to practise the two-second compatibility check on a batch of mixed-order matrices, or walk through a problem where unknown entries are found by matching equal matrices?

Why can I add matrices entrywise but not multiply them entrywise?

Addition combines two quantities occupying the same position, so matching position to position makes sense — it mirrors ordinary addition. Multiplication in the matrix sense is built to represent combining rows with columns (useful for things like solving simultaneous equations later), so it needs a row from the first matrix to pair fully with a column from the second, which is why the row-times-column rule and the compatibility condition on inner dimensions exist. Entrywise multiplication of matrices is a different, less common operation and is not what "AB" means in this syllabus.

How do I quickly check if two matrices can be multiplied, without writing everything out?

Write the two orders side by side, like 2×22\times2 and 2×22\times2, or 2×32\times3 and 3×23\times2. The product exists only if the inner two numbers match — columns of the first equals rows of the second. If they match, the outer two numbers give you the order of the answer directly, without doing a single multiplication. This two-second check saves you from starting a long calculation that was never going to work.

Is the identity matrix the same idea as the number 1?

Yes, that is exactly the right way to think about it. Just as multiplying any number by 11 leaves it unchanged, multiplying any compatible matrix by the identity matrix II leaves it unchanged: AI=IA=AAI = IA = A. It has 11s down the main diagonal and 00s elsewhere, and at this level you only need the 2×22\times2 identity (1001)\begin{pmatrix}1&0\\0&1\end{pmatrix}.

Before this

Where this leads