Fatskills
Practice. Master. Repeat.
Study Guide: College Math: Algebra-II Matrices - Matrix Multiplication Dimensions and Calculation
Source: https://www.fatskills.com/college-math/chapter/collegemath-algebra-ii-matrices-matrix-multiplication-dimensions-and-calculation

College Math: Algebra-II Matrices - Matrix Multiplication Dimensions and Calculation

By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.

⏱️ ~9 min read

Matrix Multiplication – Dimensions and Calculation

What Is This?

Matrix multiplication is a fundamental operation in linear algebra that combines two matrices to produce another matrix. It's used to perform operations such as matrix-vector multiplication, matrix addition, and matrix inversion.

Why It Matters

Matrix multiplication is a crucial tool in many fields, including data analysis, machine learning, computer graphics, and physics. For example, in data analysis, matrix multiplication is used to perform operations such as data transformation, feature extraction, and dimensionality reduction.

Core Concepts

Matrix Dimensions

A matrix is a two-dimensional array of numbers. The dimensions of a matrix are denoted by m x n, where m is the number of rows and n is the number of columns. For matrix multiplication to be possible, the number of columns in the first matrix must be equal to the number of rows in the second matrix.

Matrix Multiplication Rules

The rules for matrix multiplication are as follows:

  • The number of columns in the first matrix must be equal to the number of rows in the second matrix.
  • The resulting matrix will have the same number of rows as the first matrix and the same number of columns as the second matrix.
  • Each element of the resulting matrix is calculated by multiplying the corresponding elements of the rows of the first matrix and the columns of the second matrix and summing the results.

Matrix Multiplication Formula

The formula for matrix multiplication is given by:

$$C_{ij} = \sum_{k=1}^{n} A_{ik}B_{kj}$$

where C is the resulting matrix, A is the first matrix, B is the second matrix, i is the row index of the resulting matrix, j is the column index of the resulting matrix, and k is the column index of the first matrix and the row index of the second matrix.

Step-by-Step: How to Approach Problems

To approach matrix multiplication problems, follow these steps:

  1. Check if the matrices can be multiplied by comparing the number of columns in the first matrix with the number of rows in the second matrix.
  2. Set up the resulting matrix by creating a matrix with the same number of rows as the first matrix and the same number of columns as the second matrix.
  3. Calculate each element of the resulting matrix by multiplying the corresponding elements of the rows of the first matrix and the columns of the second matrix and summing the results.
  4. Interpret the resulting matrix and check if it meets the requirements of the problem.

Solved Examples

Example 1: Matrix Multiplication with 2x2 Matrices

Given the matrices:

$$A = \begin{bmatrix} 1 & 2 \ 3 & 4 \end{bmatrix}$$

$$B = \begin{bmatrix} 5 & 6 \ 7 & 8 \end{bmatrix}$$

Find the product matrix C using matrix multiplication.

Solution

To find the product matrix C, we need to calculate each element of the matrix using the formula:

$$C_{ij} = \sum_{k=1}^{n} A_{ik}B_{kj}$$

For the first element C_{11}, we have:

$$C_{11} = A_{11}B_{11} + A_{12}B_{21} = (1)(5) + (2)(7) = 5 + 14 = 19$$

Similarly, we can calculate the other elements of the matrix:

$$C_{12} = A_{11}B_{12} + A_{12}B_{22} = (1)(6) + (2)(8) = 6 + 16 = 22$$

$$C_{21} = A_{21}B_{11} + A_{22}B_{21} = (3)(5) + (4)(7) = 15 + 28 = 43$$

$$C_{22} = A_{21}B_{12} + A_{22}B_{22} = (3)(6) + (4)(8) = 18 + 32 = 50$$

The resulting matrix is:

$$C = \begin{bmatrix} 19 & 22 \ 43 & 50 \end{bmatrix}$$

Example 2: Matrix Multiplication with 3x3 Matrices

Given the matrices:

$$A = \begin{bmatrix} 1 & 2 & 3 \ 4 & 5 & 6 \ 7 & 8 & 9 \end{bmatrix}$$

$$B = \begin{bmatrix} 10 & 11 & 12 \ 13 & 14 & 15 \ 16 & 17 & 18 \end{bmatrix}$$

