Linear Algebra: UNIT IV: Matrix Decomposition

Orthogonal Transformation of a Symmetric Matrix to Diagonal Form: Example Solved Problems

Important Example Solved Problems - Engineering Maths or Mathematics - Orthogonal Transformation of a Symmetric Matrix to Diagonal Form: Example Solved Problems

ORTHOGONAL TRANSFORMATION OF A SYMMETRIC MATRIX TO DIAGONAL FORM

WORKED EXAMPLES

 

Example 1

Find an orthogonal matrix P such that PTAP is diagonal matrix where A = .

Solution:

Given that A = 

The characteristic polynomial of A is |A− λI| = 0


(1 −λ) [(1 − λ) (5 − λ) − 4] − 0[0 (5 – λ) + 2]  −1[0 (2)+1(1− λ)] = 0

(1 − λ) [5 − λ − 5λ + λ2 − 4] − 1 [1 − λ] = 0

 (1 − λ) [λ2 − 6λ + 1] −1 [1‒ λ] = 0

 λ2 − 6λ + 1 − λ3 + 6λ2 − λ −1 + λ =0

 −λ3 + 7λ2 − 6λ = 0

λ3 − 7λ2 + 6λ = 0

==>

λ=0 (or) λ2−7λ + 6 = 0

 λ=0 (or) (λ−1) (λ − 6) = 0

  The eigenvalues are λ = 0, 1, 6.

To find the eigenvectors

Let us consider [ A− λI ]X=0 where 


 (1−λ)x1+0x2−x3=0

0x1 + (1‒λ)x2 + 2x3 = 0

 − x1+2x2+(5−λ) x3 = 0

                      ... (1)

Case (i)

When λ=0, the system of equations (1) becomes

 x1+0x2−x3=0

 0x1 + x2+2x3=0

 −x1 + 2x2+5x3 = 0

Here all the three equations are different. Hence we can take any two of these three equations.

  Let us consider first two equations.

 x1+0x2−x3=0

 0x1 + x2 + 2x3 = 0


The corresponding eigenvector is 

Case (ii)

When λ= 1, the system of equations (1) becomes

 0x1+0x2−x3=0

 0x1+0x2+2x3=0

 − x1 + 2x2+4x3 = 0

Let us consider the last two equations.

 0x1+0x2+2x3 = 0

  ‒x1 + 2x2 + 4x3 = 0


The corresponding eigenvector is 

Case (iii)

When λ=6, the system of equations (1) becomes

 −5x1+0x2−x3=0

 0x1‒5x2+2x3=0

x1+2x2−x3=0

Now let us consider the first two equations

 −5x1+0x2−x3 = 0

 0x1‒5x2+2x3=0


The corresponding eigenvector is

  The three eigenvectors are respectively


 These three eigenvectors are orthogonal.

Now || X1 || = √ [(1)2 + (− 2)2 + (1)2 ] = √[1 + 4+1] = √6

|| X2 || = √[(2)2 + (1)2 + (0)2 ] = √[4 + 1 + 0] = √5

|| X3 || = √ [ (− 1)2 + (2)2 + (5)2 ] = √[1 +4 + 25] = √30

 || X1 ||2 = 6, ||X2||2 = 5 and ||X3||2 = 30


We have to compute the values of PTAP = D

where D is the diagonalized matrix.


 

Example 2

Orthogonally diagonalize the given symmetric matrix


Solution:

Given that A = 

The characteristic equation is |A− λI| = 0

 |A− λI| = 

 (8− λ) [(5− λ) (5− λ)−16] + 2 [−2 (5− λ)−8]+2 [−8−2 (5− λ)]=0

 (8−λ) [25 + λ2 − 10λ − 16] + 2 [−10+2λ−8]+2 [−8−10+2λ] = 0

 (8−λ) [λ2−10λ +9]+2 [2λ−18]+2 [2λ−18]=0

 8λ2−80λ+72− λ3 +10λ2−9λ+4λ−36+4λ−36=0

 − λ3 + 18λ2−81λ = 0

  λ3−18λ2+81λ=0

 λ[λ2 − 18λ +81]=0

  λ=0 (or) λ2−18λ +81=0

  λ=0 (or) (λ‒9) (λ−9)=0 .

The eigenvalues are λ=0, 9, 9

To find the eigenvectors:

Let us consider [A− λI]X=0


 (8−λ)x1−2x2 + 2x3 = 0

 ‒2x1+(5−λ)x2+4x2 = 0

 2x1 + 4x2 + (5−λ)x3 = 0

                           ... (1)

