Docsity

Maple Tutorial 4 on Mathematical Biophysics | MAP 5485, Assignments of Mathematics

Toggle sidebar
bg1
MAP 5485, Maple Tutorial 4
First open the worksheet in Maple tutorial 4. Use Maple to compute the follow-
ing.
(1) Let p1, . . . , p7be 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 −p1for j= 1,· ·· ,6. Find the Gram matrix (vi·vj).
(3) Let Gbe the Gram matrix of the vectors v1, v2, v3. Diagonalize G(see
below) by finding orthogonal matrix Fand diagonal matrix Dsuch that
F GF 0=D.
(4) Note that the eigenvalues of G, the entries on the diagonal of D, are positive.
Let √Dbe a matrix whose entries are the square roots of the entries in D.
From the above we see that if M=√DF then M0M=G. Find Mand
check that M0M=G.
(5) Let V= (v1, v2, v3) be the matrix with columns v1, v2and v3. Since G
is the gram matrix of the vectors v1, v2, v3, we have that V0V=G. We
have also shown that M0M=Gso that Gis 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 Rsuch 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
211
121
112
.
Note that if v1and v2are eigenvectors corresponding to the same eigenvalue
λthen your can find an orthonormal set of eigenvectors v0
1and v0
2by setting
v0
1=v1
|v1|v0
2=v2−(v0
1·v2)v0
1
|v2−(v0
1·v2)v0
1|
Diagonalization of symmetric matrices
To diagonalize an n×nsymmetric matrix A.
(1) Find an othonormal set of eigenvectors, and create a column matrix Fcon-
sisting of these eigenvectors. The eigenvectors and eigenvalues are always
real for a symmetric matrix. Note that if there are ndistinct eigenvalues
then all the eigenvectors will be mutually perpendicular.
(2) If there are less than neigenvectors, 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
pf2

Partial preview of the text

Download Maple Tutorial 4 on Mathematical Biophysics | MAP 5485 and more Assignments Mathematics in PDF only on Docsity!

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.