Find the product matrix C using matrix multiplication.

Solution

To find the product matrix C, we need to calculate each element of the matrix using the formula:

$$C_{ij} = \sum_{k=1}^{n} A_{ik}B_{kj}$$

For the first element C_{11}, we have:

$$C_{11} = A_{11}B_{11} + A_{12}B_{21} + A_{13}B_{31} = (1)(10) + (2)(13) + (3)(16) = 10 + 26 + 48 = 84$$

Similarly, we can calculate the other elements of the matrix:

$$C_{12} = A_{11}B_{12} + A_{12}B_{22} + A_{13}B_{32} = (1)(11) + (2)(14) + (3)(17) = 11 + 28 + 51 = 90$$

$$C_{13} = A_{11}B_{13} + A_{12}B_{23} + A_{13}B_{33} = (1)(12) + (2)(15) + (3)(18) = 12 + 30 + 54 = 96$$

$$C_{21} = A_{21}B_{11} + A_{22}B_{21} + A_{23}B_{31} = (4)(10) + (5)(13) + (6)(16) = 40 + 65 + 96 = 201$$

$$C_{22} = A_{21}B_{12} + A_{22}B_{22} + A_{23}B_{32} = (4)(11) + (5)(14) + (6)(17) = 44 + 70 + 102 = 216$$

$$C_{23} = A_{21}B_{13} + A_{22}B_{23} + A_{23}B_{33} = (4)(12) + (5)(15) + (6)(18) = 48 + 75 + 108 = 231$$

$$C_{31} = A_{31}B_{11} + A_{32}B_{21} + A_{33}B_{31} = (7)(10) + (8)(13) + (9)(16) = 70 + 104 + 144 = 318$$

$$C_{32} = A_{31}B_{12} + A_{32}B_{22} + A_{33}B_{32} = (7)(11) + (8)(14) + (9)(17) = 77 + 112 + 153 = 342$$

$$C_{33} = A_{31}B_{13} + A_{32}B_{23} + A_{33}B_{33} = (7)(12) + (8)(15) + (9)(18) = 84 + 120 + 162 = 366$$

The resulting matrix is:

$$C = \begin{bmatrix} 84 & 90 & 96 \ 201 & 216 & 231 \ 318 & 342 & 366 \end{bmatrix}$$

Common Pitfalls & Mistakes

Mistake 1: Incorrect Matrix Dimensions

One common mistake is to multiply matrices with incorrect dimensions. For example, trying to multiply a 2x3 matrix with a 3x4 matrix will result in an error.

Mistake 2: Incorrect Calculation

Another common mistake is to calculate the elements of the resulting matrix incorrectly. For example, forgetting to multiply the corresponding elements of the rows of the first matrix and the columns of the second matrix.

Mistake 3: Incorrect Interpretation

A third common mistake is to interpret the resulting matrix incorrectly. For example, forgetting to check if the resulting matrix meets the requirements of the problem.

Best Practices & Study Tips

Practice, Practice, Practice

The best way to master matrix multiplication is to practice, practice, practice. Start with simple examples and gradually move on to more complex ones.

Use a Calculator or Software

If you're struggling with matrix multiplication, use a calculator or software to check your work.

Check Your Work

Always check your work by recalculating the elements of the resulting matrix.

Tools & Software

Graphing Calculators

Graphing calculators such as the TI-84 or Desmos can be used to perform matrix multiplication.

Statistical Software

Statistical software such as R or Python libraries like NumPy/SciPy can be used to perform matrix multiplication.

Symbolic Math Tools

Symbolic math tools such as Wolfram Alpha or Symbolab can be used to perform matrix multiplication.

Real-World Use Cases

Data Analysis

Matrix multiplication is used in data analysis to perform operations such as data transformation, feature extraction, and dimensionality reduction.

Machine Learning

Matrix multiplication is used in machine learning to perform operations such as neural network training and prediction.

Computer Graphics

Matrix multiplication is used in computer graphics to perform operations such as 3D transformations and projections.

Check Your Understanding (MCQs)

Question 1

What is the result of multiplying the matrices:

$$A = \begin{bmatrix} 1 & 2 \ 3 & 4 \end{bmatrix}$$

