Open In App

Matrix Operations

Last Updated : 24 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

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 constant.
  • Matrix Multiplication: Multiply two matrices to create a new matrix.
  • Transpose: Flip the rows and columns of a matrix.
  • Inverse: Find the inverse of a Matrix.

In this section, we will explore matrix operations in detail, covering their examples, properties, and visual representations.

Addition of Matrices

Adding matrices is as simple as adding numbers, but there’s one important rule: the matrices must have the same order (i.e., the same number of rows and columns). Once this condition is met, the addition is performed by adding corresponding elements of both matrices to form a new matrix.

add_matrix

Matrix Addition

Example: Take three matrices A, B, and C of order (2×2), (2×2), and (3×3) respectively. Find the sum of (A + B) and (A + C).

Solution:

The addition of matrix A and matrix B is found as,

A + B = [Tex]\begin{bmatrix}2+1 & 9+7\\ 5+2 & 6+3\end{bmatrix}[/Tex]

A + B = [Tex]\begin{bmatrix}3 & 16\\ 7 & 9\end{bmatrix}[/Tex]

Matrix A and matrix C can not be added as their order is not the same.

Properties of Matrix Addition

There are various properties associated with matrix addition that are, for matrices A, B, and C of the same order, then,

  • Commutative Law: A + B = B + A
  • Associative Law: (A + B) + C = A + (B + C)
  • Identity of Matrix: A + O = O + A = A, where O is a zero matrix, which is the Additive Identity of the Matrix
  • Additive Inverse: A + (-A) = O = (-A) + A, where (-A) is obtained by changing the sign of every element of A, which is the additive inverse of the matrix.

➣ Learn more about- Matrix Addition.

Subtraction of Matrices

To subtract two matrices, the matrices must have the same order (i.e., the same number of rows and columns). Subtraction is performed by subtracting the corresponding elements of the second matrix from the first matrix to form a new matrix. This completes the subtraction operation.

Subtraction-of-Matrices

Matrix Subtraction

Example: For matrices A and B, subtract matrix B from matrix A

[Tex]A = \begin{bmatrix}2 & 9\\ 5 & 6\end{bmatrix}\\B = \begin{bmatrix}1 & 7\\ 2 & 3\end{bmatrix}[/Tex]

Solution:

Matrix A and Matrix B can be easily subtracted as their order is the same. The subtraction of matrix A and matrix B is found as,

A – B = [Tex]\begin{bmatrix}2-1 & 9-7\\ 5-2 & 6-3\end{bmatrix}[/Tex]

A – B = [Tex]\begin{bmatrix}1 & 2\\ 3 & 3\end{bmatrix}[/Tex]

➣ Learn more about- Matrix Subtraction.

Scalar Multiplication of Matrices

For any matrix A = [aij]m×n, if we multiply the matrix A by any scalar (say k), then the scalar is multiplied by each element of the matrix, and this is called the scalar multiplication of matrices.

scalar_multiplication

Scalar Multiplication of Matrix

Example: Multiply the matrix A by the scalar value k = 3.

[Tex]A = \begin{bmatrix}1 & 2\\ 3 & 4\end{bmatrix}[/Tex]

The scalar multiplication kA is computed by multiplying each element of A by 3:

[Tex]kA = 3\times \begin{bmatrix}1 & 2\\ 3 & 4\end{bmatrix} = \begin{bmatrix}3\times1 & 3\times2\\ 3\times3 & 3\times4\end{bmatrix}[/Tex]

So,

[Tex]kA = \begin{bmatrix}3 & 6\\ 9 & 12\end{bmatrix}\\[/Tex]

Properties of Scalar Multiplication

For any matrices A and B of the same order, and λ and μ are any two scalars, then,

  • λ(A + B) = λA + λB
  • (λ + μ)A = λA + μA
  • λ(μA) = (λμA) = μ(λA)
  • (-λA) = -(λA) = λ(-A)

Multiplication of Matrices

Matrix multiplication is the operation that helps us multiply two matrices. This is different from algebraic multiplication, and not all matrices can be multiplied. Only those matrices can be multiplied where the number of columns in the first is equal to the number of rows in the second, i.e for matrix Am×n and matrix Bn×p the multiplication is possible for any other matrices where the column of the first matrix is not equal to the row in the second matrix the multiplication is not possible.

Matrix-Multiplication

Matrix Multiplication

Also, the multiplication of the matrices is not commutative; if matrix A and matrix B are taken, then A×B ≠ B×A.

Properties of Matrix Multiplication

  • Matrix Multiplication is not commutative in general i.e AB ≠ BA.
  • Matrix Multiplication is associative i.e (AB)C = A(BC).
  • Matrix Multiplication is distributive over matrix addition i.e A(B + C) = A.B + B.C.
  • The product of two matrices can be null matrix while neither of them is null i.e If AB = 0 it is not necessary that A = 0 or B =0.
  • If AB = AC then B ≠ C ( Cancellation law is not applicable).
  • There exists a multiplicative identity for every square matrix, such as AI = IA = A.

➣ Learn more about- Matrix Multiplication.

Transpose Operation of a Matrix

The transpose operation of a matrix rearranges its rows into columns and its columns into rows. For a matrix A of order m×n, denoted as A = [aij]m×n​, its transpose is represented by AT and is defined as:

(A)T = [aji]n×m

