S7-SA2-0005
What is Matrix Multiplication?
Grade Level:
Class 12
AI/ML, Physics, Biotechnology, FinTech, EVs, Space Technology, Climate Science, Blockchain, Medicine, Engineering, Law, Economics
Definition
What is it?
Matrix multiplication is a special way to combine two matrices (rectangular arrays of numbers) to get a new matrix. It's not just multiplying numbers in the same spot; instead, you multiply rows of the first matrix by columns of the second matrix and then add the results.
Simple Example
Quick Example
Imagine you have two shops, Shop A and Shop B, selling samosas and jalebis. You know how many of each item each shop sold (Matrix 1). You also know the price of one samosa and one jalebi (Matrix 2). Matrix multiplication helps you quickly calculate the total earnings for each shop.
Worked Example
Step-by-Step
Let's multiply two matrices, A and B.
Matrix A = [[2, 3], [1, 4]]
Matrix B = [[5, 6], [7, 8]]
---Step 1: To find the element in the first row, first column of the result, multiply the first row of A by the first column of B and add them up.
(2 * 5) + (3 * 7) = 10 + 21 = 31
---Step 2: To find the element in the first row, second column of the result, multiply the first row of A by the second column of B and add them up.
(2 * 6) + (3 * 8) = 12 + 24 = 36
---Step 3: To find the element in the second row, first column of the result, multiply the second row of A by the first column of B and add them up.
(1 * 5) + (4 * 7) = 5 + 28 = 33
---Step 4: To find the element in the second row, second column of the result, multiply the second row of A by the second column of B and add them up.
(1 * 6) + (4 * 8) = 6 + 32 = 38
---Answer: The resulting matrix is [[31, 36], [33, 38]].
Why It Matters
Matrix multiplication is super important for building AI/ML models that power face recognition on your phone or recommend movies. It's used in physics to describe how objects move, in computer graphics for video games, and even in finance to manage investments. Learning this helps you understand the math behind many cool technologies!
Common Mistakes
MISTAKE: Students try to multiply elements at the same position (e.g., A[1,1] * B[1,1]) | CORRECTION: Remember, it's 'row by column' multiplication. Each element in the result comes from multiplying a row of the first matrix by a column of the second.
MISTAKE: Multiplying matrices that cannot be multiplied (e.g., a 2x3 matrix by a 3x1 matrix, forgetting the inner dimensions rule) | CORRECTION: Always check if the number of columns in the first matrix equals the number of rows in the second matrix. If not, multiplication is not possible!
MISTAKE: Thinking that A * B is the same as B * A | CORRECTION: Matrix multiplication is generally NOT commutative. A * B is almost never equal to B * A, so the order matters a lot!
Practice Questions
Try It Yourself
QUESTION: If Matrix P = [[1, 2], [3, 4]] and Matrix Q = [[5], [6]], find P * Q. | ANSWER: [[17], [39]]
QUESTION: Multiply Matrix X = [[1, 0], [0, 1]] by Matrix Y = [[2, 3], [4, 5]]. | ANSWER: [[2, 3], [4, 5]]
QUESTION: For Matrix A = [[1, 2, 3]], and Matrix B = [[4], [5], [6]], calculate A * B. What are the dimensions of the resulting matrix? | ANSWER: [[32]]. The resulting matrix is a 1x1 matrix.
MCQ
Quick Quiz
What is the condition for two matrices, A (m x n) and B (p x q), to be multiplied?
m must be equal to p
n must be equal to p
m must be equal to q
n must be equal to q
The Correct Answer Is:
B
For matrix multiplication A * B to be possible, the number of columns in the first matrix (n) must be equal to the number of rows in the second matrix (p).
Real World Connection
In the Real World
When you use Google Maps or Ola/Uber, matrix multiplication helps calculate the shortest routes and estimated travel times by processing vast amounts of geographical data. In cricket analytics, it's used to combine player performance data (runs, wickets) with match conditions to predict outcomes or analyze strategies for teams like RCB or CSK.
Key Vocabulary
Key Terms
MATRIX: A rectangular array of numbers arranged in rows and columns | DIMENSIONS: The size of a matrix, given as 'rows x columns' (e.g., 2x3) | ROW VECTOR: A matrix with only one row | COLUMN VECTOR: A matrix with only one column | SCALAR: A single number, not a matrix
What's Next
What to Learn Next
Great job understanding matrix multiplication! Next, you should explore the 'Determinant of a Matrix' and 'Inverse of a Matrix'. These concepts build directly on your understanding of matrices and are crucial for solving systems of linear equations and advanced applications in engineering.


