Addition of Matrices

In mathematics, we might have come across performing different arithmetic operations on numbers, functions, polynomials, etc. Similarly, we can perform arithmetic operations such as addition, subtraction and multiplication on matrices. However, division of matrices is not possible in a direct way. In this article, you will learn what is addition of matrices and how to add the given matrices, properties and solved examples.

Table of Contents:

Get the basics of Matrices here which will help in understanding the algebra of matrices.

Addition of Two Matrices

If

\(\begin{array}{l}A = [a_{ij}]\end{array} \)
and
\(\begin{array}{l}B = [b_{ij}]\end{array} \)
are two matrices of the same order, say m × n, then the sum of the two matrices A and B is defined as a matrix
\(\begin{array}{l}C = [c_{ij}]_{m\times n}\end{array} \)
, where
\(\begin{array}{l}c_{ij} = a_{ij} + b_{ij}\end{array} \)
, for all possible values of i and j.

i.e. C = A + B

Suppose

\(\begin{array}{l}A = \begin{bmatrix} a_{11} & a_{12}\\ a_{21} & a_{22}\\ a_{31} & a_{32} \end{bmatrix}\end{array} \)
and
\(\begin{array}{l}B = \begin{bmatrix} b_{11} & b_{12}\\ b_{21} & b_{22}\\ b_{31} & b_{32} \end{bmatrix}\end{array} \)
are two matrices of order 3 x 2 such that the sum of these two matrices is given by:

C = A + B

Therefore,

\(\begin{array}{l}C=\begin{bmatrix} a_{11} & a_{12}\\ a_{21} & a_{22}\\ a_{31} & a_{32} \end{bmatrix}+ \begin{bmatrix} b_{11} & b_{12}\\ b_{21} & b_{22}\\ b_{31} & b_{32} \end{bmatrix}=\begin{bmatrix} a_{11}+b_{11} & a_{12}+b_{12}\\ a_{21}+b_{21} & a_{22}+b_{22}\\ a_{31}+b_{31} & a_{32}+b_{32} \end{bmatrix}\end{array} \)

That means the sum or addition of two matrices is a matrix obtained by adding the corresponding elements of the given two matrices. Also, it is essential to note that the two matrices have to be of the same order.

Read more:

How To Do Matrix Addition?

To add matrices, it is necessary that they have the same dimensions, i.e. the order of the matrices must be the same. Let’s have a look at the example given below to learn how to add two matrices.

Example: If

\(\begin{array}{l}X =\begin{bmatrix} 1 &-1 & 2\\ 0 & 3 & 4 \end{bmatrix}\end{array} \)
and
\(\begin{array}{l}Y =\begin{bmatrix} 2 &-1 & 5\\ 7 & 1 & 4 \end{bmatrix}\end{array} \)
, then find X + Y.

Solution:

\(\begin{array}{l}X =\begin{bmatrix} 1 &-1 & 2\\ 0 & 3 & 4 \end{bmatrix}\end{array} \)

and

\(\begin{array}{l}Y =\begin{bmatrix} 2 &-1 & 5\\ 7 & 1 & 4 \end{bmatrix}\end{array} \)

Here, the order of the matrix X is 2 x 3 and the order of Y is 2 x 3 are the same. So, we can add the given two matrices by adding the corresponding elements.

\(\begin{array}{l}\begin{align*} X + Y &=\begin{bmatrix} 1 &-1 & 2\\ 0 & 3 & 4 \end{bmatrix} +\begin{bmatrix} 2 &-1 & 5\\ 7 & 1 & 4 \end{bmatrix}\\&=\begin{bmatrix} 1+2 &-1+(-1) & 2+5\\ 0+7 & 3+1 & 4+4 \end{bmatrix} \\&=\begin{bmatrix} 3 &-2 & 7\\ 7 & 4 & 8 \end{bmatrix} \end{align*}\end{array} \)

Similarly, we can find the sum of two matrices with the same order.

Suppose

