Skill: Determine whether two matrices can be multiplied

Explanation and Free Practice Resources

For finite matrices with real entries, a product ABAB is defined when the number of columns of AA equals the number of rows of BB; these inner dimensions determine whether the row-by-column products can be formed. If AA is m×nm\times n and BB is n×pn\times p, then ABAB has dimensions m×pm\times p, so reversing the order may produce a different product or no defined product at all. Abstract generalizations beyond ordinary matrix dimensions are not included.

Detailed Explanation: Determine whether two matrices can be multiplied

To decide whether ABAB is defined, compare the number of columns in AA with the number of rows in BB. These are the inner dimensions: they must match. If AA is m×nm\times n and BB is n×pn\times p, then ABAB has dimensions m×pm\times p.

For example, let

A=[123456],B=[10213456].A=\begin{bmatrix}1&2&3\\4&5&6\end{bmatrix}, \qquad B=\begin{bmatrix}1&0\\2&1\\3&4\\5&6\end{bmatrix}.
  • AA has dimensions 2×32\times 3, and BB has dimensions 4×24\times 2.
  • For ABAB, the inner dimensions are 33 and 44. They do not match, so ABAB is not defined.
  • For BABA, the inner dimensions are 22 and 22. They match, so BABA is defined and has dimensions 4×34\times 3.

Always check the dimensions in the order the matrices are written: reversing the order can change whether a product is defined.

Learn by doing: Determine whether two matrices can be multiplied

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 Dimensions to Is Defined


    ?

    Download/Modify Free Grade 12 'Determine whether two matrices can be multiplied' Worksheet

    Print this free 'Determine whether two matrices can be multiplied' 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