Skip to main content
The new Teacher Workspace is here. Your first 3 assignments are free. Try it →

Product of two matrices

The product of two matrices is the new matrix you get by multiplying each row of the first matrix with each column of the second matrix and adding the results. In College Algebra, it only works when the inside dimensions match.

Last updated July 2026

What is the product of two matrices?

In College Algebra, the product of two matrices is the result of matrix multiplication, where you take a row from the first matrix and a column from the second matrix, multiply matching entries, then add them. That dot-product style calculation gives each entry in the new matrix.

The setup matters as much as the arithmetic. If the first matrix is m x n and the second matrix is n x p, the product exists and the result will be an m x p matrix. If the number of columns in the first matrix does not match the number of rows in the second, you cannot multiply them in that order.

A quick example makes the rule easier to see. If A is a 2 x 3 matrix and B is a 3 x 2 matrix, then AB is defined and will be a 2 x 2 matrix. To find one entry, say the top-left entry, you multiply the first row of A by the first column of B and add: that single entry summarizes one row-column pairing.

Matrix multiplication is not commutative, so AB and BA are usually different, and BA might not even be defined. That is one of the biggest differences from ordinary number multiplication. Order changes the result because rows and columns interact in a specific direction.

A common mistake is trying to multiply matrices entry by entry. That is not matrix multiplication. Another mistake is checking the arithmetic before checking dimensions. In College Algebra, dimension matching is the first gate, and the row-times-column rule is the second.

Why the product of two matrices matters in College Algebra

The product of two matrices shows up whenever College Algebra moves from single equations to systems and transformations. It gives you a compact way to combine many arithmetic steps into one structured calculation, especially when you are working with systems of linear equations written in matrix form.

This term also connects directly to how matrices organize information. A matrix can hold coefficients, input-output values, or transformations, and multiplying matrices tells you what happens when one operation is followed by another. That is why the order matters so much. The product is not just a new table of numbers, it represents a specific relationship between two data sets or two steps in a process.

You also need this idea to recognize when a matrix setup is valid. In problem sets, one of the first questions is often whether the product exists. If you can read the dimensions quickly, you save time and avoid setting up a calculation that cannot work.

Because matrix multiplication connects to systems of equations, it also prepares you for later algebra topics where matrices are used as tools rather than just objects to compute with. Once you understand the product, inverse matrices, identity matrices, and solving systems all make more sense.

Keep studying College Algebra Unit 7

Official unit cheatsheet

open one-pager

How the product of two matrices connects across the course

Matrix

A matrix is the object you multiply, so you need to know its dimensions before you can find a product. In College Algebra, matrices often store coefficients from systems of equations or organized data. The product of two matrices depends on how those matrices are shaped, which is why reading rows and columns correctly comes first.

Identity Matrix

The identity matrix acts like 1 for matrix multiplication. If the product is defined, multiplying a matrix by the identity matrix leaves the matrix unchanged. That makes identity matrices a useful check when you are working with matrix equations or inverse matrices, because they show whether your multiplication setup is behaving correctly.

Transpose

The transpose switches rows and columns, which can change whether a product is possible and what the result looks like. In some problems, you transpose a matrix before multiplying so the dimensions line up. It is a useful companion skill because matrix multiplication depends on row-column matching.

row matrix

A row matrix has one row, so it can serve as the first matrix in a product when its number of columns matches the other matrix's number of rows. Seeing a row matrix helps you notice the row-by-column rule in action. It is also a good reminder that matrix shape controls whether multiplication is defined.

Is the product of two matrices on the College Algebra exam?

A quiz or problem set item usually asks you to decide whether two matrices can be multiplied, then find the product if they can. You may need to show the dimension check first, then compute each entry with row-by-column multiplication. If the matrices represent a system of equations or a transformation, you may also be asked to interpret what the product means rather than just calculate it.

Watch for order questions. If a prompt gives both AB and BA, one might exist while the other does not, and the answers may be different even when both are defined. A strong response shows the setup, the arithmetic, and the final matrix clearly.

Key things to remember about the product of two matrices

  • The product of two matrices is found by taking dot products of rows from the first matrix with columns from the second matrix.

  • Matrix multiplication only works when the inside dimensions match, so the number of columns in the first matrix must equal the number of rows in the second.

  • If an m x n matrix is multiplied by an n x p matrix, the product is an m x p matrix.

  • Matrix multiplication is not commutative, so AB and BA are usually different and may not both be defined.

  • In College Algebra, matrix products often appear in systems of equations and other problems where order and dimensions matter.

Frequently asked questions about the product of two matrices

What is the product of two matrices in College Algebra?

It is the matrix you get by multiplying rows of the first matrix by columns of the second matrix and adding the matching products. The product exists only when the first matrix's columns match the second matrix's rows. That rule is what makes matrix multiplication different from regular number multiplication.

How do you find the product of two matrices?

First check the dimensions to make sure multiplication is allowed. Then take each row of the first matrix and each column of the second matrix, multiply the matching entries, and add them to get one entry in the result. Repeat that for every row-column pair.

Why is matrix multiplication not commutative?

The order matters because the rows from the first matrix and the columns from the second matrix are paired in a specific way. Swapping the matrices changes which rows and columns interact, so AB usually does not equal BA. Sometimes BA is not even defined.

Can you multiply a matrix by a zero matrix?

Yes, and the product is a zero matrix as long as the dimensions are compatible. Every row-column dot product includes zeros, so each entry in the result comes out to 0. This is a useful check when you are practicing matrix multiplication.

Product of Two Matrices | College Algebra | Fiveable