Multiplying Matrices: A Comprehensive Guide
Matrix multiplication is a fundamental operation in linear algebra, with wide-ranging applications in physics, engineering, machine learning, and more. It's a powerful tool that allows us to represent and manipulate complex systems. In this guide, we'll walk you through the process of multiplying matrices step by step, using clear, engaging language, and plenty of examples.
Understanding Matrix Multiplication
Before we dive into the mechanics of matrix multiplication, let's ensure we understand what it is and why it's important. Matrix multiplication is a binary operation that takes two matrices and returns a new matrix. It's not the same as adding or scaling matrices. Instead, it's a way of combining information from both matrices to create new data.
Why is matrix multiplication so useful? Because it allows us to represent and manipulate complex systems in a compact, efficient way. It's the backbone of many advanced mathematical techniques, from solving systems of linear equations to training neural networks.

Notation and Terminology
Before we start multiplying matrices, let's establish some notation and terminology. A matrix is a rectangular array of numbers, typically denoted by a capital letter, like A or B. The size of a matrix is given by the number of rows and columns it has, written as rows x columns.
For example, consider the following matrices:
| A | B | ||||||||||
|
|
Matrix A has 2 rows and 2 columns, so it's a 2x2 matrix. Matrix B has 2 rows and 3 columns, so it's a 2x3 matrix.

Matrix Multiplication Rules
Now, let's discuss the rules of matrix multiplication. There are two key rules to remember:
- The number of columns in the first matrix must equal the number of rows in the second matrix.
- The resulting matrix will have the number of rows from the first matrix and the number of columns from the second matrix.
For example, we can multiply matrix A (2x2) by matrix B (2x3), but we cannot multiply matrix A by matrix B (2x2) because the number of columns in A does not equal the number of rows in B.
Calculating Matrix Multiplication
Now that we understand the rules, let's calculate the product of matrices A and B. The entry in the i-th row and j-th column of the product is calculated as the dot product of the i-th row of the first matrix and the j-th column of the second matrix.
In other words, to find the entry in the i-th row and j-th column of the product, we multiply each element in the i-th row of the first matrix by the corresponding element in the j-th column of the second matrix, and then add up these products.
Let's calculate the product of matrices A and B:
| A | B | AB | ||||||||||||||||
|
|
|
For example, the entry in the first row and first column of the product (11) is calculated as follows:
(1*5) + (2*8) = 11
Matrix Multiplication Properties
Matrix multiplication is not commutative, meaning that AB is not necessarily equal to BA. In fact, matrix multiplication is not even associative, meaning that (AB)C is not necessarily equal to A(BC).
However, matrix multiplication is associative when it comes to the order of addition and subtraction. This means that (A + B)C is equal to AC + BC, and A(B + C) is equal to AB + AC.
Applications of Matrix Multiplication
Matrix multiplication has a wide range of applications. In physics, it's used to represent and manipulate systems of linear equations. In engineering, it's used in control theory and signal processing. In machine learning, it's used to train neural networks and perform other advanced operations.
In fact, matrix multiplication is so fundamental to so many fields that it's worth taking the time to understand it thoroughly. With practice, you'll find that matrix multiplication becomes second nature, and you'll be able to use it to solve complex problems with ease.