Matrix Operations

Matrix operations mainly involve three algebraic operations: addition, subtraction, and multiplication of matrices. A matrix is a rectangular array of numbers or expressions arranged in rows and columns. It has many important applications in mathematics.

Before understanding the operations on matrices, it is important to be familiar with the elementary operation of a matrix. This article covers the operations on matrices along with their properties and solved examples.

Learn More:

Introduction to Matrices

Types of Matrices

Adjoint and Inverse of a Matrix

Rank of a Matrix and Special Matrices

Operations on Matrices

The basic operations on a matrix are addition, subtraction and multiplication. To add or subtract matrices, they must be of the same order. For multiplication, the number of columns in the first matrix must be equal to the number of rows in the second matrix.

Addition of Matrices

Subtraction of Matrices

Scalar Multiplication of Matrices

Multiplication of Matrices

Addition of Matrices

The sum of two matrices A[aij]mxn and B[bij]mxn of the same order is a matrix, where each element is the sum of the corresponding elements of A and B. That is, A + B = [aij + bij]mxn.

The sum of matrices A and B of order 2 x 2 is given by:

([a1b1 c1d1]+[a2b2 c2d2]=[a1+a2b1+b2 c1+c2d1+d2] )

Properties of Matrix Addition: If a, B and C are matrices of same order, then

A + B = B + A

Commutative Law: A + B = B + A

Associative Law: A + (B + C) = (A + B) + C

Identity of the Matrix: A + O = O + A = A, where O is the zero matrix which is the additive identity of the matrix.

Additive Inverse: For a matrix A, its additive inverse is obtained by changing the sign of every element of A, such that A + (-A) = 0 = (-A) + A.

Missing or unrecognized delimiter for \right

(f) tr(A ± B) = tr(A) ± tr(B)

If A + B = 0 = B + A, then B is called the additive inverse of A and A is called the additive inverse of B.

Subtraction of Matrices

If A and B are two matrices of the same order, then we define AB=A+(B).

The difference between matrices A and B of order 2 x 2 is given by:

([a1b1 c1d1][a2b2 c2d2]=[a1a2 b1b2 c1c2 d1d2])

We can subtract the matrices by subtracting each element of one matrix from the corresponding element of the second matrix, i.e. A - B = [a_{ij} - b_{ij}]_{mxn}

Scalar Multiplication of Matrices

The scalar multiplication of a matrix A=[aij]m×n by a scalar k is denoted by kA and is obtained by multiplying each element of A by k.

Then kAm×n=Am×nk=[kai×j]

Properties of Scalar Multiplication: If A, B are matrices of the same order and λ and μ are any two scalars, then:

(a) λ(A + B) = λA + λB

(b)(λ+μ)A=λA+μA

(c) λ(μA) = (λμA) = μ(λA)

(d) (λA)=(λA)=λ(A)

ktr(A)=tr(kA)

Multiplication of Matrices

If A and B are any two matrices, then their product AB can only be defined when the number of columns in A is equal to the number of rows in B.

If $$A=[aij]{m \times n} ;;;\text{and};;; B=\begin{bmatrix} b{ij} \end{bmatrix}{n \times p} ;;;\text{then their product}; AB=C=\begin{bmatrix} c{ij} \end{bmatrix}{m \times p}willbeamatrixoforder$m×p$where\begin{bmatrix} (AB){ij} \end{bmatrix} = [Cij] = \sum_{r=1}^{n} a_{ir} b_{rj}$$

Properties of Matrix Multiplication

In general, matrix multiplication is not commutative, i.e. (AB \ne BA).

Matrix multiplication is associative, meaning that (AB)C=A(BC).

Matrix multiplication is distributive over matrix addition, i.e. A.(B + C) = A.B + A.C and (A + B)C = AC + BC.

If A is an m × n matrix, then $${{I}{m}}A=A=A{{I}{n}}.$$

The product of two matrices can be a null matrix while neither of them is null, i.e. if AB = 0, it is not necessary that either A = 0 or B = 0.

If (A_{m\times n}) is an m × n matrix and (O_{n\times p}) is a null matrix, then (A_{m\times n} \cdot O_{n\times p} = O_{m\times p}), i.e. the product of the matrix with a null matrix is always a null matrix.

If AB = 0, it does not necessarily mean that A = 0 or B = 0, as the product of two non-zero matrices may still be a zero matrix.

If AB = AC, but B ≠ C, then the Cancellation Law is not applicable.

(i) tr(BA) = tr(AB)

There exists a multiplicative identity for every square matrix, such that AI=IA=A.

Matrix Operations Examples

Illustration 1: (If A=[213 321 101 ] and B=[1 2 4 ,,,,2 1 2 ] )

Find AB and BA if possible.

Given:

This is a statement

Solution:

This is a statement

The product of matrices A and B is of order 3 x 2, since A is a 3 x 3 matrix and B is a 3 x 2 matrix, and they are conformable for matrix multiplication.

(A1,1)(B1,1)\=[2,1,3][1 2 4 ]\=2×1+1×2+3×4\=16

(=[213][2 1 3 ] =2×(2)+1×1+3×(3) =12 )

((Second row of A)×(First column of B)\=[3,2,,1][1 2 4 ]\=3×1+(2)×2+1×4\=3)

Similarly $$\begin{array}{l}{\left( AB \right){22}}=-10,{\left( AB \right){31}}=3 ;and ;{\left( AB \right)_{32}}=0\end{array}$$

(\therefore AB = \left[ 1612 310 30  \right])

BA is not possible since the number of columns of B does not equal the number of rows of A.

Illustration 2: Find the value of x and y if (2[13 0x ]+[y0 12 ]=[56 18 ] )

Solution: x = 6 and y = 3

Given:

This is a heading

Solution:

This is a heading

Using the method of multiplication and addition of matrices, then equating the corresponding elements of L.H.S. and R.H.S., we can easily get the required values of x and y.

We have, ([2+y6 0+12x+2 ]=[56 18 ]Rightarrow2+y=5,6=6,0+1=1,2x+2=8Rightarrowy=3,x=3 )

Equating the corresponding elements, a11 and a22, yields

(y=3;,,,x=3)

Hence, x = 3 and y = 3.

Illustration 3: Find the value of a, b, c and d, if ([ab2a+c 2ab3c+d ]=[15 013 ] )?

Given:

This is bold

Solution:

This is bold

As the two matrices are equal, their corresponding elements are equal. Hence, by equating the corresponding elements of the given matrices, we can determine the values of a, b, c, and d.

([ab2a+c 2ab3c+d ]=[15 013 ] )

It’s time to go!

It’s time to go!

a - b = -1 ... (i)

2a + c = 5 \ (ii)

2a + c = 5 \ (ii)

2a - b = 0 … (iii)

2a - b = 0 … (iii)

3c + d = 13 \ (iv)

Subtracting equation (iii) from (i), we have a = 1;

Putting the value of a in equation (i), we get b=2

Putting the value of a in equation (ii), we have 2+c=5c=3;

Putting the value of c in equation (iv), we find 9+x=13x=4

Therefore, a=1, b=2, c=3, d=4.

Illustration 4: Find x and y, if 2x+3y=[23 40 ]and3x+2y=[22 15 ].

Given:

This is a Heading

Solution:

This is a Heading

By solving the given equations simultaneously, we will be able to find the values of x and y.

We have 2x+3y=[23 40 ].(i)

(3x+2y=[22 15 ][x y ]=111[232 710 ] )

Multiplying (i) by 3 and (ii) by 2, we get (6x+9y=[1827 240 ].(iii) )

(6x+4y=[44 210 ][x y ]=120[104 46 ][44 210 ])

Subtracting (iv) from (iii), we get (5y=[6449+44 12+240104 ]=[213 1410 ] )

y=[25135 1452 ]

Putting the value of y in (iii), we get (2x+3[25135 1452 ]=[23 4y ] )

(2x=[23 40 ][65395 4256 ] =[2653395 44250+6 ] =[45245 2256 ] x=[25125 1153 ])

Hence x=[25125 1153];;and;;y=[25135 1452]

Frequently Asked Questions

Yes, matrix addition is commutative.

Yes, Matrix addition is commutative.

No, matrix multiplication is not commutative.

No, Matrix multiplication is not commutative.

Yes, matrix addition is associative.

Yes, matrix addition is associative.

What is the product of a matrix with a null matrix?

The product of a matrix with a null matrix is a null matrix.

The product of a matrix and a null matrix is a null matrix.



Mock Test for JEE