Matrix Multiplication And Power Of A Matrix
Theory
Matrix multiplication uses the row-by-column rule: to find entry
Matrix multiplication uses a row-by-column rule, and only works when the dimensions "match up".
If
Each entry of the product is found by taking the corresponding row of the left matrix and column of the right matrix, multiplying entries pairwise, and adding:
For a square matrix
The first diagram shows the dimension rule: inner dimensions must match. The second visualises the row-by-column rule using a single entry of the product.
The key idea is a single rule plus a dimension check.
The row-by-column rule
If
Powers of a square matrix
Powers are only defined when
Key properties
| Property | Statement |
|---|---|
| Associative | |
| Distributive | |
| Identity | |
| Zero | |
| Not commutative |
How to compute
- Check the dimensions. If
is and is , the product is defined. The result has order . - Set up a blank result matrix of order
. - For each entry
, take row of and column of , multiply matching entries, and add. - Fill in every entry of the result.
How to compute for a square matrix
- Write
. - Apply the row-by-column rule on the two copies of
. - The result has the same order as
.
How to find a missing entry in a product equation
- Locate the entry of the product that depends on the unknown.
- Write the row-by-column equation for that entry and substitute known values.
- Solve the resulting linear equation for the unknown.
Both matrices are
| Top-left | ||
| Top-right | ||
| Bottom-left | ||
| Bottom-right |
Answer:
| Top-left | ||
| Top-right | ||
| Bottom-left | ||
| Bottom-right |
The top-left entry of the product comes from row 1 of the left matrix and column 1 of the right matrix.
Answer:
Common pitfalls
Frequently asked questions
When is the product AB defined?
Only when the number of columns of A equals the number of rows of B. If A is m by n and B is n by p, then AB is defined and has order m by p. If the inner dimensions do not match, the product does not exist.
How do I compute each entry of AB?
Each entry (AB) subscript ij is found by taking the i-th row of A and the j-th column of B, multiplying matching entries together, and adding the results. This is called the row-by-column rule.
Is matrix multiplication commutative?
No. In general AB does not equal BA. Sometimes only one of the two is even defined. Always do the multiplication in the order asked.
What is A squared?
A squared means A times A using the row-by-column rule. It is only defined for square matrices, because you need A's columns to match A's rows. A squared is NOT the same as squaring each entry.
What is the identity matrix's role in multiplication?
Multiplying any matrix A by the identity matrix I of the right size leaves A unchanged. That is, AI equals IA equals A. The identity plays the role of the number 1 in ordinary multiplication.
How do I find a missing entry in a matrix product?
Use the row-by-column rule to write the equation for the entry that contains the unknown. That gives one linear equation in one variable, which you can solve directly.
Practice Questions
20 questions available.
Practice Questions