Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Matrix Multiplication

ffImage
Last updated date: 25th Apr 2024
Total views: 423.9k
Views today: 7.23k
hightlight icon
highlight icon
highlight icon
share icon
copy icon

What is a Matrix?

A matrix is a rectangular array of numbers or symbols which are generally arranged in rows and columns.The order of the matrix is defined as the number of rows and columns.The entries are the numbers in the matrix and each number is known as an element.The plural of matrix is matrices.The size of a matrix is referred to as ‘n by m’ matrix and is written as m×n, where n is the number of rows and m is the number of columns.For example, we have a 3×2 matrix, that’s because the number of rows here is equal to 3 and the number of columns is equal to 2.


What are the Different Types of Matrices?

There are different types of matrices. Here they are –


  1. Row matrix

  2. Column matrix

  3. Null matrix

  4. Square matrix

  5. Diagonal matrix

  6. Upper triangular matrix

  7. Lower triangular matrix

  8. Symmetric matrix

  9. Anti-symmetric matrix


(Image to be added soon)


We know what a matrix is. Let’s find the product of two or more matrices!To multiply a matrix by a single number is a very easy and simple task to do:


(Image to be added soon)


Here are the calculations:

2 × 4 = 8

2 × 0 = 0

2 × 1 = 2

2 × -9 = -18


We call the number ("2" in this case) a scalar, so this is known as”scalar multiplication".


Multiplying a Matrix by Another Matrix

Matrix multiplication also known as matrix product.


It is a binary operation that produces a single matrix by taking two or more different matrices. We know that a matrix can be defined as an array of numbers. 


When we multiply a matrix by a scalar value, then the process is known as scalar multiplication. 


In Mathematics one matrix by another matrix. Let us discuss how to multiply a matrix by another matrix, its algorithm, formula, 2×2 and 3×3 matrix multiplication. To multiply a matrix by another matrix we need to follow the rule “DOT PRODUCT”.


Multiplication of Matrices  

Now let’s learn how to multiply two or more matrices. Let us consider matrix A which is a × b matrix and let us consider another matrix B which is a b ×c matrix.Then matrix C which is the product of matrix A and matrix B can be written as = AB is defined as A × B matrix.An element in product matrix C, Cxy can be defined as


Cxy = Ax1 By1 +….. + Axb Bby = \[\sum_{k=1}^{b}A_{kx}B_{ky}\]   for the values x = 1…… a and y= 1…….c


Formula for Matrix MultiplicationLet’s take an example to understand the formula.Let’s say we have A and B as two matrices, such that,


(Image to be added soon)


(Image to be added soon)


Then the Matrix C (Product matrix) = AB can be denoted by


(Image to be added soon)


An element in matrix C (Product Matrix) where C is the multiplication of Matrix A X B.An element in product matrix C, Cxy can be defined as


Cxy = Ax1 By1 +….. + Axb Bby = \[\sum_{k=1}^{b}A_{kx}B_{ky}\] for the values x = 1…… a and y= 1…….c


Conditions for Matrix Multiplication-

When we do Matrix multiplication, keep these two conditions in mind:


  • The number of columns of the first matrix in the multiplication process must equal the number of rows of the second matrix.

  • The result (product) will have the same number of rows as in the first matrix, and the same number of columns as in the second matrix.


Basics of Multiplication of Matrix

The product  C of any two matrices suppose A and B can be defined as-Cik=aij x bjk

Here 


(Image to be added soon)


is summed over for all possible values of i and k and the notation above makes use of the Einstein summation convention. The Einstein summation convention can be defined as summation over repeated indices without the presence of an explicit sum sign , and this method is commonly used in both matrix and tensor analysis. (n x m) (m X P) = (n x p)Here (a x b) denotes a matrix with the number of rows equal to a and number of columns equal to b. Writing out the product explicitly we get,


(Image to be added soon)


Where each of the values can be written as,


( Image to be added soon)


Multiplication of 2×2 Matrix-We will consider a simple 2 × 2 matrix multiplication 


A = \[\begin{bmatrix} 3 & 7\\ 4 & 9 \end{bmatrix}\]  and another matrix B = \[\begin{bmatrix} 6 & 2\\ 5 & 8 \end{bmatrix}\]


Now we can calculate each of the elements of product matrix AB as follows:


  • Product of AB11 = 3 × 6 + 7 ×5 = 53

  • Product  of AB12 = 3 × 2 + 7 × 8 = 62

  • Product of AB21 = 4 × 6 + 9 × 5 = 69

  • Product  of AB22 = 4 × 2 + 9 × 8 = 80

 

