Class 12 Maths, Worked in Full Past papersGet updates
Chapter 3 · Matrices

Exercise 3.2 · Q3: Compute six products of matrices

Exercise 3.2Multiplication of matrices · Section 3.4.5
The question

Compute the indicated products.

(i) [ab−ba][a−bba]\text{(i)}\ \begin{bmatrix}a&b\\-b&a\end{bmatrix}\begin{bmatrix}a&-b\\b&a\end{bmatrix} (ii) [123][234]\text{(ii)}\ \begin{bmatrix}1\\2\\3\end{bmatrix}\begin{bmatrix}2&3&4\end{bmatrix} (iii) [1−223][123231]\text{(iii)}\ \begin{bmatrix}1&-2\\2&3\end{bmatrix}\begin{bmatrix}1&2&3\\2&3&1\end{bmatrix} (iv) [234345456][1−35024305]\text{(iv)}\ \begin{bmatrix}2&3&4\\3&4&5\\4&5&6\end{bmatrix}\begin{bmatrix}1&-3&5\\0&2&4\\3&0&5\end{bmatrix} (v) [2132−11][101−121]\text{(v)}\ \begin{bmatrix}2&1\\3&2\\-1&1\end{bmatrix}\begin{bmatrix}1&0&1\\-1&2&1\end{bmatrix} (vi) [3−13−102][2−31031]\text{(vi)}\ \begin{bmatrix}3&-1&3\\-1&0&2\end{bmatrix}\begin{bmatrix}2&-3\\1&0\\3&1\end{bmatrix}
Exam answer

In each part let PP be the product. Multiply row by column.

(i)

P=[ab−ba][a−bba]=[a2+b2−ab+ab−ab+abb2+a2]=[a2+b200a2+b2]\begin{aligned} P &= \begin{bmatrix} a & b \\ -b & a \end{bmatrix}\begin{bmatrix} a & -b \\ b & a \end{bmatrix} \\ &= \begin{bmatrix} a^2 + b^2 & -ab + ab \\ -ab + ab & b^2 + a^2 \end{bmatrix} \\ &= \begin{bmatrix} a^2 + b^2 & 0 \\ 0 & a^2 + b^2 \end{bmatrix} \end{aligned}

(ii)

P=[123][234]=[1⋅21⋅31⋅42⋅22⋅32⋅43⋅23⋅33⋅4]=[2344686912]\begin{aligned} P &= \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix}\begin{bmatrix} 2 & 3 & 4 \end{bmatrix} \\ &= \begin{bmatrix} 1\cdot2 & 1\cdot3 & 1\cdot4 \\ 2\cdot2 & 2\cdot3 & 2\cdot4 \\ 3\cdot2 & 3\cdot3 & 3\cdot4 \end{bmatrix} \\ &= \begin{bmatrix} 2 & 3 & 4 \\ 4 & 6 & 8 \\ 6 & 9 & 12 \end{bmatrix} \end{aligned}

(iii)

P=[1−223][123231]=[1−42−63−22+64+96+3]=[−3−418139]\begin{aligned} P &= \begin{bmatrix} 1 & -2 \\ 2 & 3 \end{bmatrix}\begin{bmatrix} 1 & 2 & 3 \\ 2 & 3 & 1 \end{bmatrix} \\ &= \begin{bmatrix} 1-4 & 2-6 & 3-2 \\ 2+6 & 4+9 & 6+3 \end{bmatrix} \\ &= \begin{bmatrix} -3 & -4 & 1 \\ 8 & 13 & 9 \end{bmatrix} \end{aligned}

(iv)

P=[234345456][1−35024305]\begin{aligned} &P \\ &= \begin{bmatrix} 2 & 3 & 4 \\ 3 & 4 & 5 \\ 4 & 5 & 6 \end{bmatrix}\begin{bmatrix} 1 & -3 & 5 \\ 0 & 2 & 4 \\ 3 & 0 & 5 \end{bmatrix} \end{aligned}

With P=[cij]P = [c_{ij}]⁠,

c11=2⋅1+3⋅0+4⋅3=14c12=2(−3)+3⋅2+4⋅0=0c13=2⋅5+3⋅4+4⋅5=42c21=3⋅1+4⋅0+5⋅3=18c22=3(−3)+4⋅2+5⋅0=−1c23=3⋅5+4⋅4+5⋅5=56c31=4⋅1+5⋅0+6⋅3=22c32=4(−3)+5⋅2+6⋅0=−2c33=4⋅5+5⋅4+6⋅5=70\begin{aligned} c_{11} &= 2\cdot1 + 3\cdot0 + 4\cdot3 = 14 \\ c_{12} &= 2(-3) + 3\cdot2 + 4\cdot0 = 0 \\ c_{13} &= 2\cdot5 + 3\cdot4 + 4\cdot5 = 42 \\ c_{21} &= 3\cdot1 + 4\cdot0 + 5\cdot3 = 18 \\ c_{22} &= 3(-3) + 4\cdot2 + 5\cdot0 = -1 \\ c_{23} &= 3\cdot5 + 4\cdot4 + 5\cdot5 = 56 \\ c_{31} &= 4\cdot1 + 5\cdot0 + 6\cdot3 = 22 \\ c_{32} &= 4(-3) + 5\cdot2 + 6\cdot0 = -2 \\ c_{33} &= 4\cdot5 + 5\cdot4 + 6\cdot5 = 70 \end{aligned} ∴ P=[1404218−15622−270]\therefore\ P = \begin{bmatrix} 14 & 0 & 42 \\ 18 & -1 & 56 \\ 22 & -2 & 70 \end{bmatrix}

(v)

P=[2132−11][101−121]=[2−10+22+13−20+43+2−1−10+2−1+1]=[123145−220]\begin{aligned} P &= \begin{bmatrix} 2 & 1 \\ 3 & 2 \\ -1 & 1 \end{bmatrix}\begin{bmatrix} 1 & 0 & 1 \\ -1 & 2 & 1 \end{bmatrix} \\ &= \begin{bmatrix} 2-1 & 0+2 & 2+1 \\ 3-2 & 0+4 & 3+2 \\ -1-1 & 0+2 & -1+1 \end{bmatrix} \\ &= \begin{bmatrix} 1 & 2 & 3 \\ 1 & 4 & 5 \\ -2 & 2 & 0 \end{bmatrix} \end{aligned}

(vi)

P=[3−13−102][2−31031]=[6−1+9−9+0+3−2+0+63+0+2]\begin{aligned} P &= \begin{bmatrix} 3 & -1 & 3 \\ -1 & 0 & 2 \end{bmatrix}\begin{bmatrix} 2 & -3 \\ 1 & 0 \\ 3 & 1 \end{bmatrix} \\ &= \begin{bmatrix} 6-1+9 & -9+0+3 \\ -2+0+6 & 3+0+2 \end{bmatrix} \end{aligned}

∴ P=[14−645]\therefore\ P = \begin{bmatrix} 14 & -6 \\ 4 & 5 \end{bmatrix}

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

One rule does all six parts. A product PQPQ exists when the number of columns of PP equals the number of rows of QQ⁠; an m×nm\times n matrix times an n×pn\times p matrix is m×pm\times p⁠. Its entry in row ii⁠, column kk is row ii of PP times column kk of QQ: multiply the entries in pairs (first with first, second with second, and so on) and add. The six parts only differ in shape, which changes how many entries there are and how long each sum is.

Given, to find, and the plan
Given
Six pairs of matrices, written side by side, meaning "multiply the left one by the right one" in that order.
To find
Each product.
Plan
For each part: (1) write both orders, check the inner numbers agree, and read off the order of the product; (2) list the rows of the left matrix and the columns of the right matrix; (3) compute every entry as a row-times-column sum and assemble.

Basics you need

1Rows, columns, order

A matrix with mm rows and nn columns has order m×nm\times n⁠: rows first, columns second. A single column is m×1m\times1⁠; a single row is 1×n1\times n⁠. Basics: rows, columns and aija_{ij}

2When a product exists, and its order

(m×n)(n×p)(m\times n)(n\times p) gives m×pm\times p⁠. The two inside numbers must match; the two outside numbers give the order of the answer.

3Row times column

A row (r1,…,rn)(r_1,\dots,r_n) times a column (s1,…,sn)(s_1,\dots,s_n) is the single number r1s1+r2s2+⋯+rnsnr_1s_1+r_2s_2+\dots+r_ns_n⁠. Each entry of a product is one such number. Basics: pair up, multiply, add

