Linear Algebra: UNIT IV: Matrix Decomposition

Singular Value Decomposition: Example Solved Problems

Important Example Solved Problems - Engineering Maths or Mathematics - Singular Value Decomposition

SINGULAR VALUE DECOMPOSITION

WORKED EXAMPLES

 

Example 1

Determine the singular value decomposition for the matrix .

Solution:

Step 1: Compute AAT


Step 2: Find the eigenvalues of AAT

From step 1. We have AAT

The characteristic polynomial is [AAT — λI] = 0

|AAT — λI| =  = 0

 (17−λ)2−64−0

289 + λ2 – 34λ− 64 = 0

=> λ2 ‒ 34λ + 225 = 0

 (λ−9)(λ−25) = 0

 The eigenvalues are λ = 25, 9.

Hence the eigenvalues are λ1 = 25 and λ2 = 9. These eigenvalues correspond to the singular values σ1 = √λ1 = √25 = 5 and σ2 = √λ2 = √9 = 3, since the singular values are the square roots of these eigenvalues.

Step 3: Find the right singular vectors (Eigenvectors of ATA)

Now we find the eigenvectors of ATA for λ1 = 25 and λ2 = 9.


Case (i): When λ=25, then the eigenvector is [ATA− λI]V=0

 (ie) [ATA – 25I] V = 0 where 


 −12v1+12v2−2v3 = 0

12v1−12v2−2v3=0

2v1−2v2−17v3=0

Let us consider the last two equations

12v1−12v2−2v3=0

2v1−2v2−17v3=0


 The normalized form of the eigenvector corresponding to λ=25 is


Case (ii): When λ=9, the eigenvector is (ATA−λI)V = 0

(ie) [ATA – 9I]V = 0


4v1+12v2+2v3=0

12v1+4v2−2v3=0

2v1−2v2 − v3 = 0

Let us consider the first two equations

4v1 + 12v2 + 2v3 = 0

12v1 +4v2 − 2v3 = 0


The normalized form of the eigenvector corresponding to λ=9 is


To find the third eigenvector V3 :

Since V3 must be perpendicular to V1 and V2, we solve the system VT1V3 = 0 and VT2V3 = 0.


By solving these two equations we have


Therefore the corresponding third normalized form of eigenvector is

Step 4: Compute the left singular vectors (matrix U)

To compute the left singular vectors U, we use the formula ui = 1/σi = AVi.

u1 = 1/σ1 = AV1

u2 = 1/σ2 = AV2


Step 5: Formulate the matrices V= [v1 v2 v3] and Σ


Step 6: The singular value decomposition of the matrix A is

  A = UΣVT


To verify the singular value decomposition

Let us verify the statement A=UΣVT


 

Example 2

Find the singular value decomposition of the matrix A = .

Solution:

Step 1: Compute AAT


Step 2: Find the eigenvalues of AAT

From Step 1.

 AAT=

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

  |AAT−λI|==0

 (65−λ) (17− λ)−1024 = 0

1105 − 65λ − 17λ + λ2 – 1024 = 0

λ2−82λ+81=0

 (λ−1)(λ−81)=0

The eigenvalues are λ=81 and 1.

 λ1=81 and λ2=1. These eigenvalues correspond to the singular values σ1 = √81 = 9 and σ2 = √λ2 = √1 = 1, since the singular values are the square roots of these eigenvalues.

Step 3: Find the right singular vectors (Eigenvectors of ATA)

Now we find the eigenvectors of ATA for λ1=81 and λ2 = 1.


Case (i): When λ=81, the eigenvector is [ATA−81I]V=0


 −64v1 + 32v2 = 0

 32v1−16v2 = 0

By solving these two equations, we have

 −2v1 + v2 = 0

 2v1−v2 = 0

We have a single equation

2v1−v2=0

2v1 = v2

Put v1 =1 then v2 = 2.

The eigenvector is V1

The normalized form of this eigenvector is V1