Therefore matrix AB is equal to,

AB = \[\begin{bmatrix} 53 & 62\\ 69 & 80 \end{bmatrix}\]

 

Solved Examples

Question 1) Multiply the given matrix below by 2 


A = \[\begin{bmatrix} 3 & 4 & 9\\ 12 &11 &35 \end{bmatrix}\]

 

Solution) On multiplying the given matrix by 2,

 

We know that we have to do scalar multiplication in this case,

 

A = \[\begin{bmatrix} 3 & 4 & 9\\ 12 &11 &35 \end{bmatrix}\]

 

On multiplying by 2 , we get the product as ,

 

 A = \[\begin{bmatrix} 6 & 8 & 18\\ 24 & 22 &70 \end{bmatrix}\]


Question 2: A 2×2 matrix 


\[\begin{bmatrix} 1 & 2\\ 3 & 4 \end{bmatrix}\]


when multiplied with another 2×2 matrix 


\[\begin{bmatrix} 5 & 6\\ 7 & 8 \end{bmatrix}\]


then  the resultant matrix can be written as


Solution: 

\[\begin{bmatrix} 1\times 5+2\times 7 & 1\times 6+2\times 8\\ 3\times 5+4\times 7 & 3\times 6+4\times 8 \end{bmatrix}\]


which can be simplified and written as:


\[\begin{bmatrix} 19 & 22\\ 43 & 50 \end{bmatrix}\]


Question 3: For a 2×3 matrix 


\[\begin{bmatrix} 1 & 2 & 3\\ 4 & 5 & 6 \end{bmatrix}\]

 

when  multiplied by a 3×1 matrix

 

\[\begin{bmatrix} 9 \\  8 \\ 7 \end{bmatrix}\]


then the resultant matrix can be written as 

\[\begin{bmatrix} 1\times 9+2\times 8+3\times 7\\ 4\times 9+5\times 8+6\times 7 \end{bmatrix}\]


which can be simplified and written as


\[\begin{bmatrix} 46 \\  118 \end{bmatrix}\]


Key points to remember while performing Matrix multiplication

There are two conditions that have to be kept in mind  while performing matrix multiplication:


  1. The number of columns in the first matrix must be equal to the number of rows in the second matrix, ie, in a multiplication between a matrix A of order m×n and another matrix B of order p×q, n must be equal to p.

  2. The number of rows of the resultant matrix after multiplication must be equal to the number of rows of the first matrix in the order of multiplication and the number of columns of the resultant matrix must be equal to that of the second matrix in the order of multiplication.

FAQs on Matrix Multiplication

1. What is matrix multiplication?

Matrix multiplication is defined as row by column multiplication where the elements of the ith row of first matrix A are multiplied by the corresponding elements in the jth column of another matrix B. Then the multiplicated numbers are added.


To know details of matrix multiplication like the mechanism, formula, basics, conditions of matrix multiplication, follow Vedantu's website or download the app. You can get free notes, important questions, solved examples, and a lot more for understanding the topic better. You can download them in PDF format and access them anytime, anywhere.

2. How many matrices can be multiplied at a time?

Multiplication of two matrices can only be done at a time if the two matrices are compatible with each other in the sense that the number of columns in the first matrix is the same as the number of rows in the second matrix.

3. What are the conditions of matrix multiplication?

There are two conditions to be followed for multiplying two matrices which are given as follows:

  • The number of columns of the first matrix in the order of multiplication must be equal to the number of rows of the second matrix in the order. 

  • The result should have the same number of rows as in the first matrix in multiplication order and the same number of columns as in the second matrix in the multiplication order.

4. Can You Multiply a 2x3 and 2x2 Matrix and What is Matrix Multiplication Used for? How Does a Matrix Work?

Now we think of the Matrix Multiplication of (2 x 2) and (2 x3) Multiplication of 2x2 and 2x3 matrices is definitely possible and the result matrix is in the form of 2x3 matrix.  Now let’s know what matrix multiplication is used for-Matrix multiplication is probably one of the most important matrix operations. Matrix multiplication is used widely in different areas as a solution of linear systems of equations, network theory, transformation of coordinate systems, and population modeling.A matrix can be defined as a rectangular arrangement of numbers into columns and rows . Each number in a matrix can be referred to as a matrix element or it can be called as an entry. For example, the matrix A has 2 rows and 2 columns.


(Image to be added soon)