Formulaic Maths Problems - get another problem: level 1, level 2, level 3 - link to this problem
Let $A = \begin{pmatrix} 10 & 1 & 3 & 6 \\ -2 & 10 & -9 & -2 \end{pmatrix}$ and $B = \begin{pmatrix} -4 & -12 & 9 & -12 \\ 4 & 5 & -7 & 2 \\ 12 & 3 & -9 & 12 \\ -1 & 12 & -2 & 10 \end{pmatrix}$. Find $AB$.
Row 1, column 1: Hint: Row 1 of $A$ is $\begin{pmatrix} 10 & 1 & 3 & 6 \end{pmatrix}$. Column 1 of $B$ is $\begin{pmatrix} -4 \\ 4 \\ 12 \\ -1 \end{pmatrix}$. Multiply in pairs and add the results.
$\class{inputBox step1}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c0a0}}\hspace{40px}}~} \times \class{inputBox step1}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c0b0}}\hspace{40px}}~} + \class{inputBox step1}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c0a1}}\hspace{40px}}~} \times \class{inputBox step1}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c0b1}}\hspace{40px}}~} + \class{inputBox step1}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c0a2}}\hspace{40px}}~} \times \class{inputBox step1}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c0b2}}\hspace{40px}}~} + \class{inputBox step1}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c0a3}}\hspace{40px}}~} \times \class{inputBox step1}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c0b3}}\hspace{40px}}~}$ $10 \times -4 + 1 \times 4 + 3 \times 12 + 6 \times -1$
$= \class{inputBox step2}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c0p0}}\hspace{54px}}~} + \class{inputBox step2}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c0p1}}\hspace{54px}}~} + \class{inputBox step2}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c0p2}}\hspace{54px}}~} + \class{inputBox step2}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c0p3}}\hspace{54px}}~} = \class{inputBox step2}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c0R}}\hspace{54px}}~}$ $= -40 + 4 + 36 + -6 = -6$
Row 1, column 2: Hint: Row 1 of $A$ is $\begin{pmatrix} 10 & 1 & 3 & 6 \end{pmatrix}$. Column 2 of $B$ is $\begin{pmatrix} -12 \\ 5 \\ 3 \\ 12 \end{pmatrix}$. Multiply in pairs and add the results.
$\class{inputBox step3}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c1a0}}\hspace{40px}}~} \times \class{inputBox step3}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c1b0}}\hspace{40px}}~} + \class{inputBox step3}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c1a1}}\hspace{40px}}~} \times \class{inputBox step3}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c1b1}}\hspace{40px}}~} + \class{inputBox step3}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c1a2}}\hspace{40px}}~} \times \class{inputBox step3}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c1b2}}\hspace{40px}}~} + \class{inputBox step3}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c1a3}}\hspace{40px}}~} \times \class{inputBox step3}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c1b3}}\hspace{40px}}~}$ $10 \times -12 + 1 \times 5 + 3 \times 3 + 6 \times 12$
$= \class{inputBox step4}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c1p0}}\hspace{54px}}~} + \class{inputBox step4}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c1p1}}\hspace{54px}}~} + \class{inputBox step4}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c1p2}}\hspace{54px}}~} + \class{inputBox step4}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c1p3}}\hspace{54px}}~} = \class{inputBox step4}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c1R}}\hspace{54px}}~}$ $= -120 + 5 + 9 + 72 = -34$
Row 1, column 3: Hint: Row 1 of $A$ is $\begin{pmatrix} 10 & 1 & 3 & 6 \end{pmatrix}$. Column 3 of $B$ is $\begin{pmatrix} 9 \\ -7 \\ -9 \\ -2 \end{pmatrix}$. Multiply in pairs and add the results.
$\class{inputBox step5}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c2a0}}\hspace{40px}}~} \times \class{inputBox step5}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c2b0}}\hspace{40px}}~} + \class{inputBox step5}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c2a1}}\hspace{40px}}~} \times \class{inputBox step5}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c2b1}}\hspace{40px}}~} + \class{inputBox step5}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c2a2}}\hspace{40px}}~} \times \class{inputBox step5}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c2b2}}\hspace{40px}}~} + \class{inputBox step5}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c2a3}}\hspace{40px}}~} \times \class{inputBox step5}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c2b3}}\hspace{40px}}~}$ $10 \times 9 + 1 \times -7 + 3 \times -9 + 6 \times -2$
$= \class{inputBox step6}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c2p0}}\hspace{54px}}~} + \class{inputBox step6}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c2p1}}\hspace{54px}}~} + \class{inputBox step6}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c2p2}}\hspace{54px}}~} + \class{inputBox step6}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c2p3}}\hspace{54px}}~} = \class{inputBox step6}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c2R}}\hspace{54px}}~}$ $= 90 + -7 + -27 + -12 = 44$
Row 1, column 4: Hint: Row 1 of $A$ is $\begin{pmatrix} 10 & 1 & 3 & 6 \end{pmatrix}$. Column 4 of $B$ is $\begin{pmatrix} -12 \\ 2 \\ 12 \\ 10 \end{pmatrix}$. Multiply in pairs and add the results.
$\class{inputBox step7}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c3a0}}\hspace{40px}}~} \times \class{inputBox step7}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c3b0}}\hspace{40px}}~} + \class{inputBox step7}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c3a1}}\hspace{40px}}~} \times \class{inputBox step7}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c3b1}}\hspace{40px}}~} + \class{inputBox step7}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c3a2}}\hspace{40px}}~} \times \class{inputBox step7}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c3b2}}\hspace{40px}}~} + \class{inputBox step7}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c3a3}}\hspace{40px}}~} \times \class{inputBox step7}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c3b3}}\hspace{40px}}~}$ $10 \times -12 + 1 \times 2 + 3 \times 12 + 6 \times 10$
$= \class{inputBox step8}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c3p0}}\hspace{54px}}~} + \class{inputBox step8}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c3p1}}\hspace{54px}}~} + \class{inputBox step8}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c3p2}}\hspace{54px}}~} + \class{inputBox step8}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c3p3}}\hspace{54px}}~} = \class{inputBox step8}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r0c3R}}\hspace{54px}}~}$ $= -120 + 2 + 36 + 60 = -22$
Row 2, column 1: Hint: Row 2 of $A$ is $\begin{pmatrix} -2 & 10 & -9 & -2 \end{pmatrix}$. Column 1 of $B$ is $\begin{pmatrix} -4 \\ 4 \\ 12 \\ -1 \end{pmatrix}$. Multiply in pairs and add the results.
$\class{inputBox step9}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c0a0}}\hspace{40px}}~} \times \class{inputBox step9}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c0b0}}\hspace{40px}}~} + \class{inputBox step9}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c0a1}}\hspace{40px}}~} \times \class{inputBox step9}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c0b1}}\hspace{40px}}~} + \class{inputBox step9}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c0a2}}\hspace{40px}}~} \times \class{inputBox step9}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c0b2}}\hspace{40px}}~} + \class{inputBox step9}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c0a3}}\hspace{40px}}~} \times \class{inputBox step9}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c0b3}}\hspace{40px}}~}$ $-2 \times -4 + 10 \times 4 + -9 \times 12 + -2 \times -1$
$= \class{inputBox step10}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c0p0}}\hspace{54px}}~} + \class{inputBox step10}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c0p1}}\hspace{54px}}~} + \class{inputBox step10}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c0p2}}\hspace{54px}}~} + \class{inputBox step10}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c0p3}}\hspace{54px}}~} = \class{inputBox step10}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c0R}}\hspace{54px}}~}$ $= 8 + 40 + -108 + 2 = -58$
Row 2, column 2: Hint: Row 2 of $A$ is $\begin{pmatrix} -2 & 10 & -9 & -2 \end{pmatrix}$. Column 2 of $B$ is $\begin{pmatrix} -12 \\ 5 \\ 3 \\ 12 \end{pmatrix}$. Multiply in pairs and add the results.
$\class{inputBox step11}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c1a0}}\hspace{40px}}~} \times \class{inputBox step11}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c1b0}}\hspace{40px}}~} + \class{inputBox step11}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c1a1}}\hspace{40px}}~} \times \class{inputBox step11}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c1b1}}\hspace{40px}}~} + \class{inputBox step11}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c1a2}}\hspace{40px}}~} \times \class{inputBox step11}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c1b2}}\hspace{40px}}~} + \class{inputBox step11}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c1a3}}\hspace{40px}}~} \times \class{inputBox step11}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c1b3}}\hspace{40px}}~}$ $-2 \times -12 + 10 \times 5 + -9 \times 3 + -2 \times 12$
$= \class{inputBox step12}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c1p0}}\hspace{54px}}~} + \class{inputBox step12}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c1p1}}\hspace{54px}}~} + \class{inputBox step12}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c1p2}}\hspace{54px}}~} + \class{inputBox step12}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c1p3}}\hspace{54px}}~} = \class{inputBox step12}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c1R}}\hspace{54px}}~}$ $= 24 + 50 + -27 + -24 = 23$
Row 2, column 3: Hint: Row 2 of $A$ is $\begin{pmatrix} -2 & 10 & -9 & -2 \end{pmatrix}$. Column 3 of $B$ is $\begin{pmatrix} 9 \\ -7 \\ -9 \\ -2 \end{pmatrix}$. Multiply in pairs and add the results.
$\class{inputBox step13}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c2a0}}\hspace{40px}}~} \times \class{inputBox step13}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c2b0}}\hspace{40px}}~} + \class{inputBox step13}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c2a1}}\hspace{40px}}~} \times \class{inputBox step13}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c2b1}}\hspace{40px}}~} + \class{inputBox step13}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c2a2}}\hspace{40px}}~} \times \class{inputBox step13}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c2b2}}\hspace{40px}}~} + \class{inputBox step13}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c2a3}}\hspace{40px}}~} \times \class{inputBox step13}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c2b3}}\hspace{40px}}~}$ $-2 \times 9 + 10 \times -7 + -9 \times -9 + -2 \times -2$
$= \class{inputBox step14}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c2p0}}\hspace{54px}}~} + \class{inputBox step14}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c2p1}}\hspace{54px}}~} + \class{inputBox step14}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c2p2}}\hspace{54px}}~} + \class{inputBox step14}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c2p3}}\hspace{54px}}~} = \class{inputBox step14}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c2R}}\hspace{54px}}~}$ $= -18 + -70 + 81 + 4 = -3$
Row 2, column 4: Hint: Row 2 of $A$ is $\begin{pmatrix} -2 & 10 & -9 & -2 \end{pmatrix}$. Column 4 of $B$ is $\begin{pmatrix} -12 \\ 2 \\ 12 \\ 10 \end{pmatrix}$. Multiply in pairs and add the results.
$\class{inputBox step15}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c3a0}}\hspace{40px}}~} \times \class{inputBox step15}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c3b0}}\hspace{40px}}~} + \class{inputBox step15}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c3a1}}\hspace{40px}}~} \times \class{inputBox step15}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c3b1}}\hspace{40px}}~} + \class{inputBox step15}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c3a2}}\hspace{40px}}~} \times \class{inputBox step15}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c3b2}}\hspace{40px}}~} + \class{inputBox step15}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c3a3}}\hspace{40px}}~} \times \class{inputBox step15}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c3b3}}\hspace{40px}}~}$ $-2 \times -12 + 10 \times 2 + -9 \times 12 + -2 \times 10$
$= \class{inputBox step16}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c3p0}}\hspace{54px}}~} + \class{inputBox step16}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c3p1}}\hspace{54px}}~} + \class{inputBox step16}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c3p2}}\hspace{54px}}~} + \class{inputBox step16}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c3p3}}\hspace{54px}}~} = \class{inputBox step16}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{r1c3R}}\hspace{54px}}~}$ $= 24 + 20 + -108 + -20 = -84$
Therefore,
$AB = \begin{pmatrix} \class{inputBox step17}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{Fr0c0}}\hspace{54px}}~} & \class{inputBox step17}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{Fr0c1}}\hspace{54px}}~} & \class{inputBox step17}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{Fr0c2}}\hspace{54px}}~} & \class{inputBox step17}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{Fr0c3}}\hspace{54px}}~} \\ \class{inputBox step17}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{Fr1c0}}\hspace{54px}}~} & \class{inputBox step17}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{Fr1c1}}\hspace{54px}}~} & \class{inputBox step17}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{Fr1c2}}\hspace{54px}}~} & \class{inputBox step17}{~\bbox[border:2px solid blue]{\strut\rlap{\class{inputReplace}{Fr1c3}}\hspace{54px}}~} \end{pmatrix}$ $AB = \begin{pmatrix} -6 & -34 & 44 & -22 \\ -58 & 23 & -3 & -84 \end{pmatrix}$