Case (ii): When λ=1, the eigenvector is (ATA − λI)V = 0

 [ATA−1I] V=0


 16v1+ 32v2 = 0

 32v1 +64v2 = 0

  We have only one equation v1 + 2v2 =

 v1 = −2v2

Let us put v1 = 1, then v2 = ‒1⁄2

The eigenvector when λ=1 is v2

The normalized form of the eigenvector is V2

Step 4: Compute the left singular vectors (matrix U)

To compute the left singular vectors U, we use the formula


Step 5: Formulate the matrices V= [v1, v2] and Σ


Step 6: The singular value decomposition is A = UΣVT


To verify the singular value decomposition

Let us verify the statement A= UΣVT.


  The singular value decomposition is verified.

 

Example 3

Determine the singular value decomposition of the matrix A= 

Solution:

Step 1: Compute ATA

Given that A= 

Step 2: Find the eigenvalues of ATA


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

 = 0

(5−λ) (2−λ)−4=0

10−5λ−2λ+λ2=0

λ2 ‒ 7λ+6=0

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

  The eigenvalues are λ1=6 and λ2=1.

These eigenvalues correspond to the singular values

 σ1 =√λ1 = √6 and σ2 = √λ2 = √1=1, since the singular values are the square roots of eigenvalues.

Step 3: Find the right singular vectors (Eigenvectors of ATA)

The eigenvector for the matrix [ATA−λI]V=0

Case (i): When λ=6; the eigenvector is determined by


 −v1+2v2 = 0 and 2v1−4v2=0

Here we have a single equation v1−2v2=0

 v1 = 2v2

Let us consider v1 =2 then v2 = 1.

 The eigenvector when λ=6 is V1

The normalized form of eigenvector is V1

Case (ii): When λ= 1; the corresponding equations are


 4v1+2v2 = 0 and 2v1+v2=0.

Here also we have a single equation 2v1+v2=0

 2v1 = ‒v2

Put v1 =1 then v2 = −2.

.. The eigenvector when λ=1 is V2

The normalized form of V2 is V2

Step 4: Compute the left singular vectors (matrix U)

The compute the left singular vectors U1 we use the formula


To find the remaining eigenvector

Let us consider ATV=0


 2v1+ v2+0v3 = 0

 1v1 + 0v2+ 1v3 = 0

2u1+v2 =0 and v1+v3=0

Put v1 =1 then v2=−2 and v3 = − 1.

 The corresponding eigenvector is u3

  The corresponding normalized form is 

Step 6: Formulate the matrices V= [v1, v2] and Σ


The singular value decomposition of the matrix A is A = UΣ VT


To verify the singular value decomposition

Let us verify the statement A=UΣVT


 

Example 4

Find a singular value decomposition of the matrix


Solution:

Step 1: Compute AAT


Step 2: Find the eigenvalues of ATA

From Step 1, we have ATA = 

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


On expanding the determinant and solving the cubic equation we get λ=360, 90 and 0.

Hence the eigenvalues are λ1=360, λ2=90 and λ3=0. These eigen values correspond to the singular values

σ1 = √λ1 = √360 = 6√10, σ2 = √λ2 = √90 = 3√10 and σ3 = √λ3 = 0,

since the singular values are the square roots of these eigenvalues.

Step 3: Find the right singular vectors (Eigenvectors of ATA)

Now we have to find the eigenvectors of ATA for λ=360, λ = 90 and λ=0. We know that, from step 1


Case (i): When λ=360, then the eigenvector is

[ATA−λI]V=0 where 


−28v1 +10v2 + 4v3=0

10v1−19v2+14v3=0

4v1 +14v2−16v3=0

By solving the last two equations we have

 10v1−19v2+14v3 = 0

 4v1 + 14v2 – 16v3 = 0


The eigenvector when λ=360 is V1

 The normalized form of V1 is V1

Case (ii): When λ=90, the eigenvector is [ATA−90I]V=0


 −v1+10v2 + 4v3 = 0

 10v1 +8v2 + 14v3 = 0

 4v1 + 14v2 + 11v3 = 0

