Algebra · real student question

Determine the product AB of the matrices A with rows (1, 3, 2), (2, -1, -3), (1, 1, 0) and B with rows (-3, 2, 4), (1, 0, 2), (0, 2, 3).

Question

Determine the product ABAB of the two matrices

A=(132213110),B=(324102023).A=\begin{pmatrix}1&3&2\\ 2&-1&-3\\ 1&1&0\end{pmatrix},\qquad B=\begin{pmatrix}-3&2&4\\ 1&0&2\\ 0&2&3\end{pmatrix}.

Step-by-step solution

  1. Check the shapes and fix the rule. AA is 3×33\times 3 and BB is 3×33\times 3, so the inner dimensions match and ABAB is 3×33\times 3. The entry in row ii, column jj is the dot product of row ii of AA with column jj of BB:

    (AB)ij=k=13AikBkj.(AB)_{ij}=\sum_{k=1}^{3}A_{ik}B_{kj}.

    Multiplying entry by entry in the same position is the classic error — that is not matrix multiplication.

  2. Compute row 1 of the product. Row 11 of AA is (1,3,2)(1,3,2):

    (1)(3)+(3)(1)+(2)(0)=0,(1)(-3)+(3)(1)+(2)(0)=0,
    (1)(2)+(3)(0)+(2)(2)=6,(1)(2)+(3)(0)+(2)(2)=6,
    (1)(4)+(3)(2)+(2)(3)=16.(1)(4)+(3)(2)+(2)(3)=16.

  3. Compute row 2. Row 22 of AA is (2,1,3)(2,-1,-3):

    (2)(3)+(1)(1)+(3)(0)=7,(2)(-3)+(-1)(1)+(-3)(0)=-7,
    (2)(2)+(1)(0)+(3)(2)=2,(2)(2)+(-1)(0)+(-3)(2)=-2,
    (2)(4)+(1)(2)+(3)(3)=3.(2)(4)+(-1)(2)+(-3)(3)=-3.

  4. Compute row 3. Row 33 of AA is (1,1,0)(1,1,0), so the third column of BB never contributes through its bottom entry:

    (1)(3)+(1)(1)+(0)(0)=2,(1)(-3)+(1)(1)+(0)(0)=-2,
    (1)(2)+(1)(0)+(0)(2)=2,(1)(2)+(1)(0)+(0)(2)=2,
    (1)(4)+(1)(2)+(0)(3)=6.(1)(4)+(1)(2)+(0)(3)=6.

  5. Assemble the product.

    AB=(0616723226).AB=\begin{pmatrix}0&6&16\\ -7&-2&-3\\ -2&2&6\end{pmatrix}.

  6. Spot-check with a column vector. Multiplying BB by (1,0,0)T(1,0,0)^{T} picks out its first column (3,1,0)T(-3,1,0)^{T}; then A(3,1,0)T=(3+3+0, 61+0, 3+1+0)T=(0,7,2)TA(-3,1,0)^{T}=(-3+3+0,\ -6-1+0,\ -3+1+0)^{T}=(0,-7,-2)^{T}, which is exactly the first column of ABAB ✓. Remember also that matrix multiplication is not commutative: BABA is a different matrix.

Answer

AB=(0616723226)AB=\begin{pmatrix}0&6&16\\ -7&-2&-3\\ -2&2&6\end{pmatrix}

Need to solve a different problem like this? Open the solver →