Case (i)

When λ=0, the system of equation (1) becomes

 8x1‒2x2+2x3=0

−2x1 +5x2+4x3 = 0

 2x1 + 4x2 + 5x3 = 0

Let us consider the first two equations

8x1 − 2x2+2x3 = 0

−2x1 +5x2 + 4x3 = 0


  The corresponding eigenvector is 

Case (ii)

 When λ=9, the system of equation (1) becomes

 −x1−2x2+2x3=0

 −2x1−4x2 + 4x3 = 0

 2x1 + 4x2 − 4x3 = 0

Here all the three equations are similar

 x1+2x2−2x3=0

Let us put x1 = 0 and x2 = 1.

If we put x1 = 0 and x2=1 then 0+2 −2x3 = 0

⇒     2x3=2     x3 = 1

Hence

 x1 =0, x2 = 1 and x3 = 1

 The corresponding eigenvector is 

Case (iii)

 When λ=9, the system of equation (1) has again a similar equation x1+2x2‒2x3=0

 Let  which is orthogonal to X1 and X2.

  .−l−2m+2n=0 and 0l+m+n=0

Solving these two equations;


These three eigenvectors are orthogonal.

|| X1 || = √[(− 1)2 + (− 2)2 +(2)2 ] = √[1 +4 +4] = √9=3

|| X2 || = √[ (0)2 + (1)2 + (1)2 ] = √[0 + 1 + 1] = √2

||X2|| = √[ (−4)2 + (1)2 + (− 1)2 ] = √[ 16 + 1 + 1] = √18

  || X1 ||2 = 9,  || X2||2 = 2 and || X3||2 = 18



 

Example 3

For matrix A =  find an orthogonal matrix P such that PTAP is diagonal.

Solution:

Let A = 

The characteristic polynomial is |A−λI|=0


On expanding the determinant we get λ3 – 18λ2 + 45λ = 0

 λ[λ2 − 18λ +45]=0

 λ=0 (or) λ2−18λ +45 = 0

  λ=0 (or) (λ −3) (λ −15) = 0

 The eigenvalues are λ=0, 3, 15

To find the eigenvectors

The eigenvectors are given by [A−λI] X=0


 (8−λ)x1−6x2+2x3=0

 −6x1+(7−λ)x2‒4x3=0

 2x1‒4x2 + (3− λ)x3 = 0

                  ………(1)

Case (i)

When λ=0, the system of equations (1) becomes

 8x1−6x2+2x3=0

 −6x1 + 7x2 − 4x3 = 0

 2x14x2+3x3 = 0

By solving any two of these equations, we get

x1/5 = x2/10 = x3/10

 The corresponding eigenvector is X1

Case (ii)

 When λ=3, the system of equations (1) becomes

 5x1−6x2+2x3 = 0

 −6x1+4x2− 4x3 = 0

 2x1−4x2 +0x3 = 0

Solving any two of these equations we get

x1/2 = x2/1 = x3/‒2

 The eigenvector corresponding to λ=3 is X2

Case (iii)

When λ= 15, the system of equations (1) becomes

−7x1−6x2+2x3=0

 −6x1−8x2−4x3=0

 2x1−4x2−12x3=0

By solving any two of these equations, we get

x1/2 = x2/‒2 = x3/1

 The eigenvector corresponding to λ= 15 is X3


 The eigenvectors are orthogonal.

|| X1 || = √[12 + 22 + 22] = √[1 +4 +4] = √9 = 3

|| X2 || = √[ 22 + 12 + (−2)2 ] = √[4+1+4] = √9=3

|| X3 || = √[22 + (−2)2 + 12] = √[4 +4 + 1] = √9 = 3

 || X1 ||2 = 9, || X2 ||2 = 9 and || X3 ||2 = 9


 

Example 4

For the matrix A =  find an orthogonal matrix P  such that PTAP is diagonal.

Solution:

Let A = 

The characteristic polynomial is |A−λI} = 0

 |A ‒ λI| = 

On expanding the above determinant we have

 λ3 – 9λ2 + 24λ − 16 = 0

By solving this equation,

The eigenvalues are λ = 1, 4, 4

To find the eigenvectors:

The eigenvectors are given by [A−λI]X=0


 (3−λ)x1 + x2 + x3 = 0

 x1+ (3−λ)x2 − x3 = 0

  x1−x2 + (3−λ)x3 = 0

                    ... (1)

Case (i)

