Question: Q 1 . Eigenvalues and eigenvectors of a matrix Consider the following matrix [ left [ begin { array } { ccc
Q Eigenvalues and eigenvectors of a matrix
Consider the following matrix
leftbeginarrayccc
& &
& &
& &
endarrayright
a points To find eigenvalues of this matrix using the polynomial method, derive the characteristic equation ie the equation that takes the form of polynomial
b points To solve the characteristic equation, use a root finding code any method you previously wrote. You need to find at least one root ie one eigenvalue for the linear system Submit both your code and your result.
c point Find all eigenvalues using the same code and clearly explain how you achieved that.
d points Independently, write your own code to use the Power Method to determine both the largest and the smallest eigenvalues of the matrix.
Carry out iterations for each eigenvalue.
Calculate the approximate relative error at each iteration.
Note that you code should be able to handle a general square matrix of any size
Hint : Refer to Examples and in the textbook.
Hint : You can use builtin functions in Matlab or Python to find the matrix inverse.
e points Ask ChatGPT or similar Artificial Intelligence AI tools available online BingChat Bard, Claude, etc to write a piece of code for you with the same requirements specified in d
Test the code and write a short to sentences compare and contrast between your own code and code generated by the AI tool.
fExtra Credit points Try to improve your own code so that it is at least better than the AI code in one aspect any aspect would be fine
Clearly define this particular aspect you choose in sentence and then explain why your code is better. NOTE: Dr Pai and the TA team will not answer any questions regarding this extra credit task.
Please for the coding parts do it in MATLAB
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