\(\begin{array}{l}A=\begin{bmatrix} 2 &-1\\ 5 & 6\end{bmatrix}\end{array} \)
and
\(\begin{array}{l}B=\begin{bmatrix} 3 &0\\ 1 &-1\\4 & 5\end{bmatrix}\end{array} \)
, then the addition of A and B is not possible since the order of matrix A is 2 x 2 and the order of B is 2 x 3, i.e. the order of these matrices is not equal.

Also, check: matrix addition calculator

Properties of Addition of Matrices

Below are the properties of addition of matrices.

Commutative Law: If A = [aij], B = [bij] are matrices of the same order, say m × n, then:

A + B = B + A

i.e. A + B = [aij] + [bij]

= [aij + bij]

= [bij + aij] (addition of numbers is commutative)

= ([bij] + [aij])

= B + A

Therefore, the addition of matrices is commutative.

Click here to understand the commutative law.

Associative Law: For any three matrices A = [aij], B = [bij], C = [cij] of the same order, say m × n, then:

(A + B) + C = A + (B + C)

This can be shown as:

(A + B) + C = ([aij] + [bij]) + [cij]

= [aij + bij] + [cij]

= [(aij + bij) + cij]

= [aij + (bij + cij)] (addition of numbers is associative)

= [aij] + [(bij + cij)]

= [aij] + ([bij] + [cij])

= A + (B + C)

Also, read: Associative law

Existence of additive identity: Let A = [aij] be an m × n matrix and O be an m × n zero matrix, then:

A + O = O + A = A

In other words, O is the additive identity for matrix addition.

The existence of additive inverse: Let A = [aij] be any matrix of the order m × n, then we have another matrix as –A = [–aij]m × n such that A + (–A) = (–A) + A = O.

Thus, –A is the additive inverse of A or negative of A. The negative of a matrix is denoted by –A and it can be defined as –A = (–1) A.

Go through the solved examples of addition of matrices with orders 3×2, 2×2 and 3×3 respectively.

Addition of Matrices Examples

Question 1: If

\(\begin{array}{l}A=\begin{bmatrix} 2 &3 \\ 4 & 5\\1 &6\end{bmatrix}\end{array} \)
and
\(\begin{array}{l}B=\begin{bmatrix} 3 &-1 \\ -1 & 0\\3 &2\end{bmatrix}\end{array} \)
, then find A + B and B + A.

Solution:

Given,

\(\begin{array}{l}A=\begin{bmatrix} 2 &3 \\ 4 & 5\\1 &6\end{bmatrix}\end{array} \)

and

\(\begin{array}{l}B=\begin{bmatrix} 3 &-1 \\ -1 & 0\\3 &2\end{bmatrix}\end{array} \)

Now,

\(\begin{array}{l}\begin{align*}A+B &=\begin{bmatrix} 2 &3 \\ 4 & 5\\1 &6\end{bmatrix}+\begin{bmatrix} 3 &-1 \\ -1 & 0\\3 &2\end{bmatrix}\\ & =\begin{bmatrix} 2+3 &3+(-1) \\ 4+(-1) & 5+0\\1+3 &6+2\end{bmatrix}\\&=\begin{bmatrix} 5 &2 \\ 3 & 5\\4 &8\end{bmatrix}\end{align*}\end{array} \)

Let us calculate B + A as:

\(\begin{array}{l}\begin{align*}B + A &=\begin{bmatrix} 3 &-1 \\ -1 & 0\\3 &2\end{bmatrix}+\begin{bmatrix} 2 &3 \\ 4 & 5\\1 &6\end{bmatrix}\\ & =\begin{bmatrix} 3+2 &-1+3 \\ -1+4 & 0+5\\3+1 &2+6\end{bmatrix}\\&=\begin{bmatrix} 5 &2 \\ 3 & 5\\4 &8\end{bmatrix}\end{align*}\end{array} \)

Therefore, A + B = B + A.

Question 2: If

\(\begin{array}{l}\begin{bmatrix} 2 &6 \\ 0 & 2x \end{bmatrix}+\begin{bmatrix} y &0 \\ 1 & 2 \end{bmatrix}=\begin{bmatrix} 5 &6 \\ 1 & 8 \end{bmatrix}\end{array} \)
, then find x and y.