Part (i): a 2×22\times2 product with letters

  1. Orders

    Left: 2×22\times2⁠. Right: 2×22\times2⁠. Inner numbers 2 and 2 agree, so the product is defined and is 2×22\times2⁠.

    Square matrices of the same order can always be multiplied, in either order.
  2. Every entry, row times column

    Rows of the left matrix: (a, b)(a,\ b) and (−b, a)(-b,\ a)⁠. Columns of the right matrix: (a, b)(a,\ b) and (−b, a)(-b,\ a)⁠.

    c11=a⋅a+b⋅b=a2+b2c12=a⋅(−b)+b⋅a=−ab+ab=0c21=(−b)⋅a+a⋅b=−ab+ab=0c22=(−b)(−b)+a⋅a=b2+a2\begin{aligned} c_{11}&=a\cdot a+b\cdot b=a^2+b^2\\ c_{12}&=a\cdot(-b)+b\cdot a=-ab+ab=0\\ c_{21}&=(-b)\cdot a+a\cdot b=-ab+ab=0\\ c_{22}&=(-b)(-b)+a\cdot a=b^2+a^2 \end{aligned} [ab−ba][a−bba]=[a2+b200a2+b2]\begin{bmatrix}a&b\\-b&a\end{bmatrix}\begin{bmatrix}a&-b\\b&a\end{bmatrix}=\begin{bmatrix}a^2+b^2&0\\0&a^2+b^2\end{bmatrix}
    Read the columns of the right matrix downward: its first column is aa over bb⁠, not a,−ba,-b (that is its first row). The off-diagonal entries cancel because ab=baab=ba for numbers. The result is (a2+b2)(a^2+b^2) times the identity matrix, a scalar matrix.

Part (ii): a column times a row

  1. Orders

    Left: a column with 3 entries, order 3×13\times1⁠. Right: a row with 3 entries, order 1×31\times3⁠. Inner numbers 1 and 1 agree, so the product is defined and its order is the outer numbers, 3×33\times3⁠.

    This surprises many students: two small matrices with 3 entries each give a product with 9 entries. The outer numbers decide the size, and here they are 3 and 3.
  2. Each "row times column" is a single product

    Each row of the left matrix has just one entry (1, then 2, then 3), and each column of the right matrix has just one entry (2, then 3, then 4). So each entry is one multiplication, with nothing to add:

    row 1: 1⋅2=2, 1⋅3=3, 1⋅4=4row 2: 2⋅2=4, 2⋅3=6, 2⋅4=8row 3: 3⋅2=6, 3⋅3=9, 3⋅4=12\begin{aligned} \text{row }1&:\ 1\cdot2=2,\ 1\cdot3=3,\ 1\cdot4=4\\ \text{row }2&:\ 2\cdot2=4,\ 2\cdot3=6,\ 2\cdot4=8\\ \text{row }3&:\ 3\cdot2=6,\ 3\cdot3=9,\ 3\cdot4=12 \end{aligned} [123][234]=[2344686912]\begin{bmatrix}1\\2\\3\end{bmatrix}\begin{bmatrix}2&3&4\end{bmatrix}=\begin{bmatrix}2&3&4\\4&6&8\\6&9&12\end{bmatrix}
    234 123 234 468 6912 × row 3, column 2: 3 · 3 = 9
    A column times a row is a multiplication table: the entry in row ii⁠, column kk is (entry ii of the column) times (entry kk of the row).
    The rule is unchanged; the sums are just one term long. Writing the answer row by row (row 1 uses the 1, row 2 uses the 2, row 3 uses the 3) keeps the nine entries in their right places.
    Order of the product = outer numbers of (3×1)(1×3)(3\times1)(1\times3)⁠. Basics: pair up, multiply, add

