

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


MAP 5485, Maple Tutorial 4
First open the worksheet in Maple tutorial 4. Use Maple to compute the follow- ing.
(1) Let p 1 ,... , p 7 be the points given is the worksheet. These vectors give the coordinates of successive alpha carbons along the backbone of the protein bacteriorhodopsin. Find the distance matrix (|pi − pj |^2 ) for these points. for these points (2) Let vj = pj+1 − p 1 for j = 1, · · · , 6. Find the Gram matrix (vi · vj ). (3) Let G be the Gram matrix of the vectors v 1 , v 2 , v 3. Diagonalize G (see below) by finding orthogonal matrix F and diagonal matrix D such that F GF ′^ = D. (4) Note that the eigenvalues of G, the entries on the diagonal of D, are positive. Let
D be a matrix whose entries are the square roots of the entries in D. From the above we see that if M =
DF then M ′M = G. Find M and check that M ′M = G. (5) Let V = (v 1 , v 2 , v 3 ) be the matrix with columns v 1 , v 2 and v 3. Since G is the gram matrix of the vectors v 1 , v 2 , v 3 , we have that V ′V = G. We have also shown that M ′M = G so that G is also the Gram matrix for the columns of M. Show that the two sets of vectors differ by a rotation, that is, there is a rotation matrix R such that RV = M. Find R. (6) Here is a case when there are only two distinct eigenvalues for a 3 × 3 matrix. Diagonalize the matrix
Note that if v 1 and v 2 are eigenvectors corresponding to the same eigenvalue λ then your can find an orthonormal set of eigenvectors v 1 ′ and v′ 2 by setting
v′ 1 =
v 1 |v 1 | v 2 ′ =
v 2 − (v 1 ′ · v 2 )v′ 1 |v 2 − (v 1 ′ · v 2 )v′ 1 |
Diagonalization of symmetric matrices
To diagonalize an n × n symmetric matrix A. (1) Find an othonormal set of eigenvectors, and create a column matrix F con- sisting of these eigenvectors. The eigenvectors and eigenvalues are always real for a symmetric matrix. Note that if there are n distinct eigenvalues then all the eigenvectors will be mutually perpendicular. (2) If there are less than n eigenvectors, then there will be more than one eigen- vector corresponding to a given eigenvalue. You will need to convert these to an orthonormal set using the Gram-Schmidt procedure. If you are work- ing numerically, Maple will usually return a normalized set of eigenvectors. But your should always check. 1
2
(3) If D is a diagonal matrix consisting of the corresponding eigenvalues of A, then by definition of eigenvalues, AF = F D and so F ′AF = D and A is diagonalized.