When λ= 1, the system of equations (1) becomes

2x1+x2+x3=0

x1+2x2x3=0

x1x2+2x3=0x

Solving the first two equations, we get

x1/‒3 = x2/3 = x3/3

 The eigenvector corresponding λ=1 is X1

Case (ii)

When λ=4, the system of equations (1) becomes

x1+x2+x3=0

x1x2x3=0

x1x2x3=0

All the equations are similar x1x2x3 = 0

Put x2 = 1 and x3 = 0, then we get x1 = 1.

 The eigenvector corresponding to λ=4 is X2

Case (iii)

When λ=4, again we have the same similar equation x1x2x3 = 0

Let X3

Since X3 is orthogonal to X2, we get 1+m+0n = 0

Since X3 satisfies l−m−n=0. Solving these two equations

We get l/‒1 = m/1 = n/‒2

 The eigenvector corresponding to λ=4 is X3

Hence X1TX2=0, X2TX3=0 and X3TX1 =0.

All the three eigenvectors are orthogonal.

|| X1 || = √[(− 1)2 + 12 + 12 ] = √3

|| X2 || = √[ 12 + 12 + 02 ] = √2

|| X3 || = √[ (−1)2 + 12 + (−2)2 ] = √6

 || X1 ||2 = 3, || X2 ||2 = 2 and || X3 ||2 = 6.


 

Example 5

For the matrix A = , find an orthogonal matrix P such that PTAP is diagonal.

Solution:

It is given that A= 

The characteristic polynomial is |A−λI|=0


On expanding the above determinant, we get

 λ3−11λ2 +36λ−36=0

(λ−2) (λ−3) (λ−6)=0

  The eigenvalues are λ=2, 3, 6.

To find the eigenvectors:

Let us consider [A−λI] X=0


 (3−λ)x1x2+x3=0

 −x1+(5−λ)x2x3=0

 x1x2+(3−λ)x3=0

                      ...(1)

Case (i)

When λ=2, the system of equations (1) becomes

 x1x2+x3=0

 −x1+3x2x3=0

 x1x2+x3=0

Solving the first two equations we get

 x1/‒2 = x2/0 = x3/2

 The eigenvector corresponding to λ=2 is X1

Case (ii)

When λ=3, the system of equations (1) becomes

 0x1x2+x3=0

 −x1+2x2x3=0

 x1x2+0x3=0

From the first and last equations, we have x1 = x2=x3.

Let x1 = 1, x2=1 and x3 = 1 (say)

Then the eigenvector when λ=3 is X2

Case (iii)

When λ=6, the system of equations (1) becomes

−3x1x2+x3=0

x1x2x3=0

x1x2−3x3=0

Solving these equations, we get X3


The three eigenvectors are orthogonal

|| X1 || = √ [12 + 02 + (−1)2 ] = √2

|| X2 || = √[12 + 12 + 12] = √3

|| X3 || = √[12 + ( − 2)2 + 12] = √6

 || X1 ||2 = 2, || X2||2 = 3 and || X3 ||2 = 6


PTAP = Diagonal matrix

 

Example 6

Find the principal axes for the quadratic form q= x21+x22−4x1x2.

Solution:

In order to use the concept of diagonalization, we first express q in matrix form.

The quadratic form can be converted into matrix form with the following formula.



Here the obtained matrix A is symmetric.

Now let us find the eigenvalues of the obtained matrix


We know that the characteristic polynomial is |A−λI|=0

 |A – λI| =  = (1 − λ) (1 − A) ‒ 4 = 0

 (1−λ)2−4=0

 (1+λ2−2λ)−4=0

λ2−2λ−3=0

 (λ+1) (λ−3)=0

 The eigenvalues are λ=−1 and 3

To find the eigenvectors:

The eigenvectors are obtained as [A−λI] X=0, where 

 (1 − λ) x1 − 2x2 = 0

 −2x1+ (1 − λ) x2 = 0

               …………..(1)

Case (i)

When λ=−1, the above system of equations (1) becomes

2x1−2x2=0

 ‒2x1 + 2x2 = 0

x1=x2

If we put x1 = 1, then x2 = 1.

 The eigenvector when λ=−1 is 

Case (ii)

When λ=3, the above system of equations (1) becomes

− 2x1−2x2 = 0

−2x1−2x3=0

x1 = x2

If we put x1 = 1, then x2 =−1.

 The eigenvector when λ=3 is 

These two eigenvectors are orthogonal.

|| X1 || = √2 and || X2 ||=√2

|| X1 ||2 = 2 and || X2 ||2 = 2


 q = ‒y12 + 3y22

 

Example 7

Find the principal axes for the quadratic form q = 10x21 + 2x22 + 5x23 + 6x2x3 − 10x1x3 − 4x1x2

Solution:

The given quadratic form is

 q=10x21+2x22+5x23 + 6x2x3 − 10x1x3 − 4x1x2

To transform the quadratic form to matrix form, we use the formula


The matrix A is a real symmetric matrix.

To find the eigenvalues

The characteristic polynomial is | A−λI |=0.


On expanding the determinant we get λ3 − 17λ2 + 42λ = 0.

By solving this equation, we have λ = 0, 3, 14.

To find the eigenvectors

Let us consider [A− λI] X = 0 to find the eigenvectors.


(10−λ)x1−2x2−5x3=0

−2x1 + (2−λ)x2 + 3x3 = 0

−5x1+3x2+(5−λ)x3=0

Case (i)

When λ=0, the equations (1) become

10x1 − 2x2−5x3=0

−2x1+2x2+3x3=0x

−5x1+3x2+5x3=0

Solving the first two equations, we get x1 = 1, x2=−5 and x3 = 4.

 The eigenvector for λ=0 is X1

Case (ii)

When λ=3, the equations (1) become

7x1‒2x2−5x3=0

−2x1−x2+3x3=0

−5x1+3x2+2x3 = 0

By solving the last two equations, we get x1 = −11, x2= −11 and x3 = −11

 The eigenvector for λ=3 is X2

Case (iii)

When λ= 14, the equations (1) become,

 −4x1−2x2−5x3=0

  −2x1−12x2+3x3=0

 −5x1 +3x2−9x3=0

By solving the first and last equations, we get

 x1 = 33, x2 = −11 and x3=−22,

 The eigenvector for λ= 14 is X3


The eigenvectors are orthogonal pairwise

|| X1 || = √[12 + (− 5)2 +42] = √[1 +25 + 16] = √42

|| X2 || = √[12 + 12 + 12] = √3

|| X3 || = √[32 + (− 1)2 + (− 2)2] = √[9 +1 + 4] = √14


This is equivalent to X=PY (since P−1=PT)


In terms of y1, y2, y3, q takes the form, q=YT(D) Y


 q = 0y21 + 3y22 + 14y23

 

Linear Algebra: UNIT IV: Matrix Decomposition : Tag: maths, mathematics : - Orthogonal Transformation of a Symmetric Matrix to Diagonal Form: Example Solved Problems


Linear Algebra: UNIT IV: Matrix Decomposition



Under Subject


Linear Algebra

MA25C02 2nd Semester | 2025 Regulation



Related Subjects


English Essentials II

EN25C02 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation



Linear Algebra

MA25C02 2nd Semester | 2025 Regulation


Transforms and its Applications

MA25C03 2nd Semester EEE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Applied Physics (CE) II

PH25C02 2nd Semester Civil, Agri Depts | 2025 Regulation | 2nd Semester 2025 Regulation


Applied Physics (CSIE) II

PH25C03 2nd Semester AIDS, CSE, IT, CSE(CY) Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Applied Physics (EE) II

PH25C04 2nd Semester EEE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Applied Physics (ME) II

PH25C05 2nd Semester Mechanical Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Applied Chemistry (CE) II

CY25C02 2nd Semester Civil Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Applied Chemistry (ME) II

CY25C03 2nd Semester Mechanical Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Electron Devices

EC25C01 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Digital Principles and Computer Organization

CS25C06 2nd Semester AIDS, CSE, IT, CSE(CY) Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Basic Electrical and Electronics Engineering

EE25C01 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation


Basic Civil and Mechanical Engineering

GE25C01 2nd Semester EEE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Data Structures using CPlusPlus

CS25C05 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Engineering Drawing

ME25C01 EEE, Mech, Agri, EEE Depts | 2025 Regulation | 2nd Semester 2025 Regulation


Data Structures and Algorithms

CS25C04 2nd Semester EEE Dept | 2025 Regulation


Circuits and Network Analysis

EC25C02 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Engineering Mechanics

ME25C02 2nd Semester Mech, Civil, Agri Depts | 2025 Regulation | 2nd Semester 2025 Regulation


Object Oriented Programming (OOPs)

CS25C07 2nd Semester CSE, CSE(CY) Depts | 2025 Regulation | 2nd Semester 2025 Regulation