$$B = \begin{bmatrix} 5 & 6 \ 7 & 8 \end{bmatrix}$$

A) $\begin{bmatrix} 19 & 22 \ 43 & 50 \end{bmatrix}$ B) $\begin{bmatrix} 20 & 24 \ 46 & 52 \end{bmatrix}$ C) $\begin{bmatrix} 21 & 26 \ 49 & 56 \end{bmatrix}$ D) $\begin{bmatrix} 22 & 28 \ 52 & 60 \end{bmatrix}$

Correct Answer: A) $\begin{bmatrix} 19 & 22 \ 43 & 50 \end{bmatrix}$

Explanation

The correct answer is A) $\begin{bmatrix} 19 & 22 \ 43 & 50 \end{bmatrix}$ because the result of multiplying the matrices is:

$$C = \begin{bmatrix} 1(5) + 2(7) & 1(6) + 2(8) \ 3(5) + 4(7) & 3(6) + 4(8) \end{bmatrix} = \begin{bmatrix} 19 & 22 \ 43 & 50 \end{bmatrix}$$

Why the Distractors Are Tempting

The distractors are tempting because they are close to the correct answer, but they are not correct. For example, option B) $\begin{bmatrix} 20 & 24 \ 46 & 52 \end{bmatrix}$ is tempting because it is close to the correct answer, but it is not correct because the result of multiplying the matrices is not $\begin{bmatrix} 20 & 24 \ 46 & 52 \end{bmatrix}$.

Question 2

What is the result of multiplying the matrices:

$$A = \begin{bmatrix} 1 & 2 & 3 \ 4 & 5 & 6 \ 7 & 8 & 9 \end{bmatrix}$$

$$B = \begin{bmatrix} 10 & 11 & 12 \ 13 & 14 & 15 \ 16 & 17 & 18 \end{bmatrix}$$

A) $\begin{bmatrix} 84 & 90 & 96 \ 201 & 216 & 231 \ 318 & 342 & 366 \end{bmatrix}$ B) $\begin{bmatrix} 85 & 91 & 97 \ 202 & 217 & 232 \ 319 & 343 & 367 \end{bmatrix}$ C) $\begin{bmatrix} 86 & 92 & 98 \ 203 & 218 & 233 \ 320 & 344 & 368 \end{bmatrix}$ D) $\begin{bmatrix} 87 & 93 & 99 \ 204 & 219 & 234 \end{bmatrix}$

Correct Answer: A) $\begin{bmatrix} 84 & 90 & 96 \ 201 & 216 & 231 \ 318 & 342 & 366 \end{bmatrix}$

Explanation

The correct answer is A) $\begin{bmatrix} 84 & 90 & 96 \ 201 & 216 & 231 \ 318 & 342 & 366 \end{bmatrix}$ because the result of multiplying the matrices is:

$$C = \begin{bmatrix} 1(10) + 2(13) + 3(16) & 1(11) + 2(14) + 3(17) & 1(12) + 2(15) + 3(18) \ 4(10) + 5(13) + 6(16) & 4(11) + 5(14) + 6(17) & 4(12) + 5(15) + 6(18) \ 7(10) + 8(13) + 9(16) & 7(11) + 8(14) + 9(17) & 7(12) + 8(15) + 9(18) \end{bmatrix} = \begin{bmatrix} 84 & 90 & 96 \ 201 & 216 & 231 \ 318 & 342 & 366 \end{bmatrix}$$

Why the Distractors Are Tempting

The distractors are tempting because they are close to the correct answer, but they are not correct. For example, option B) $\begin{bmatrix} 85 & 91 & 97 \ 202 & 217 & 232 \ 319 & 343 & 367 \end{bmatrix}$ is tempting because it is close to the correct answer, but it is not correct because the result of multiplying the matrices is not $\begin{bmatrix} 85 & 91 & 97 \ 202 & 217 & 232 \ 319 & 343 & 367 \end{bmatrix}$.

Question 3

What is the result of multiplying the matrices:

$$A = \begin{bmatrix} 1 & 2 \ 3 & 4 \end{bmatrix}$$

$$B = \begin{bmatrix} 5 & 6 \ 7 & 8 \end{bmatrix}$$

