Question
Q1) Power Method and Associated problems i) Generate using code a random integer matrix C of size 4times 3 and a ma- trixA_(1) defined as
Q1) Power Method and Associated problems\ i) Generate using code a random integer matrix
C
of size
4\\\\times 3
and a ma-\
trixA_(1)
defined as
A_(1)=C^(T)C
and workout its characteristic equation.\ Using any software package, determine the eigenvalues and eigenvec-\ tors.\ Deliverables: The matrices
C
and
A_(1)
, the computation of the char-\ acteristic equation, the eigenvalues and eigenvectors as obtained from\ the package.\ (0.5 marks)\ ii) Write a code in your chosen programming language to implement the\ Power method and use it to derive the largest eigenvalue
\\\\lambda _(1)
and corre-\ sponding eigenvector
x_(1)
of
A_(1)
. Find
hat(x)_(1)=(x_(1))/(||x_(1)||_(2))
. Compare the values\ obtained in i) with these values.\ Deliverables: The handwritten code that implements the Power method,\ the first 10 iterates of eigenvalue generated by the algorithm and the\ final
\\\\lambda _(1)
and
hat(x)_(1)
and a comment on the comparison.\ (0.5 marks)\ iii) Write a code to construct matrix
A_(2)=(A_(1)-hat(x)_(1)hat(x)_(1)^(T)A_(1))
. Use the Power\ method code written in ii) and use it to derive the largest eigenvalue\
\\\\lambda _(2)
and corresponding eigenvector
x_(2)
of
A_(2)
. Find
hat(x)_(2)=(x_(2))/(||x_(2)||_(2))
. Com-\ pare the values obtained in i) with these values.\ Deliverables: The first 10 iterates of
\\\\lambda _(2)
and
hat(x)_(2)
and a comment on the\ comparison.\ (0.5 marks)\ iv) Write a code to construct matrix
A_(3)=(A_(1)-hat(x)_(1)hat(x)_(1)^(T)A_(1)-(hat(x_(2)))hat(x)_(2)^(T)A_(1))
.\ Use the Power method code written in ii) and use it to derive the\ largest eigenvalue
\\\\lambda _(3)
and corresponding eigenvector
x_(3)
of
A_(3)
. Find\
hat(x)_(3)=(x_(3))/(||x_(3)||_(2))
. Compare the values obtained in i) with these values.\ Deliverables: The first 10 iterates of
\\\\lambda _(3)
and
hat(x)_(3)
and a comment on the\ comparison.\ (0.5 marks)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started