Solution:

Given,

\(\begin{array}{l}\begin{bmatrix} 2 &6 \\ 0 & 2x \end{bmatrix}+\begin{bmatrix} y &0 \\ 1 & 2 \end{bmatrix}=\begin{bmatrix} 5 &6 \\ 1 & 8 \end{bmatrix}\end{array} \)

By performing the addition of matrices, we get;

\(\begin{array}{l}\begin{bmatrix} 2+y &6+0 \\ 0+1 & 2x+2 \end{bmatrix}=\begin{bmatrix} 5 &6 \\ 1 & 8 \end{bmatrix}\end{array} \)

i.e.

\(\begin{array}{l}\begin{bmatrix} 2+y &6 \\ 1 & 2x+2 \end{bmatrix}=\begin{bmatrix} 5 &6 \\ 1 & 8 \end{bmatrix}\end{array} \)

Now, by equating the corresponding elements,

2x + 2 = 8

⇒ 2x = 6

⇒ x = 3

Also, 2 + y = 5

⇒ y = 3

Therefore, x = 3 and y = 3.

Go through the solved examples of addition of matrices with orders 3×2, 2×2 and 3×3 respectively.

Question 3: Find the sum of

\(\begin{array}{l}A = \begin{bmatrix} 3 &-1 &2\\ 4 &2 &5\\ 2 &0 &3 \end{bmatrix}\end{array} \)
and
\(\begin{array}{l}B = \begin{bmatrix} -12 &7 &6\\ 8 &0 &5\\ 3 &2 &-4 \end{bmatrix}\end{array} \)
.

Solution:

Given,

\(\begin{array}{l}A = \begin{bmatrix} 3 &-1 &2\\ 4 &2 &5\\ 2 &0 &3 \end{bmatrix}\end{array} \)

and

\(\begin{array}{l}B = \begin{bmatrix} -12 &7 &6\\ 8 &0 &5\\ 3 &2 &-4 \end{bmatrix}\end{array} \)

Sum of A and B is:

\(\begin{array}{l}\begin{align*}A + B &= \begin{bmatrix} 3 &-1 &2\\ 4 &2 &5\\ 2 &0 &3 \end{bmatrix}+ \begin{bmatrix} -12 &7 &6\\ 8 &0 &5\\ 3 &2 &-4 \end{bmatrix}\\&=\begin{bmatrix} 3+(-12) &-1+7 &2+6\\ 4+8 &2+0 &5+5\\ 2+3 &0+2 &3+(-4) \end{bmatrix}\\&=\begin{bmatrix} -9 &6 &8\\ 12 &2 &10\\ 5 &2 &-1 \end{bmatrix}\end{align*}\end{array} \)

Practice Problems

  1. Find P + Q if
    \(\begin{array}{l}P=\begin{bmatrix} 1 & 3 & 2\\ 4 & 3 & 1 \end{bmatrix}\end{array} \)
    and
    \(\begin{array}{l}Q=\begin{bmatrix} 4 & 6 & 8\\ 5 & 7 & 9 \end{bmatrix}\end{array} \)
    .
  2. Find non-zero values of x satisfying the matrix equation:
    \(\begin{array}{l}x\begin{bmatrix} 2x & 2 \\ 3 & x \end{bmatrix}+2\begin{bmatrix} 8 & 5x \\ 4 & 4x \end{bmatrix}= 2\begin{bmatrix} (x^2+8) & 24 \\ 10 & 6x \end{bmatrix}\end{array} \)
  3. If
    \(\begin{array}{l}A=\begin{bmatrix} 1& 5 \\ 7 & 12 \end{bmatrix}\end{array} \)
    and
    \(\begin{array}{l}B=\begin{bmatrix} 9& 1 \\ 7 & 8 \end{bmatrix}\end{array} \)
    . find a matrix C such that 3A + 5B + 2C is a null matrix.

To learn more about matrices and operations to be performed on matrices, visit byjus.com today!

Comments

Leave a Comment

Your Mobile number and Email id will not be published.

*

*