A) $\begin{bmatrix} 19 & 22 \ 43 & 50 \end{bmatrix}$ B) $\begin{bmatrix} 20 & 24 \ 46 & 52 \end{bmatrix}$ C) $\begin{bmatrix} 21 & 26 \ 49 & 56 \end{bmatrix}$ D) $\begin{bmatrix} 22 & 28 \ 52 & 60 \end{bmatrix}$

Correct Answer: A) $\begin{bmatrix} 19 & 22 \ 43 & 50 \end{bmatrix}$

Explanation

The correct answer is A) $\begin{bmatrix} 19 & 22 \ 43 & 50 \end{bmatrix}$ because the result of multiplying the matrices is:

$$C = \begin{bmatrix} 1(5) + 2(7) & 1(6) + 2(8) \ 3(5) + 4(7) & 3(6) + 4(8) \end{bmatrix} = \begin{bmatrix} 19 & 22 \ 43 & 50 \end{bmatrix}$$

Why the Distractors Are Tempting

The distractors are tempting because they are close to the correct answer, but they are not correct. For example, option B) $\begin{bmatrix} 20 & 24 \ 46 & 52 \end{bmatrix}$ is tempting because it is close to the correct answer, but it is not correct because the result of multiplying the matrices is not $\begin{bmatrix} 20 & 24 \ 46 & 52 \end{bmatrix}$.

Learning Path

Prerequisite Knowledge

To master matrix multiplication, you need to have a good understanding of linear algebra, including vectors, matrices, and operations such as addition, subtraction, and multiplication.

Recommended Resources

To learn matrix multiplication, you can use resources such as textbooks, online courses, and practice problems. Some recommended resources include:

  • "Linear Algebra and Its Applications" by Gilbert Strang
  • "Matrix Algebra" by James E. Gentle
  • "Linear Algebra" by MIT OpenCourseWare
  • "Matrix Multiplication" by Khan Academy
  • "Matrix Multiplication" by Coursera

Advanced Topics

Once you have a good understanding of matrix multiplication, you can move on to advanced topics such as:

  • Matrix inversion
  • Matrix determinant
  • Eigenvalues and eigenvectors
  • Singular value decomposition

Further Resources

Textbooks

  • "Linear Algebra and Its Applications" by Gilbert Strang
  • "Matrix Algebra" by James E. Gentle
  • "Linear Algebra" by David C. Lay

Online Courses

  • "Linear Algebra" by MIT OpenCourseWare
  • "Matrix Multiplication" by Khan Academy
  • "Matrix Multiplication" by Coursera

Practice Problems

  • "Linear Algebra Practice Problems" by MIT OpenCourseWare
  • "Matrix Multiplication Practice Problems" by Khan Academy
  • "Matrix Multiplication Practice Problems" by Coursera

YouTube Channels

  • 3Blue1Brown
  • StatQuest

Practice Problem Sites

  • MIT OpenCourseWare
  • Khan Academy
  • Coursera

30-Second Cheat Sheet

Must-Remember Facts

  • Matrix multiplication is a fundamental operation in linear algebra.
  • The number of columns in the first matrix must be equal to the number of rows in the second matrix.
  • The resulting matrix will have the same number of rows as the first matrix and the same number of columns as the second matrix.
  • Each element of the resulting matrix is calculated by multiplying the corresponding elements of the rows of the first matrix and the columns of the second matrix and summing the results.

Must-Remember Formulas

  • $C_{ij} = \sum_{k=1}^{n} A_{ik}B_{kj}$
  • $C = AB$

Must-Remember Principles

  • Matrix multiplication is associative but not commutative.
  • Matrix multiplication is distributive over addition.

Related Topics

Linear Independence

Linear independence is a fundamental concept in linear algebra that deals with the independence of vectors. It is closely related to matrix multiplication and is used to determine the rank of a matrix.

Eigenvalues and Eigenvectors

Eigenvalues and eigenvectors are fundamental concepts in linear algebra that deal with the properties of matrices. They are closely related to matrix multiplication and are used to determine the stability of a system.

Singular Value Decomposition

Singular value decomposition is a fundamental concept in linear algebra that deals with the decomposition of a matrix into three matrices. It is closely related to matrix multiplication and is used to determine the rank of a matrix.