transpose

Transpose of a Matrix

Example: Find the Transpose of the Matrix A:

[Tex]A = \begin{bmatrix}1 & 2 & 3\\ 4 & 5 & 6 \\7 & 8 & 9\end{bmatrix}[/Tex]

Solution:

[Tex]A^T = \begin{bmatrix}1 & 4 & 7\\ 2 & 5 & 8 \\3 & 6 & 9\end{bmatrix}[/Tex]

➣ Learn more about- Transpose of a Matrix

Inverse Operation of a Matrix

The inverse of a matrix A exists only if A is a square matrix (i.e., has the same number of rows and columns) and its determinant is non-zero.

A = [ij]n×nand |A| ≠ 0

inverse-of-a-matrix

Inverse of a Matrix

Specifically, if ∣A∣ = 1, the matrix A is invertible. The inverse of A, denoted as A−1, is a matrix that satisfies:

A × A−1 = I

Where I is the identity matrix of the same order as A. The inverse operation finds this A−1.

Example: Find the inverse of the given matrix.

[Tex]A = \begin{bmatrix}1 & 2 & 3\\ 4 & 5 & 6 \\7 & 8 & 9\end{bmatrix}[/Tex]

Solution:

Step 1: Caclulate the determinant of the matrix

The determinant will be -6 ( To learn about determinant, check how to calulate determinant )

Step 2: Calculate Adjoint of the matrix

Adjoint of the above matrix is: [Tex]A = \begin{bmatrix}5 & 6 & -5\\ -1 & -12 & 7 \\ -3 & 6 & -3\end{bmatrix}[/Tex] ( To learn about adjoint, check how to calculate adjoint )

Step 3: The Inverse is calculated by dividing the adjoint by the determinant

so, the inverse matrix is [Tex]A^{-1} = \begin{bmatrix} -\frac{5}{6} \ & \ -1 & \ \frac{5}{6} \\ \frac{1}{6} \ & \ 2 & \ -\frac{7}{6} \\ \ \frac{1}{2} & \ -1 & \frac{1}{2}\end{bmatrix}[/Tex]

The inverse can also be found using the Gaussian Elemination Method.

Check Other Elementary Operations on Matrices

Solved Examples of Matrix Operations

Example 1: Find the sum of matrix A and B when,

[Tex]A = \begin{bmatrix}1 & 3\\ 5 & 7\end{bmatrix}\\B = \begin{bmatrix}2 & 4\\ 6 & 8\end{bmatrix}[/Tex]

Solution:

Matrix A and Matrix B can be easily added as their order is the same. The addition of matrix A and matrix B is found as,

A + B = P = [Tex]\begin{bmatrix}1+2 & 3+4\\ 5+6 & 7+8\end{bmatrix}[/Tex]

P = [Tex]\begin{bmatrix}3 & 7\\ 11 & 15\end{bmatrix}[/Tex]

Example 2: Find (A – B) when,

[Tex]A = \begin{bmatrix}2 & 4\\ 6 & 8\end{bmatrix}\\B = \begin{bmatrix}1 & 3\\ 5 & 7\end{bmatrix}[/Tex]

Solution:

Matrix A and Matrix B can be easily subtracted as their order is the same. The value of (A-B) is found as,

(A – B) = P = [Tex]\begin{bmatrix}2-1 & 4-3\\ 6-5 & 8-7\end{bmatrix}[/Tex]

P = [Tex]\begin{bmatrix}1 & 1\\ 1 & 1\end{bmatrix}[/Tex]

Example 2: Find the transpose of matrix A

[Tex]A = \begin{bmatrix}2 & 4\\ 6 & 8\\10 & 12\end{bmatrix}[/Tex]

Solution:

Transpose of matrix A is the matrix in which the rows of matrix A are its column and the column are its rows.

Tranpose of matrix A is represented as, (A)T

(A)T= [Tex]\begin{bmatrix}2 & 6 & 10\\ 4 & 8 & 12\end{bmatrix}[/Tex]

Unsolved Practice Questions on Matrix Operations

Question 1: Given the matrices: [Tex]A = \begin{bmatrix} 2 & 3 \\ -1 & 4 \end{bmatrix} \quad \text{and} \quad B = \begin{bmatrix} 1 & 0 \\ 5 & -2 \end{bmatrix}[/Tex].

  • Find A + B.
  • Find A – B.

Question 2: Given the matrix: [Tex]A = \begin{bmatrix} 1 & 4 & -2 \\ 3 & 0 & 5 \end{bmatrix}[/Tex]. Find 3A (scalar multiplication with 3).

Question 3: Given the matrices: [Tex]A = \begin{bmatrix} 1 & 2 \\ 0 & 3 \end{bmatrix} \quad \text{and} \quad B = \begin{bmatrix} 4 & 0 \\ 1 & 5 \end{bmatrix}[/Tex]. Find A ⨉ B.

Question 4: Given the Matrix: [Tex]A = \begin{bmatrix} 1 & 3 & 4 \\ 2 & 5 & 6 \end{bmatrix}[/Tex]. Find AT.

Question 5: Given the Matrix: [Tex]A = \begin{bmatrix} 4 & 7 \\ 2 & 6 \end{bmatrix}[/Tex]. Find the inverse of the matrix A if it exists.



Next Article

Similar Reads

  翻译: