Question
Question: Compute matrix multiplication of (1×2) matrix and a (2×3) matrix....
Compute matrix multiplication of (1×2) matrix and a (2×3) matrix.
Solution
In the given problem we have to compute matrix multiplication of two different matrices with different dimensions so we assume two random matrices of given dimensions and then solve the multiplication by dot product of rows and columns in the standard way.
Complete solution step by step:
Firstly we have to suppose two different matrices with given dimensions of rows and columns
The first matrix is of (1×2) size which translates into – one row and two columns. This means we assume a matrix with random elements inside like this
\left[ {\begin{array}{{20}{c}}
4&5
\end{array}} \right] \bullet \left[ {\begin{array}{{20}{c}}
{\begin{array}{{20}{c}}
1&6&9
\end{array}} \\
{\begin{array}{{20}{c}}
5&2&4
\end{array}}
\end{array}} \right] = \left[ {\begin{array}{{20}{c}}
{4 \times 1 + 5 \times 5}&{4 \times 6 + 5 \times 2}&{4 \times 9 + 5 \times 4}
\end{array}} \right] = \left[ {\begin{array}{{20}{c}}
{4 + 25}&{24 + 10}&{36 + 20}
\end{array}} \right] \\
\Rightarrow \left[ {\begin{array}{{20}{c}}
4&5
\end{array}} \right] \bullet \left[ {\begin{array}{{20}{c}}
{\begin{array}{{20}{c}}
1&6&9
\end{array}} \\
{\begin{array}{{20}{c}}
5&2&4
\end{array}}
\end{array}} \right] = \left[ {\begin{array}{*{20}{c}}
{29}&{34}&{56}
\end{array}} \right] \\