Matrix Multiplication Practice Questions
Last Updated :
09 Jul, 2024
A matrix is a set of numbers arranged in rows and columns to form a rectangular array. Multiplying a matrix by another matrix is called "matrix multiplication". In this article, we will learn what matrix multiplication is. And practice some questions related to it.
What is Matrix Multiplication?
In linear algebra, a matrix is an arrangement of elements in the form of rows and columns. An m × n matrix has m rows and n columns. If a matrix has an equal number of rows and columns, then the matrix is called a square matrix. When we perform multiplication operations with matrices, it is called matrix multiplication.
Read More: Matrix Multiplication
Matrix Multiplication Practice Questions with Solution
Problem 1: If the matrix A = \begin{pmatrix} 18 \\ 15 \\ -21 \end{pmatrix}
then what is the scalar multiple (-1/3)A?
Solution:
To find (-1/3) A, we have to multiply every element of A by (-1/3). Then
(-1/3) A= 18 x (-1/3) 15 x (-1/3) -21 x (-1/3)
= \begin{pmatrix} -6 & -5 & 7 \end{pmatrix}
Problem 2: Find the product of A and B.
A = \begin{pmatrix} 3 & 2 & -1 \\ 4 & 2 & 0 \end{pmatrix}
and B = \begin{pmatrix} 0 & 1 \\ 1 & 2 \\ 3 & 1 \end{pmatrix}
Solution:
Given A = \begin{pmatrix} 3 & 2 & -1 \\ 4 & 2 & 0 \end{pmatrix}
and B = \begin{pmatrix} 0 & 1 \\ 1 & 2 \\ 3 & 1 \end{pmatrix}
Product Matrix AB = \begin{pmatrix}
3 \cdot 0 + 2 \cdot 1 + (-1) \cdot 3 & 3 \cdot 1 + 2 \cdot 2 + (-1) \cdot 1 \\
4 \cdot 0 + 2 \cdot 1 + 0 \cdot 3 & 4 \cdot 1 + 2 \cdot 2 + 0 \cdot 1
\end{pmatrix}
AB = \begin{pmatrix} -1 & 6 \\ 2 & 8 \end{pmatrix}
Problem 3: Find the product of the following matrices:
A = \begin{pmatrix} 1 & 2 & 3 \\ 0 & 2 & 1 \\ 1 & 2 & 5 \end{pmatrix}
B = \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ 2 & 1 \end{pmatrix}
Solution:
Given
A = \begin{pmatrix} 1 & 2 & 3 \\ 0 & 2 & 1 \\ 1 & 2 & 5 \end{pmatrix}
B = \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ 2 & 1 \end{pmatrix}
Then,
A * B = \begin{pmatrix} 1 & 2 & 3 \\ 0 & 2 & 1 \\ 1 & 2 & 5 \end{pmatrix} * \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ 2 & 1 \end{pmatrix}
= \begin{pmatrix}
1 + 0 + 6 & 0 + 2 + 3 \\
0 + 0 + 2 & 0 + 2 + 1 \\
1 + 0 + 10 & 0 + 2 + 5
\end{pmatrix}
= \begin{pmatrix} 7 & 5 \\ 2 & 3 \\ 11 & 7 \end{pmatrix}
Matrix Multiplication: Worksheet
1. Given matrices: A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} and B = \begin{pmatrix} 2 & 0 \\ 1 & 3 \end{pmatrix}. Find AB
2. Given matrices: C = \begin{pmatrix} 5 & -1 \\ 2 & 3 \end{pmatrix} and D = \begin{pmatrix} 0 & 4 \\ -2 & 1 \end{pmatrix}. Find CD.
3. Given matrices: E = \begin{pmatrix} 3 & 0 & 2 \\ 1 & 4 & 5 \end{pmatrix} and F = \begin{pmatrix} 2 & 3 \\ 0 & 1 \\ 1 & 4 \end{pmatrix}. Find EF.
4. Given matrices: G = \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix} and H = \begin{pmatrix} 7 & 8 \\ 9 & 10 \\ 11 & 12 \end{pmatrix}. Find GH.
5. Given matrices: I = \begin{pmatrix} 2 & 4 \\ 6 & 8 \end{pmatrix} and J = \begin{pmatrix} 1 & 3 \\ 5 & 7 \end{pmatrix}. Find IJ.
6. Given matrices: M = \begin{pmatrix} 1 & 0 & 2 \\ -1 & 3 & 1 \end{pmatrix} and N = \begin{pmatrix} 4 & 1 \\ 2 & 2 \\ 0 & 3 \end{pmatrix}. Find MN.
Similar Reads
Practice Questions on Matrices
Mastering matrices is crucial for anyone studying advanced mathematics, computer science, or engineering. This article provides a comprehensive set of practice questions on matrices will guide you through a variety of problems, from basic to advanced levels these problems designed to strengthen your
9 min read
Matrix Multiplication in R
Matrix multiplication is the most useful matrix operation. It is widely used in areas such as network theory, transformation of coordinates and many more uses nowadays. A matrix in R can be created using matrix() function and this function takes input vector, nrow, ncol, byrow, dimnames as arguments
3 min read
Matrix multiplication in R using for loop
The matrix multiplication is a basic operation in the linear algebra. In R Programming Language we can perform matrix multiplication using a for loop, which provides a basic understanding of the underlying process involved. In R language, we can perform matrix multiplication using a for loop, which
4 min read
Matrix Multiplication
Matrix multiplication is a fundamental operation in mathematics that involves multiplying two or more matrices according to specific rules. Understanding how to multiply matrices is crucial for solving various mathematical problems. Matrix multiplication combines two matrices to produce a new matrix
13 min read
Practice Questions on Subtraction of Matrices
Subtraction of Matrices is one of the operations that are performed between two matrices. It is similar to addition of matrices. This article provides practice questions on subtraction of matrices along with solved examples and concepts related to it. This article serves as a one stop solution for p
11 min read
Vector Algebra Practice Questions (Medium)
Vector Algebra is a branch of mathematics that deals with vectors and their operations. A vector is a quantity that has both magnitude and direction, and vector algebra provides the tools to perform calculations and solve problems involving vectors. Some of the Vector Operations are: Vector Addition
10 min read
Matrix Operations
Matrix Operations are basic calculations performed on matrices to solve problems or manipulate their structure. Common operations include: Addition: Add two matrices of the same size.Subtraction: Subtract two matrices of the same size.Scalar Multiplication: Multiply each element of a matrix by a con
9 min read
Introduction to Matrices
Matrices are rectangular arrays of numbers, symbols, or characters where all of these elements are arranged in each row and column. A matrix is identified by its order which is given in the form of rows ⨯ and columns and the location of each element is given by the row and column it belongs to. A ma
13 min read
Elementary Operations on Matrices
Elementary Operations on Matrices are the operations performed on the rows and columns of the matrix that do not change the value of the matrix. A matrix is a way of representing numbers in the form of an array, i.e. the numbers are arranged in the form of rows and columns. In a matrix, the rows and
9 min read
Operations on Matrices in R
Matrices in R are a bunch of values, either real or complex numbers, arranged in a group of fixed number of rows and columns. Matrices are used to depict the data in a structured and well-organized format. It is necessary to enclose the elements of a matrix in parentheses or brackets. A matrix with
8 min read