## Introduction

Here we will show how to diagonalize a matrix if it is diagonalizable. What do you mean by a matrix?

Matrix is a way of storing the data in rows and columns. Matrices in arrays are used to store data in an organized form.

Let's see further how we can reduce the matrix to its diagonal form.

## Reduce to Diagonal Form

We will explain how to diagonalize a matrix if it is diagonalizable.

As an example, we solve the following problem. A concrete example is provided below, and several exercise problems are presented at the end of the article.

The image below depicts the matrix of 2X2, which we have to reduce to diagonal form.

To reduce the matrix â€˜Aâ€™ in a diagonal form, we have to find the model matrix â€˜Pâ€™ and inverse of â€˜P,â€™ multiplication of P-1AP will give you the diagonal matrix as shown in the image below.

The next step would be to find out the characteristic polynomial of A. And find the eigenvalues that are 2 and -5, as shown below in the image.

Put these numbers into the diagonal of a matrix with zeroes everywhere else in whichever order you like, and you're done! Yippee!

Let's verify our solution, though.

Firstly, find the eigenvectors associated with the eigenvalues of this matrix.

Let's start with the first eigenvalue Î»=2 and plug it into our matrix Aâˆ’Î»I, and after that, try to find all of the solutions to (Aâˆ’Î»I)x=0

For case 2 i.e, for Î» = -5

Verify your diagonal matrix by constructing a model matrix P of your eigenvectors and using the equation Pâˆ’1AP=Î›.

Stick your eigenvectors into the columns of a matrix:

Find the inverse Pâˆ’1 of that matrix, multiply out the expression Pâˆ’1AP and see if you get back your diagonal matrix.

**We got the final matrix as the diagonal matrix**

**P-1AP = D.**