By solving the first two equations,

 v1 + 10v2 + 4v3 = 0

 10v1 + 8v2 + 14v3 = 0


 The eigenvector when λ=90 is V2

The normalized form of V2 is V2

Case (iii): When λ=0, the eigenvector is [ATA−0I] V=0.


8v1+10v2+4v3=0

10v1 + 17v2+14v3=0

4v1 + 14v2+20v3=0

Solving the last two equations

10v1 + 17v2+14v3 = 0

4v1 + 14v2 +20v3 = 0


Step 4: Compute the left singular vectors (matrix U)

To compute the left singular vectors U, we use the formula


Step 5: Formulate the matrices V= [v1, v2, v3] and Σ


Step 6: The singular value decomposition of the matrix is

 A = UΣVT


To verify the singular value decomposition

We can verify the statement A = UΣVT.


 

Example 5

Determine the singular value decomposition for the matrix 

Solution:

Step 1: Compute AAT


Step 2: Find the eigenvalues of AAT

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


 (12−λ) [(12−λ) (44−λ)−400]−12[12 (44−λ)−400] − 20 [−240+20 (12 − λ)] = 0

(12− λ) [528−12λ −44λ + λ2−400]−12 [528−12λ −400] − 20 [−240+240−20λ]=0

(12 – λ) [λ2 – 56λ + 528−400] − 12[− 12λ +128] −20 [−20λ] = 0

12λ2 − 672λ + 1536− λ3 + 56λ2−128λ + 144λ − 1536 + 400λ = 0

− λ3+68λ2−256λ = 0

 λ3 − 68λ2 + 256λ = 0

(λ ‒ 0) (λ ‒ 64) (λ − 4) = 0

 The eigenvalues are λ = 64, 4, 0.

Hence the eigenvalues are λ1 = 64, λ2=4 and λ3 = 0.

These eigen values correspond to the singular values

 σ1 =√λ1 = √64 =8, σ2 = √λ2 = √4 = 2 and σ3=0.

since the singular values are the square roots of these eigenvalues.

Step 3: Find the right singular vectors (Eigenvectors of AAT)

To find the eigenvectors, let us define

 [AAT – λI]V = 0

Case (i): When λ=64, the eigenvectors are [AAT − 64I]V=0


 −52v1 + 12v2 − 20v3 = 0

12v1−52v2−20v3 = 0

−20v1−20v2−20v3=0

On simplification, we have

 −13v1 +3v2−5v3=0

 3v1−13v2−5v3 = 0

 −5v1−5v2−5v3 = 0

To solve these equation let us consider the last two equations,

 3v1−13v2−5v3 = 0

 v1+v2 + v3 = 0


Case (ii): When λ=4, the eigenvectors are [AAT – 4I] V=0


8v1 + 12v2 – 20v3 = 0

12v1+8v2−20v3=0

−20v1−20v2+40v3=0

On simplifying, we have

2v1 +3v2−5v3=0

3v1 +2v2−5v3=0

v1+v2−2v3=0

Consider the first two equations, we have

 2v1 +3v2−5v3=0

 3v1+2v2−5v3=0


 The eigenvector when λ=4 is V2

The normalized form of V2 is V2

Case (iii): When λ=0, the eigenvectors is [AAT−0I] V=0


3v1 +3v2−5v3=0

3v1+3v2−5v3=0

−5v1−5v2−11v3=0

By considering the last equations, we have

3v1 +3v2−5v3=0

5v1 +5v2 + 11v3=0

 Step 4: Compute the left singular vectors (matrix U)

To compute the left singular vectors U, we use the formula


Step 5: Formulate the matrices V = [v1, v2, v3] and Σ


Step 6: The singular value decomposition of the matrix is

A=UΣVT


To verify the singular value decomposition

We can verify the statement A = UΣVT.


 

Linear Algebra: UNIT IV: Matrix Decomposition : Tag: maths, mathematics : - Singular Value Decomposition: 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