Part (iii): (2×2)(2×3)(2\times2)(2\times3)

  1. Orders

    Left: 2×22\times2⁠. Right: 2×32\times3⁠. Inner numbers 2 and 2 agree, so the product is defined and is 2×32\times3⁠: six entries.

    The reverse product would be (2×3)(2×2)(2\times3)(2\times2)⁠: inner numbers 3 and 2 differ, so it does not exist. Order matters even for whether a product exists.
  2. Every entry, row times column

    Rows of the left matrix: (1, −2)(1,\ -2) and (2, 3)(2,\ 3)⁠. Columns of the right matrix: (1, 2)(1,\ 2)⁠, (2, 3)(2,\ 3)⁠, (3, 1)(3,\ 1)⁠.

    c11=1⋅1+(−2)⋅2=1−4=−3c12=1⋅2+(−2)⋅3=2−6=−4c13=1⋅3+(−2)⋅1=3−2=1c21=2⋅1+3⋅2=2+6=8c22=2⋅2+3⋅3=4+9=13c23=2⋅3+3⋅1=6+3=9\begin{aligned} c_{11}&=1\cdot1+(-2)\cdot2=1-4=-3\\ c_{12}&=1\cdot2+(-2)\cdot3=2-6=-4\\ c_{13}&=1\cdot3+(-2)\cdot1=3-2=1\\ c_{21}&=2\cdot1+3\cdot2=2+6=8\\ c_{22}&=2\cdot2+3\cdot3=4+9=13\\ c_{23}&=2\cdot3+3\cdot1=6+3=9 \end{aligned} [1−223][123231]=[−3−418139]\begin{bmatrix}1&-2\\2&3\end{bmatrix}\begin{bmatrix}1&2&3\\2&3&1\end{bmatrix}=\begin{bmatrix}-3&-4&1\\8&13&9\end{bmatrix}
    Each sum has two terms because the inner number is 2: a row of the left matrix has two entries, and so does a column of the right matrix. The −2-2 in the first row makes every entry of the first row of the answer a subtraction.

Part (iv): two 3×33\times3 matrices

  1. Orders

    Both are 3×33\times3⁠, so the product is defined and is 3×33\times3⁠: nine entries, each a sum of three terms.

  2. Every entry, row times column

    Rows of the left matrix: (2,3,4)(2,3,4)⁠, (3,4,5)(3,4,5)⁠, (4,5,6)(4,5,6)⁠. Columns of the right matrix: (1,0,3)(1,0,3)⁠, (−3,2,0)(-3,2,0)⁠, (5,4,5)(5,4,5)⁠.

    c11=2⋅1+3⋅0+4⋅3=2+0+12=14c12=2(−3)+3⋅2+4⋅0=−6+6+0=0c13=2⋅5+3⋅4+4⋅5=10+12+20=42c21=3⋅1+4⋅0+5⋅3=3+0+15=18c22=3(−3)+4⋅2+5⋅0=−9+8+0=−1c23=3⋅5+4⋅4+5⋅5=15+16+25=56c31=4⋅1+5⋅0+6⋅3=4+0+18=22c32=4(−3)+5⋅2+6⋅0=−12+10+0=−2c33=4⋅5+5⋅4+6⋅5=20+20+30=70\begin{aligned} c_{11}&=2\cdot1+3\cdot0+4\cdot3\\ &=2+0+12=14\\ c_{12}&=2(-3)+3\cdot2+4\cdot0\\ &=-6+6+0=0\\ c_{13}&=2\cdot5+3\cdot4+4\cdot5\\ &=10+12+20=42\\ c_{21}&=3\cdot1+4\cdot0+5\cdot3\\ &=3+0+15=18\\ c_{22}&=3(-3)+4\cdot2+5\cdot0\\ &=-9+8+0=-1\\ c_{23}&=3\cdot5+4\cdot4+5\cdot5\\ &=15+16+25=56\\ c_{31}&=4\cdot1+5\cdot0+6\cdot3\\ &=4+0+18=22\\ c_{32}&=4(-3)+5\cdot2+6\cdot0\\ &=-12+10+0=-2\\ c_{33}&=4\cdot5+5\cdot4+6\cdot5\\ &=20+20+30=70 \end{aligned} [234345456][1−35024305]=[1404218−15622−270]\begin{aligned}&\begin{bmatrix}2&3&4\\3&4&5\\4&5&6\end{bmatrix}\begin{bmatrix}1&-3&5\\0&2&4\\3&0&5\end{bmatrix}\\&=\begin{bmatrix}14&0&42\\18&-1&56\\22&-2&70\end{bmatrix}\end{aligned}
    Nine entries is where errors creep in, so work systematically: fix a row of the left matrix and run along the three columns of the right matrix, then move to the next row. The column (−3,2,0)(-3,2,0) contains a negative entry and a zero; the zero kills the third term in the whole middle column of the answer.

