Consider the matrices Note that the two matrices are the same except for their (2, 2) entries.
Question:
Note that the two matrices are the same except for their (2, 2) entries.
(a) Use MATLAB to compute the eigenvalues of A and B. Do they have the same type of eigenvalues? The eigenvalues of the matrices are the roots of their characteristic polynomials. Use the following MATLAB commands to form the polynomials and plot their graphs on the same axis system
p = poly(A); q = poly(B);
x = -8 : 0.1 : 8; z = zeros(size(x));
y = polyval(p, x); w = polyval(q, x);
plot(x, y, x, w, x, z) hold on
The hold on command is used so that subsequent plots in part (b) will be added to the current figure. How can you use the graph to estimate the eigenvalues of A? What does the graph tell you about the eigenvalues of B? Explain.
(b) To see how the eigenvalues change as the (2, 2) entry changes, let us construct a matrix C with a variable (2, 2) entry. Set
t = sym('t') C = [5, -3; 3, t - 5]
As t goes from 0 to 10, the (2, 2) entries of these matrices go from -5 to 5. Use the following MATLAB commands to plot the graphs of the characteristic polynomials for the intermediate matrices corresponding to t = 1, 2,.... 9.
p = poly(C)
for j = l : 9
s = subs(p, t, j);
ezplot(s, [-10, 10])
axis([-10, 10, -20, 220])
pause(2)
end
Which of these intermediate matrices have real eigenvalues and which have complex eigenvalues? The characteristic polynomial of the symbolic matrix C is a quadratic polynomial whose coefficients are functions of t. To find exactly where the eigenvalues change from real to complex, write the discriminant of the quadratic as a function of t and then find its roots. One root should be in the interval (0, 10). Plug that value of t back into the matrix C and determine the eigenvalues of the matrix. Explain how these results correspond to your graph. Solve for the eigenvectors by hand. Is the matrix diagonalizable?
Step by Step Answer: