# Elementary Operations on Matrices

Matrices being the rectangular grid of numbers that consists of numbers carrying data as well as expressions of mathematical equations. Matrices are commonly used operation for computer engineering applications for obtaining approximate calculations. Besides, computing operations they are generally used for plotting graphs, Scientific studies, representation of data, and statistics in real life

Matrixis a branch of linear algebra that involves the systematic arrangement of numbers in rows and columns as per the linear equation in the form of a rectangular grid.Attention reader! All those who say programming isn't for kids, just haven't met the right mentors yet. Join the

Demo Class for First Step to Coding Course,specificallydesigned for students of class 8 to 12.The students will get to learn more about the world of programming in these

free classeswhich will definitely help them in making a wise career choice in the future.

The great mathematician Arthur Cayley is the father of matrices who proposed the theory in 1858. It has dimensions like rows and columns for the arrangement of numbers. And each number involved in the matrix is known as the element of the matrix.

### Types of Matrices

**Null matrix:**The matrix in which all the elements are are zero is known as a null matrix or zero matrices. Generally, it is denoted by ‘0’. Then, if a_{ij }= 0 for all the elements of i and j

**Triangular matrix:**The square matrix in which elements above or below the principal diagonal are triangular matrix. If the elements above the principal diagonal are zero then it is a lower triangular matrix and if the elements below the principal diagonal are zero it is an upper triangular matrix.

Take a look at below given lower and upper triangular matrix,

**Column matrix:**The matrix which only has one column is known as a column matrix. The order of the column matrix is always seen to be m×1.

**Row matrix:**The matrix which only has one row is known as row matrix. The order of the matrix is always seen to be 1Xn.

**Horizontal matrix:**The matrix with both rows and columns in order of m×n is a horizontal matrix. In the horizontal matrix number of columns needs to be greater than the number of rows (n>m).

**Vertical matrix:**The matrix with both rows and columns in order m×n is a vertical matrix. In the vertical matrix Number of rows needs to be greater than the number of columns (m>n).

**Identity matrix:**When all the elements of the principal diagonal are 1 in a matrix then it is said to be an identity matrix or unit matrix.

**Diagonal matrix**: If all the elements in a square matrix are zero except the principal diagonal is known as a diagonal matrix.

**Symmetric matrix:**A square matrix which is a_{ij}=a_{ji }for all values of i and j is known as a symmetric matrix.

### Elementary Matrix Operations

Generally, there are three known elementary matrix operations performed on rows and columns of matrices. The operations performed on the rows are known as **elementary matrix row operations**. Whereas, the operations performed on columns are known as **elementary matrix column operations.**

The three different elementary matrix operations for rows are:

- Interchange two Rows
- Multiply a Row by a number
- Adding one Row to another Row

And, the three elementary matrix operations for columns are:

- Interchange Columns
- Multiply a Column by a number
- Adding one Column to another

Now, let’s look into how are these operations performed.

### Elementary Matrix Row Operations

To perform the elementary row operations let suppose a matrix A_{r×c} that will be A_{3×3}.

Let

**Interchange two Rows**

This operation can be carried out by interchanging the position of any two rows of the matrix. It is indicated by R_{1}<=>R_{2.}

Interchanging the rows of matrix

Hence, R_{1}<=>R_{2 }will be

Here, the row 1 is replaced by row 2 and row 2 is replaced by 1. Whereas, the row 3 remains unchanged.

**Multiplying a Row by a Number**

This operation can be carried out by multiplying a row with a non-zero constant that will replace the elements of the row.

Lets multiply row 2 of the given matrix A= by 2.

Hence, R_{2 }<=>2R_{2 }will be

Here, the 2nd row is replaced by 2 times of itself.

**Adding one Row to another**

This operation can be performed by summing up anyone row with another one in the matrix. The remaining rows of the matrix remain unchanged. It can be indicated by R_{1}+R_{2}<=>R_{2}

Let’s sum up rows 1 and 3 to replace the elements of row 3 in the given matrix.

Here, row 3 is replaced by the sum of rows 1 and 3. Whereas, row 1 and 2 remains unchanged.

### Elementary Matrix Column Operations

To perform the elementary matrix column operation let us suppose a matrix A_{r×c} that will be A_{3×3}.

Let

**Interchange two Columns**

This operation can be carried out by interchanging the position of any two columns of the matrix. It is indicated by C_{1}<=>C_{2}.

Interchanging the columns of the matrix

Hence, C_{1}<=>C_{2} will be

Here, the column 1 is replaced by column 2 and column 2 is replaced by 1. Whereas, the column 3 remains unchanged.

**Multiplying a Column by a Number**

This operation can be carried out by multiplying a column with a non-zero constant that will replace the elements of the column.

Let’s multiply column 2 of the given matrix

Hence, 2C_{2}=>C_{2} will be

Here, the column 2 is replaced by 2 times of itself.

**Adding one Column to another**

This operation can be performed by summing up anyone column with another one in the matrix. The remaining columns of the matrix remain unchanged. It can be indicated by C_{1 }+ C_{2 }= C_{2}

Let’s sum up columns 1 and 2 to replace the elements of column 2 in the given matrix.

Hence, C_{1}+C_{2}=C_{2} will be

Here, column 2 is replaced by the sum of columns 1 and 2. Whereas, column 1 and 3 remains unchanged.

### Similar Questions

**Question 1: Perform the operation R _{1}<=>R_{2} on the given matrix.**

**Solution:**

The indication R

_{1}<=>R_{2 }means to interchange rows 1 and 2 with each other.So, the matrix

In the given operation, row 1 replaces row 2 and row 2 replaces row 1. Whereas, row 3 remains unchanged.

**Question 2: Perform operation C _{2}<=>C_{3} on the given matrix.**

**Solution:**

The indication C

_{2}<=>C_{3}means to interchange columns 2 and 3 with each other.so the matrix will become

In the given operation, column 2 replaces 3 and column 3 replaces 2. Whereas, column 1 remains unchanged.

**Question 3: Perform the row operation 3R _{1}=>R_{1 }on the given matrix.**

**Solution:**

The indication 3R

_{1}=> R_{1}means to multiply row 1 with a non-zero constants that is 3 to replace the elements of row 1.In the given operation the 3 times of 1 row replaces the elements of row 1. Whereas, row 2 and 3 remains constant.

**Question 4: Perform the column operation 2C _{2}=>C_{2} on the given matrix.**

**Solution:**

The indication 2C

_{2}=>C_{2}means to multiply column 2 with a non-zero constant that is 2 to replace the elements of column 2.In the given operation the 2 times of column 2 replaces the elements of column 2. Whereas, column 1 remains unchanged.

**Question 5: Perform the row operation R _{1}+R_{2}=>R_{2 } on the given matrix.**

**Solution:**

The indication R

_{1}+R_{2}=>R_{2}means to replace the elements of row 2 with the sum of rows 1 and 2.

In the given operation the elements of row 2 is replaced by the sum of rows 1 and 2.

**Question 6: Perform the column operation C _{1}+C_{3}=>C_{3} on the given matrix.**

**Solution:**

The indication C

_{1}+C_{3}=>C_{3}means to replace the elements of column 3 with the sum of columns 1 and 3.In the given operation the elements of the column 3 is replaced by the sum of columns 1 and 3.