Part (v): (3×2)(2×3)(3\times2)(2\times3)

  1. Orders

    Left: 3 rows, 2 columns, so 3×23\times2⁠. Right: 2×32\times3⁠. Inner numbers 2 and 2 agree, so the product is defined and is 3×33\times3⁠.

    The answer is bigger than either factor because the outer numbers are 3 and 3. (Multiplying in the other order would give a 2×22\times2 matrix, a completely different object.)
  2. Every entry, row times column

    Rows of the left matrix: (2,1)(2,1)⁠, (3,2)(3,2)⁠, (−1,1)(-1,1)⁠. Columns of the right matrix: (1,−1)(1,-1)⁠, (0,2)(0,2)⁠, (1,1)(1,1)⁠.

    c11=2⋅1+1⋅(−1)=2−1=1c12=2⋅0+1⋅2=0+2=2c13=2⋅1+1⋅1=2+1=3c21=3⋅1+2⋅(−1)=3−2=1c22=3⋅0+2⋅2=0+4=4c23=3⋅1+2⋅1=3+2=5c31=(−1)⋅1+1⋅(−1)=−2c32=(−1)⋅0+1⋅2=0+2=2c33=(−1)⋅1+1⋅1=−1+1=0\begin{aligned} c_{11}&=2\cdot1+1\cdot(-1)=2-1=1\\ c_{12}&=2\cdot0+1\cdot2=0+2=2\\ c_{13}&=2\cdot1+1\cdot1=2+1=3\\ c_{21}&=3\cdot1+2\cdot(-1)=3-2=1\\ c_{22}&=3\cdot0+2\cdot2=0+4=4\\ c_{23}&=3\cdot1+2\cdot1=3+2=5\\ c_{31}&=(-1)\cdot1+1\cdot(-1)=-2\\ c_{32}&=(-1)\cdot0+1\cdot2=0+2=2\\ c_{33}&=(-1)\cdot1+1\cdot1=-1+1=0 \end{aligned} [2132−11][101−121]=[123145−220]\begin{bmatrix}2&1\\3&2\\-1&1\end{bmatrix}\begin{bmatrix}1&0&1\\-1&2&1\end{bmatrix}=\begin{bmatrix}1&2&3\\1&4&5\\-2&2&0\end{bmatrix}
    Each sum has only two terms (inner number 2), but there are nine of them (outer numbers 3 and 3). The third row (−1,1)(-1,1) has a negative first entry, which matters in every entry of that row: in c31c_{31} both terms are negative.

Part (vi): (2×3)(3×2)(2\times3)(3\times2)

  1. Orders

    Left: 2×32\times3⁠. Right: 3×23\times2⁠. Inner numbers 3 and 3 agree, so the product is defined and is 2×22\times2⁠: four entries, each a sum of three terms.

  2. Every entry, row times column

    Rows of the left matrix: (3,−1,3)(3,-1,3) and (−1,0,2)(-1,0,2)⁠. Columns of the right matrix: (2,1,3)(2,1,3) and (−3,0,1)(-3,0,1)⁠.

    c11=3⋅2+(−1)⋅1+3⋅3=6−1+9=14c12=3(−3)+(−1)⋅0+3⋅1=−9+0+3=−6c21=(−1)⋅2+0⋅1+2⋅3=−2+0+6=4c22=(−1)(−3)+0⋅0+2⋅1=3+0+2=5\begin{aligned} c_{11}&=3\cdot2+(-1)\cdot1+3\cdot3\\ &=6-1+9=14\\ c_{12}&=3(-3)+(-1)\cdot0+3\cdot1\\ &=-9+0+3=-6\\ c_{21}&=(-1)\cdot2+0\cdot1+2\cdot3\\ &=-2+0+6=4\\ c_{22}&=(-1)(-3)+0\cdot0+2\cdot1\\ &=3+0+2=5 \end{aligned} [3−13−102][2−31031]=[14−645]\begin{bmatrix}3&-1&3\\-1&0&2\end{bmatrix}\begin{bmatrix}2&-3\\1&0\\3&1\end{bmatrix}=\begin{bmatrix}14&-6\\4&5\end{bmatrix}
    Compare with part (v): there the outer numbers made the answer large; here they make it small (2×22\times2⁠), while each entry is a longer, three-term sum. In c22c_{22}⁠, (−1)(−3)=+3(-1)(-3)=+3⁠: a negative times a negative is positive.
Result (i) [a2+b200a2+b2]\text{(i)}\ \begin{bmatrix}a^2+b^2&0\\0&a^2+b^2\end{bmatrix} (ii) [2344686912]\text{(ii)}\ \begin{bmatrix}2&3&4\\4&6&8\\6&9&12\end{bmatrix} (iii) [−3−418139]\text{(iii)}\ \begin{bmatrix}-3&-4&1\\8&13&9\end{bmatrix} (iv) [1404218−15622−270]\text{(iv)}\ \begin{bmatrix}14&0&42\\18&-1&56\\22&-2&70\end{bmatrix} (v) [123145−220]\text{(v)}\ \begin{bmatrix}1&2&3\\1&4&5\\-2&2&0\end{bmatrix} (vi) [14−645]\text{(vi)}\ \begin{bmatrix}14&-6\\4&5\end{bmatrix}

(Textbook answer: the same six matrices.)

Check it with numbers

(i) With a=3a=3⁠, b=4b=4⁠: rows (3,4),(−4,3)(3,4),(-4,3) times columns (3,4),(−4,3)(3,4),(-4,3) give 9+16=259+16=25⁠, −12+12=0-12+12=0⁠, −12+12=0-12+12=0⁠, 16+9=2516+9=25⁠, so the product is 25 times the identity, and a2+b2=25a^2+b^2=25⁠. ✓

(ii) The nine entries total 5454⁠, and (1+2+3)(2+3+4)=6⋅9=54(1+2+3)(2+3+4)=6\cdot9=54⁠, as every product of a column entry with a row entry appears exactly once. ✓

(iii) Column totals of a product equal (column totals of the left matrix) times the right matrix. The left matrix has column totals (3, 1)(3,\ 1)⁠; then 3⋅1+1⋅2=53\cdot1+1\cdot2=5⁠, 3⋅2+1⋅3=93\cdot2+1\cdot3=9⁠, 3⋅3+1⋅1=103\cdot3+1\cdot1=10⁠. The answer has column totals −3+8=5-3+8=5⁠, −4+13=9-4+13=9⁠, 1+9=101+9=10⁠. ✓

(iv) Each row of the left matrix is the previous row plus (1,1,1)(1,1,1)⁠, so each row of the answer should be the previous row plus the column totals of the right matrix, (4,−1,14)(4,-1,14)⁠. Indeed 18−14=418-14=4⁠, −1−0=−1-1-0=-1⁠, 56−42=1456-42=14⁠, and 22−18=422-18=4⁠, −2−(−1)=−1-2-(-1)=-1⁠, 70−56=1470-56=14⁠. ✓

(v) In the right matrix, column 1 + column 2 = column 3, since (1,−1)+(0,2)=(1,1)(1,-1)+(0,2)=(1,1)⁠. So the same must hold in the answer: 1+2=31+2=3⁠, 1+4=51+4=5⁠, −2+2=0-2+2=0⁠. ✓

(vi) Column totals of the left matrix are (2,−1,5)(2,-1,5)⁠. Times the right matrix: 4−1+15=184-1+15=18 and −6+0+5=−1-6+0+5=-1⁠. Column totals of the answer: 14+4=1814+4=18⁠, −6+5=−1-6+5=-1⁠. ✓

Common mistakes
  1. Reading a row of the right matrix instead of a column. In part (i) the first column of the right matrix is (a, b)(a,\ b)⁠, not (a, −b)(a,\ -b)⁠.
  2. Getting the order of the product wrong. In part (ii) the answer is 3×33\times3⁠, not a single number; the single number 2020 would be the product in the other order, (1×3)(3×1)(1\times3)(3\times1)⁠.
  3. Sign slips with negative entries, such as (−1)(−3)(-1)(-3) in part (vi), which is +3+3⁠.
  4. Swapping the factors. In parts (iii), (v) and (vi) the reverse product either does not exist or has a different order; never reorder a product.
What to take away
  1. Before multiplying, write (m×n)(n×p)(m\times n)(n\times p)⁠: the inner numbers must match and the outer numbers give the size of the answer.
  2. The inner number is how many terms are in each sum; the outer numbers are how many entries you must compute.
  3. Work row by row, running along the columns, and check with column totals.

Every fact used, and where it comes from

FactUsed inSource
PQPQ is defined when columns of PP = rows of QQ⁠; (m×n)(n×p)(m\times n)(n\times p) is m×pm\times pIn every Part, Step 1Section 3.4.5 (Lesson: multiplication)
Entry (i,k)(i,k) of PQPQ is ∑jpijqjk\sum_j p_{ij}q_{jk}⁠, row ii times column kkIn every Part, Step 2Section 3.4.5
If PQPQ is defined, QPQP need not bePart (iii), Step 1Section 3.4.5, Remark after Example 12
Column matrix m×1m\times1⁠, row matrix 1×n1\times n⁠; scalar and identity matricesPart (i), Step 2; Part (ii), Step 1Section 3.3 (Lesson: types of matrices)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →