Phil Lucht Math & Physics Archive
Home / Math and Physics Files / Physics / NMR / Levitt book related

The 2x2 matrix problem

DOCX · 47.5 KB
Open DOCX file

Worked notes by Phil dated 4.5.08 that solve the general 2x2 matrix problem arising in Levitt's NMR text (chemical exchange A/B, Solomon equations). They review diagonalizing a matrix to exponentiate it, then compute the eigenvalues, eigenvectors, X and its inverse, and the time-dependent solution. Special cases include equal exchange rates k=k', relaxation, and dipole-dipole spin-1/2 pairs, with checks against Levitt's pages 629-631.

AI-written summary; may contain errors.

Extracted text (machine-read; may contain errors)
The Levitt 2x2 Matrix Problem PhL 4.5.08 The problem is stated and its solution is given below in a box on page 7. Contents: A. Review of solving the Schrodinger Equation. B. Applying the above to the current problem. C. Details of the Calculation (General Case, answer in a box below) C1. Compute the eigenvalues C2. Compute the eigenvectors and the matrix X C3. Compute X-1. C4. Compute (t) D. Special Cases D1: Special case #1. Exchange between A and B species where k = k' : D2 Special case #2. A and B exchange species k = k', A and B independently relax at rate W D3: Special case #3. System of two spin-1/2 with d-d interaction so W0, W1 and W2 etc. D4: Special case #4: Exchange between A and B species where k k' : Comment: This problem arises in about three places in Levitt, including exchange A B and the Solomon equations Case #3 above. I would like to solve the problem in the most general case and be done with it once and for all. So here I have copied in my notes on Levitt appendix 17.12, and generalized them to a more general 2x2 matrix: L = A. Review of solving the Schrodinger Equation. Now, let's digress to think about the Schrodinger Equation SE. We have a TI and TD version of this equation, namely Hn = Enn H = + i d/dt From the second equation, if H itself is time-independent, we solve to get (t) = e-iHt (0) and this gives us a formal solution of the SE for (t). If it happens that H is a 2x2 matrix, then we are faced with the technical problem of exponentiating a 2x2 matrix. If the matrix H were diagonal, this exponentiation is trivial, but if it is not diagonal, you have a problem on your hands. In what follows, we learn a "trick" for, in effect, doing this exponentiation of a matrix. In the case of a Hamiltonian, we know we can find a 2x2 unitary matrix X such that X-1 H X = Hd = a diagonal matrix We formally know this is possible because H is Hermitian. We also know that one possibility for the matrix X is the matrix whose columns are the eigenvectors of H. That is, X = { 1, 2} in the N=2 case. If the eigenvalues are distinct, this is especially simple. If they are not, we may have to fiddle with GSO to come up with linearly independent eigenvectors, but we can ignore that in our present example. Suppose then that we "go off" and we solve the TI SE in our case of interest, and we find the values of En and of n. Then we will have found an X which brings H to diagonal form. Assume that we have done this in our 2x2 case. We can then conclude without much effort that X-1 e-iHt X = e-iHdt = a diagonal matrix = diag(e-iE1t, e-iE2t) by just sandwiching the X's around each term in the expansion for e-iHt. Now, this leads us to a closed form solution for (t) which is what we are after in our study of the TI SE. We have (t) = e-iHt (0) = X e-iHdt X-1 (0) Since we have solved the TDSE, we know all three matrices shown on the right and we then just multiply things out and we have our solution (t). This method of course applies for any dimension H we want, not just N=2, and surely also for N= as would arise in continuous spectrum situations. B. Applying the above to the current problem. Ln = dnn L = d/dt (t) = eLt (0) Our "TDSE" here lacks the -i we had in the true TDSE, and so this -i is also missing from the exponential formal solution to the problem shown on the right. The TISE looks the same The functions here are all 2D vectors, I have bolded them but Gk letters are hard to see bolded in my font. We know the solution on the right is correct because we can apply d/dt to it, to get the TDSE in the middle, and as before, we assume that L is itself not a function of time. So, our technical problem is "how to compute eLt" so we can write down our solution (t) in a closed and useful form. I have called the eigenvalues dn instead of En. We could make this problem look just like the real SE problem by defining -iH = L or H = iL. However, H so defined would not be Hermitian (much less real symmetric), so we expect that our eigenvalues won't be real (they are complex). So in our little SE analogy, we cannot use "matrix theorems" which relate to Hermitian matrices. Nevertheless, we have some matrix theorems which are useful. In my matrix binder, the first theorem of interest is Theorem 15D in the "2 section" (page 18) which says this: if you have already solved the TI SE problem and know the eigenvectors and eigenvalues, then you can write LX = XLd which merely groups things and says that L { 1, 2} = { d11, d22} which is just a restatement of Ln = dnn. Next we have Theorem 15E following which says the obvious: if it happens that detX 0, then we know we can compute X-1 and then we have X-1LX = Ld. Then we have shown that our matrix of eigenvectors X is a candidate similarity for bringing L to diagonal form. In our current example this will turn out to be the case, and we can then go on to solve our problem as follows: X-1LX = Ld X-1eLt X = eLdt = diag ( ed1t, dd2t) (t) = eLt (0) = X eLdt X-1 (0) which is what Malcolm says in his equation on page 631 where he has already assumed the TE value for (0) [ just above equation ]. He uses D instead of Ld for the diagonalized matrix, and V = eLt. So now at least we know what Malcolm is doing here. C. Details of the Calculation. So now we want to solve Ln = dnn for the matrix L shown page 630. We can write our TI SE as (L - dn1)n = 0 C1. Compute the eigenvalues L = We know that if det(L - dn1) 0, we can invert this equation and we get n = 0 meaning there is no non-zero solution to the problem. We are looking for interesting solutions, so we require that det(L - dn1) = 0, which is the secular or characteristic equation I suppose. [ I am not powering up my ODE module at this time because that will cost several hours of swap time. ] Setting det(L - dn1) = 0 tells us what the eigenvalues are for our problem. We get = 0 Here are some algebra steps following the above: (-d)(-d) - = 0 d2 - (+)d + (-) = 0 A = 1 B = -(+) C = - B24AC = (+)2 - 4(-) = (-)2 + 4 = 4 * { [(-)/2]2 + } We then find these solutions for d d = (+)/2 So maybe define some new symbols here just to make the algebra easier: = (+)/2 = (-)/2 r = Then our solution eigenvalues are: d = r C2. Compute the eigenvectors and the matrix X L = Now, how to we find the eigenvectors? In general, given equation Ax=0, how to you find the eigenvectors which span the 2D nullspace of A? It's easy: Imagine that = (u, v) column vector. Then we have = 0 => (-d)u + v = 0 and u + (-d)v = 0 The second equation says u = (d-)v . So set v = arbitrarily and get u =(d-). So our eigenvectors are therefore = = The second form shown above follows because d - = r - = (+)/2 r - = (-)/2 r = r So, assuming my result is correct, I get the matrix X whose columns are eigenvectors X = = = (+,-) where = r C3. Compute X-1. I can look up the inverse of this on my "summary of matrix facts" page X = => X-1 = /detX In our case detX = (+r) - (-r) = 2r. We then get X-1 = / 2r = / 2r C4. Compute (t) We know that the solution is this: (t) = X eLdt X-1 (0) where eLdt So do this one piece at a time. First, we abbreviate the vector (0) as (x,y). Then we have: X-1 (0) = / 2r = (1/2r) = (1/2r) where we have defined q and s as shown. We then find that: eLdt X-1 (0) = (1/2r) The final step then is this: (t) = X (1/2r) = (1/2r) = (1/2r) Writing this out in detail gives top = { [ (+r)e+- (-r)e-] x + (+r)(r-) [ e+ - e-] y } / 2r bot = { [ e+ - e-] x + [ (r-) e+ + (r+) e- ] y } / 2r where of course e stands for exp(dt) where d = r . Suppose we rewrite everything putting first: top = { [ (+r)e+- (-r)e-] x - (+r)(-r) [ e+ - e-] y } / 2r bot = { [ e+ - e-] x - [ (-r) e+ - (+r) e- ] y } / 2r Then let's define ( well, I added this above, but OK) = r so get top = { [ +ed+t- -ed-t] x - +- [ed+t - ed-t] y } / 2r bot = { [ed+t - ed-t] x - [-ed+t - + ed-t ] y } / 2r where et stands for exp(dt). Maybe more symmetrical to then write this as top = { + [ +ed+t - -ed-t] x - (+- /) [ed+t - ed-t] y } / 2r bot = { - [-ed+t - + ed-t ] y + [ed+t - ed-t] x } / 2r So here is our answer to this problem: Summary of The General Problem and its Solution. Our equation of interest is: d/dt = = L We know that a formal solution may be written as = exp(t) because if we differentiate we get d/dt = exp(t) = The explicit solution to the problem is this: = (1/2r) = where = r d = r = (+)/2 = (-)/2 r = Here then is a summary of the problem and its solution: Given the 2x2 matrix problem, d(t)/dt = L (t) where L = the solution to the problem is, (t) = M (0) where M = // formal solution: (t) = eLt (0) where A = (1/2r) [ +ed+t - -ed-t] B = - (1/2r) (+-/) [ed+t - ed-t] C = (1/2r) [ed+t - ed-t] D = - (1/2r) [-ed+t - + ed-t ] with // eigenvector matrix = X = = (+,-) = r d = r // d are eigenvalues of L = d and where = (+)/2 = (-)/2 r = // solution singular if r = 0, (-)2 + 4 = 0 D. SPECIAL CASES D1: Special case #1. Exchange between A and B species where k = k' : Suppose L = = as on Levitt page 629. Then = -k-+i0A = k = k = -k-+i0B = (+)/2 = - k - + i av where av = (0A + 0B)/2 = (-)/2 = i (0A - 0B)/2 = i /2 where = (0A - 0B) r = = i = iR = r = i /2 iR d = r = - k - + i av iR // agrees with Levitt when iav added Then we get top = { + [ +ed+t - -ed-t] x - (+- /k) [ed+t - ed-t] y } / 2iR bot = { - [-ed+t - + ed-t ] y + k [ed+t - ed-t] x } / 2iR We can do algebra to show that +- = [ R2 - (/2)2] = -k2 so rewrite the above as top = { + [ +ed+t - -ed-t] x + k [ed+t - ed-t] y } / 2iR bot = { - [-ed+t - + ed-t ] y + k [ed+t - ed-t] x } / 2iR Now suppose we set x = y = (1/4i) as Levitt does on page 631, which assumes a TE start. We can then replace (1/4i)(1/2iR) = - (1/8R) and then top = - { + [ + ed+t - - ed-t] + k [ed+t - ed-t] } / 8R bot = - {- [ -ed+t - + ed-t ] + k [ed+t - ed-t] } / 8R Our next instruction from Levitt is to multiply each of these by 2i and then add them together, in which case we get (2i)(top + bot) = - 2i /8R * { [ + ed+t - - ed-t] + k [ed+t - ed-t] - [-ed+t - + ed-t ] + k [ed+t - ed-t] } The bracket becomes { (+ - -) ed+t + (+ - -) ed-t + 2k (ed+t - ed-t) } = { (+ - -) (ed+t + ed-t) + 2k (ed+t - ed-t) } But now (+ - -) =[ i /2 + iR] - [ i /2 - iR] = 2iR so we have above (2i)(top + bot) = - i/4R * { 2iR (ed+t + ed-t) + 2k (ed+t - ed-t) } = -i /2R { iR (ed+t + ed-t) + k (ed+t - ed-t) } Now group by expo powers to get = -i /2R { (iR+k) ed+t + (iR-k) e ed-t } Now put the R inside and the 2 out front to get = (-i/2) { (i + k/R) ed+t + (i - k/R) ed-t } Now consider that d = r = - k - + i av iR If we use Levitt definitions on page 630 bottom we have d+ = d2 d- = d1 Our result is then: (-i/2) { (i + k/R) ed2t + (i - k/R) ed1t } But now push the -i inside to get = (1/2) {(1 - ik/R) ed2t + (1 + ik/R) ed1t} and finally reorder the two terms = (1/2) {+ (1 + ik/R) ed1t + (1 -ik/R) ed2t } and we have exactly replicated Levitt bottom of 631, so this acts as at least a partial check on our algebra. Also in this application we have X = with = i /2 iR and = k so the X matrix is given by: X = = = (1/2) so I stick by my guns that Levitt has a sign error on here, but it does not matter in the end results. Let's do this again using our general formula: from above we had all these evaluations: = -k-+i0A = k = k = -k-+i0B = (+)/2 = - k - + i av where av = (0A + 0B)/2 = (-)/2 = i (0A - 0B)/2 = i /2 where = (0A - 0B) r = = i = iR R = = r = i /2 iR d = r = - k - + i av iR // agrees with Levitt when iav added +- = [ R2 - (/2)2] = -k2 = k The general formulas are these, A = (1/2r) [ +ed+t - -ed-t] B = - (1/2r) (+- /) [ed+t - ed-t] C = (1/2r) [ed+t - ed-t] D = - (1/2r) [-ed+t - + ed-t ] hence we get A = (1/2iR) [(i /2 + iR) ed+t - (i /2 - iR) ed-t] B = (k/2iR) [ed+t - ed-t] C = (k/2iR) [ed+t - ed-t] D = - (1/2iR) [(i /2 - iR) ed+t - (i /2 + iR) ed-t ] where R = and d = - k - + i av iR. Notice that B = C. D2 Special case #2. A and B exchange species k = k', A and B independently relax at rate W. Suppose L = = as on Levitt page 632. We get = (+)/2 = -k - 2W = (-)/2 = 0 r = = = k = r = k d = r = -k - 2W k // agreeing bottom page 632. Our general solution is this = (1/2r) = and we then have A = (1/2r) [ +ed+t - -ed-t] = (1/2k) [ k ed+t + k ed-t] = (1/2) [ed+t + ed-t ] B = (1/2r) (-+- /) [ed+t - ed-t] = (1/2k)( k2/k) [ed+t - ed-t] = (1/2) [ed+t - ed-t] C = (1/2r) [ed+t - ed-t] = (1/2k)k[ed+t - ed-t] = (1/2) [ed+t - ed-t] D = - (1/2r) [-ed+t - + ed-t ] = - (1/2k)[ -k ed+t - k ed-t] = (1/2) [ed+t + ed-t ] Now consider ed+t = e-2Wt and ed-t = e-2Wt e-2kt (1/2) [ed+t + ed-t ] = e-2Wt( 1+ e-2kt)/2 = e-2Wte-kt ( ekt + e-kt)/2 = e-(k+2W)t cosh(kt) (1/2) [ed+t - ed-t] = e-(k+2W)t sinh(kt) So we get A = D = e-(k+2W)t cosh(kt) = adiag = aAA = aBB B = C = e-(k+2W)t sinh(kt) = across = aAB = aBA and our solution is then = = So this is the solution of the problem on page 632-633 Levitt, but the confusion is that Levitt never states that it is the conclusion! He then uses this in Chapter 15. In my meta meta notes I quote this as = // "longitudinal mag exchange" where I was just guessing that this was the result, but now I know it is. Note on this case: It is clear that the results for x(t) and y(t) 0 as t . So we might want our starting equation to look like this: d(t)/dt = L [(t) - ()] where L = so that when things stop changing at t = , both sides will be zero. We can cast this into our formalism by defining '(t) = (t) - () to get d'(t)/dt = L '(t) then our solution will be '(t) = '(0) from which we then get the solution to this slightly altered problem, (t) = [ (0) - ()] + p() D3: Special case #3. System of two spin-1/2 with W0, W1 and W2 etc. In case #2 we had L = = . In this new case we are on page 635 and we have L = = The solution is the same as before where we make these replacements: k+2W Rauto k Rcross This, the solution of this case #3 problem is the following = where A = D = e-tRauto cosh(Rcrosst) = adiag = a11 = a22 B = C = e- tRauto sinh(Rcrosst) = across = a12 = a21 and this result is used on page 544 in the NOESY theory section. Attempt at computing "the Knight shift" : D4: Special case #4: Exchange between A and B species where k k' : According to my scribble on page 629, we have L = = = -k-+i0A = k' = k = -k'-+i0B let (k'+k)/2 = kav and (k'-k) = k = (+)/2 = - kav - + i av where av = (0A + 0B)/2 = (-)/2 = i (0A - 0B)/2 -(k-k')/2 =( i /2 + k/2) = ( i + k)/2, = (0A - 0B) Define an altered difference frequency i ' = i + k or ' = - ik. Then we have = i '/2 Then r = = r = = = i = iR R = = r = i '/2 iR d = r = - kav - + i av iR The solution matrix M to our problem has these matrix elements: A = (1/2r) [ +ed+t - -ed-t] B = - (1/2r) (+- /) [ed+t - ed-t] C = (1/2r) [ed+t - ed-t] D = - (1/2r) [-ed+t - + ed-t ] In this case we have +- = - kk' and r - iR and =k and r = iR so rewrite as A = [ +ed+t - -ed-t]/2iR B = k' [ed+t - ed-t] /2iR C = k [ed+t - ed-t] /2iR D = - [-ed+t - + ed-t ] /2iR where d = - kav - + i av iR = r = i '/2 iR R = Notice that B and C differ only in the prime on k. Now apply this as was done in Levitt to x = y = (1/4i) and we find that top = (A + B)/4i bot = (C + D)/4i So compute A+B = [ +ed+t - -ed-t]/2iR + k' [ed+t - ed-t] /2iR = { (+ + k') ed+t - (- + k') ed-t }/2iR D+C = -[ -ed+t - +ed-t]/2iR + k [ed+t - ed-t] /2iR = { (- - + k) ed+t - (-+ + k) ed-t }/2iR Now we want to add these two items and multiply by 2i/4i = (1/2), as done on page 631 result = 2i [A+B+ D +C ]/4i = [A+B+ D +C ]/2 = {(+ + k') ed+t - (- + k') ed-t + (- - + k) ed+t - (-+ + k) ed-t }/4iR = { (+ + k') + (- - + k)} ed+t/R - { (- + k') + (-+ + k) } ed-t/4iR We can evaluate the brackets using +- - = 2iR to find = 2[iR+kav] ed+t/4iR - 2[-iR+kav] ed-t/4iR = [iR+kav] ed+t/2iR + [+iR-kav] ed-t/2iR = [1 + kav/iR] ed+t/2 + [ 1 - kav/iR] ed-t/2 = (1/2) (1 -ikav/R) ed+t + (1/2) (1 + ikav/R) ed-t // agrees with bottom page 631 So here is the result for our k k' case for the final NMR signal: s(t) = (1/2) (1 + ikav/R) ed-t + (1/2) (1 - ikav/R) ed+t where d = - kav - + i av iR kav = (k'+k)/2 R = ' = - ik (k'-k) = k This correctly reduces to the k=k' result. The spectrum, however, is fairly complicated because not R is complex all the time. We might look at some limits. Comment: What happens here in large k limit? As shown below we get R ikav so the above formula then becomes: s(t) = (1/2) (1 +1) ed-t + (1/2) (1 -1) ed+t = ed-t and only the d- peak survives (in this limit). The frequency will be shifted by an amount relating to the real part of R which we compute in more detail below. So this says that even if we start at time 0 with equal amounts of both species (ie, we start not in equilibrium), we get our Knight shift effect at large k. Let's back up now and apply this to a different (0) vector, namely ( x0, y0) = ( A(0), B(0)) = ( [A]eq, [B]eq) = [A]eq( 1, K) K = k/k' k = Kk' Let's forget the normalization and just call it (1,K). Then we are interested in this solution to our problem: = and we then want to add the coherences from each, so the final result is s(t) = A + BK + C + DK // ignore constants overall So modify results above to get A+BK = [ +ed+t - -ed-t]/2iR + K k' [ed+t - ed-t] /2iR = { (+ + K k') ed+t - (- +K k') ed-t }/2iR DK+C = -K[ -ed+t - +ed-t]/2iR + k [ed+t - ed-t] /2iR = { (- K- + k) ed+t - (-K+ + k) ed-t }/2iR Then add these signals to get s(t) = { [(+ + K k') + (- K- + k)] ed+t - [(- +K k') + (-K+ + k) ] ed-t} /2iR Now replace k = Kk' to get s(t) = { [(+ + k) + (- K- + k)] ed+t - [(- +k) + (-K+ + k) ] ed-t} /2iR where, once again, we have = i '/2 iR d = - kav - + i av iR R = ' = - ik (k'-k) = k Now, the location of the frequencies is controlled by the real part of R, and we are always going to have our two peak frequencies being centered around av. The only way we can "show a Knight shift" is to show that, as k and k' get large with K constant, one of these peaks goes away, and then we have just the other peak, and it is shifted, and that shift is the Knight shift. The algebra to show this is just unbelievably messy in my notation. We want to compare these tw peak amplitudes: ed+tpeak: [(+ + k) + (- K- + k)] amp+ ed-t peak: - [(- +k) + (-K+ + k) ] amp- It is not obvious to me what happens in the large k limit because dependence is so complex. We can write R = and we can take the large k limit of this to get R = i kav. Then we have = i '/2 iR = i [ - ik]/2 iR = i + k/2 iR = i + k/2 i[i kav] = i + k/2 ∓ kav Then we can write amp+ = [(+ + k) + (- K- + k)] = + - K - + 2k = i + k/2 - kav - K(i + k/2 + kav) +2k = i(1-K) + (k/2 - kav ) - K(k/2 + kav) + 2k Now we go off to show that k/2 - kav = (k'-k)/2 - (k+k')/2 = -k k/2 + kav = (k'-k)/2 + (k+k')/2 = k' So we then have amp+ = i(1-K) - k -Kk' + 2k = i(1-K) - k -k + 2k = i(1-K) Interesting, we get exact cancellation of k and k' terms so as k and k' get large, this term stays constant. Now look at the other term: - amp- = [(- +k) + (-K+ + k) ] = - - K+ + 2k = i + k/2 + kav - K (i + k/2 - kav) + 2k = i(1-K) + (k/2 + kav) -K(k/2 - kav) + 2k = i(1-K) + k' -K(-k) + 2k = i(1-K) + k' +Kk + 2k = i(1-K) + k' +Kk + 2k = i(1-K) + k(K+2) + k' = i(1-K) + (K+2 + 1/K) k Now as k, this term becomes very large and swamps the first term. Of course we have to divide each of our amplitudes by 2iR = 2i[ikav] = -2kav so then we get K = k/k' amp+ (norm) = i(1-K)/(-2kav) 0 amp-(norm) = [i(1-K) + (K+2 + 1/K) k] /(+2kav) (1/2) (K+2 + 1/K) (k/kav) But (k/kav) = 2/(1+K) so we get amp-(norm) (1/2) (K+2 + 1/K) 2/(1+K) = (K+1)/K We find for the large k limit that amp+ (norm) 0 amp-(norm) (K+1)/K If I add in the 2i/4i factor that I did last time, that will introduce an extra factor 1/2 and we get amp+ (norm) 0 amp-(norm) (K+1)/2K // which goes to 1 in the limit K 1 which says that only the - peak survives this limit, as we had hoped. Now finally let's look at the frequency of this peak in the large k limit: d = - kav - + i av iR But now we need R to have a real part which will determine the "shift", so R = R = i = i kav i kav ( 1 + ik/4kav2) We then get d = - kav - + i av iR = - kav - + i av ∓ kav( 1 + ik/4kav2) = (- kav - ∓ kav ) + i (av∓ k/4kav) We really care only about the surviving d- peak for which we get d- = - + i (av+ k/4kav) This suggests that the surviving peak appears at this frequency the surviving - peak is here: av+ k/4kav // large k, k' limit Also, we see that this peak is "narrow" because it has only its natural width. The other peak which has no height has the width + 2kav which is infinitely wide. So, I have an estimate for the "Knight shift" in a system of A,B species with TE defined by K = k/k': shift = k/4kav If we take the limit k = k', then k = 0 and we get zero shift in the large k limit, so that is good. My amplitudes above suggest that one amplitude only survives in this limit still, and that is the final narrow peak. Let's now look at the small k limit of this same problem. We go back to: s(t) = { [(+ + k) + (- K- + k)] ed+t - [(- +k) + (-K+ + k) ] ed-t} /2iR where, once again, we have = i '/2 iR d = - kav - + i av iR R = ' = - ik (k'-k) = k In the small k limit, we can crudely say that R = (/2) and then = i '/2 iR = i /2 i(/2) = i /2 [ 1 1] + = i - = 0 Then we find: (set k = 0) s(t) = { [(+ + k) + (- K- + k)] ed+t - [(- +k) + (-K+ + k) ] ed-t} /2iR = { i ed+t + K i ed-t }/2iR = i { ed+t + K ed-t } / 2i(/2) = (1/2i) { ed+t + K ed-t } and here we see our desired effect that there are two peaks with unequal amplitude since k k'