Skill: Multiply two matrices

Explanation and Free Practice Resources

For finite matrices with real-number entries, multiplication is defined when the number of columns in the first matrix equals the number of rows in the second; each entry of the product is the sum of products pairing one row with one column. The product’s dimensions come from the outer dimensions, and reversing the factors generally changes the result or makes the product undefined, reflecting the order of composed linear transformations. Abstract and infinite-dimensional matrix products are not included.

Detailed Explanation: Multiply two matrices

To multiply matrices, the number of columns in the first matrix must equal the number of rows in the second. Each entry in the product comes from multiplying one row by one column, then adding the results.

For example, let

A=[120−134],B=[210−253].A=\begin{bmatrix} 1&2&0\\ -1&3&4 \end{bmatrix}, \qquad B=\begin{bmatrix} 2&1\\ 0&-2\\ 5&3 \end{bmatrix}.

Matrix AA is 2×32\times3 and BB is 3×23\times2. The inner dimensions match, so ABAB is defined; its dimensions are the outer dimensions, 2×22\times2.

Calculate each entry using a row of AA and a column of BB:

AB=[1(2)+2(0)+0(5)1(1)+2(−2)+0(3)(−1)(2)+3(0)+4(5)(−1)(1)+3(−2)+4(3)]=[2−3185].AB= \begin{bmatrix} 1(2)+2(0)+0(5) & 1(1)+2(-2)+0(3)\\ (-1)(2)+3(0)+4(5) & (-1)(1)+3(-2)+4(3) \end{bmatrix} = \begin{bmatrix} 2&-3\\ 18&5 \end{bmatrix}.

The order matters: reversing the factors gives a 3×33\times3 product, not the same 2×22\times2 matrix.

Learn by doing: Multiply two matrices

Click a topic below to practice the foundational skills you'll need, learn the steps, or master this skill

Your results

Practice with unlimited practice problems

Matrices - Multiply - Two Matrices Full Matrix to Values


    ?

    Download/Modify Free Grade 12 'Multiply two matrices' Worksheet

    Print this free 'Multiply two matrices' worksheet to practice this skill away from the computer. Click 'Modify' to easily customize this worksheet to your exact needs.

    Explore More Grade 12 Math