Computing Eigenvectors of Matrix H with Wolfram

In summary: Ht} &= \cos(Ht)-i\sin(Ht) = \cos(t)-i\sin(t) \\&+ \begin{bmatrix} 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 &
  • #1
bowlbase
146
2

Homework Statement


Compute, using wolfram is an option, eitH where H is:

##H = \begin{pmatrix}
0 & -1 & 0 & 0 & 0& 0\\
-1 & 0 & -1 & 0 & 0& 0\\
0 & -1 & 0 & -1 & 0& 0\\
0 & 0 & -1 & 0 & -1& 0\\
0 & 0 & 0 & -1 & 0& -1\\
0 & 0 & 0 & 0 & -1& 0\\
\end{pmatrix}##

Homework Equations





The Attempt at a Solution



I tried putting this into wolfram but I couldn't get it to work. So, I then tried to get the eigenvector matrix and it's transpose to do as suggested from this page. But, when I did S-1HS I got another filthy matrix that I couldn't extract any information from.

All of the following steps from this problem seem easy enough, I just can't figure this out.

Thanks for any help.
 
Physics news on Phys.org
  • #2
If you get the eigenvectors to H and do S-1HS the resulting matrix should be diagonal and consist of its eigenvalues. So in fact all you have to do to get eitH after that is to take the exponential of each of the eigenvalues, and then multiply by S again to rotate it back to the original basis.
 
  • #3
Where did you get this problem? Is it math or physics related?

Also your link appears to be broken.
 
  • #4
The link lacks a : .Just remove the http// part!
Anyway
A good point you can use, is that the trace of a matrix is independent of the basis you're using to write the matrix in. The trace of your matrix is zero, and it should be zero in any other basis too, including the one that makes the matrix diagonal. And because we know that the diagonal elements are the eigenvalues and their order doesn't matter, we can say that the diagonal form of H should be [itex] \left( \begin{array} \\ &a \ \ &0 \ \ &0 \ \ &0 \ \ &0 \ \ &0 \\&0 &-a &0 &0 &0 &0 \\&0 &0 &b &0 &0 &0\\&0 &0 &0 \ &-b &0 &0\\&0 &0 &0 &0 &c &0\\&0 &0 &0 &0 &0 &-c\end{array} \right) [/itex].
So you should only find three eigenvalues with distinct absolute values and then you can write the diagonal form and H and then you can simply exponentiate it.
 
  • #5
This is for a physics problem but I suppose I could have put this part in math as well. It is Hamiltonian for an electron on a six site chain.

I've gotten eigenvalues from using online calculators, actually doing all of this by hand seems like a huge time sink. I don't get exact values from calculators and I think that maybe that is why I wasn't getting a diagonal matrix before (all of the values were pretty close to zero).

This is what I have then:

The eigenvector matrix:
##S= \begin{pmatrix}
-0.232 & 0.232 & 0.521 & 0.521 & -0.418 & 0.418\\
0.418 & 0.418 & -0.232 & 0.232 & 0.521 & 0.521\\
-0.521 & 0.521 & -0.418 & -0.418 & -0.232 & 0.232\\
0.521 & 0.521 & 0.418 & -0.418 & -0.232 & -0.232\\
-0.418 & 0.418 & 0.232 & 0.232 & 0.521 & -0.522\\
0.232 & 0.232 & -0.521 & 0.521 & -0.418 & -0.418\\
\end{pmatrix} ##

Multiplied against:

##H_{diagonal} = \begin{pmatrix}
e^{-i1.802t} & 0 & 0 & 0 & 0& 0\\
0 & e^{i1.802t} & 0 & 0 & 0& 0\\
0 & 0 & e^{-i0.445t} & 0 & 0& 0\\
0 & 0 & 0 & e^{i0.445t} & 0& 0\\
0 & 0 & 0 & 0 & e^{-i1.247t}& 0\\
0 & 0 & 0 & 0 & 0& e^{i1.247t}\\
\end{pmatrix}##

then multipled against the inverse of S

##S^{-1}= \begin{pmatrix}
-0.232 & 0.418 & -0.521 & 0.521 & -0.418 & 0.232\\
0.232 & 0.418 & 0.521 & 0.521 & 0.418 & 0.232\\
0.521 & -0.232 & -0.418 & 0.418 & 0.232 & -0.521\\
0.521 & 0.232 & -0.418 & -0.418 & 0.232 & 0.521\\
-0.418 & 0.521 & -0.232 & -0.232 & 0.521 & -0.418\\
0.418 & 0.521 & 0.232 & -0.232 & -0.521 & -0.418\\
\end{pmatrix}##

And, after all that, I'm done?
 
  • #6
You should be done, if that was done correctly, yes. haha
 
  • #7
If you are trying to get an "exact" result rather than doing it numerically, the fact that H2 is the diagonal matrix (1,2,2,2,2,1) should simplify things quite a bit.

You could just write it out as an infinite series, group the odd and even powers together, and then sum the two series of diagonal matrices as in the first example in your link.
 
  • #8
So, then I would just need to sum ##\frac{(1t)^n}{n!}## and ##\frac{(2t)^n}{n!}## from 0 to infinity. giving me a diagonal matrix of just
I incorrectly wrote the exponential before, it should have been ##e^{-iHt}##. Forgot the negative.

##H_{diagonal} = \begin{pmatrix}
e^{-it} & 0 & 0 & 0 & 0& 0\\
0 & e^{-i2t} & 0 & 0 & 0& 0\\
0 & 0 & e^{-i2t} & 0 & 0& 0\\
0 & 0 & 0 & e^{-i2t} & 0& 0\\
0 & 0 & 0 & 0 & e^{-i2t}& 0\\
0 & 0 & 0 & 0 & 0& e^{-it}\\
\end{pmatrix}##

If that's the case the H2 property is something worth knowing. I don't recall this from linear algebra (I don't recall a lot, actually).
 
  • #9
bowlbase said:
So, then I would just need to sum ##\frac{(1t)^n}{n!}## and ##\frac{(2t)^n}{n!}## from 0 to infinity.

That's the right idea but not quite the right answer. Let ##D## be the diagonal matrix ##\{1,\sqrt{2},\dots, 1\}## so ##D^2 = H^2##.

##e^{-iHt} = \cos Ht - i\sin Ht##.

For the real part, ##\cos Ht = 1 - \frac{H^2t^2}{2!} + \dots = 1 - \frac{D^2t^2}{2!} + \dots## so the sums are cosine functions of the diagonals of ##D##.

For the imaginary part, ##\sin Ht = Ht - \frac{H^3t^3}{3!} + \dots = H\left(t - \frac{D^2t^3}{3!} + \dots\right)##.
To make that into a sine function of D, you have tweak it into
##HD^{-1}\left(Dt - \frac{D^3t^3}{3!} + \dots\right)##.
 
  • #10
bowlbase said:
If that's the case the H2 property is something worth knowing. I don't recall this from linear algebra (I don't recall a lot, actually).

I don't think that property has a "special" name. I spotted it from the chess-board pattern of zeros and nonzeros in ##H##. That means there will be a pattern of zero terms in ##H^2##, whatever value the non-zero terms in ##H## have.
 
  • #11
AlephZero said:
If you are trying to get an "exact" result rather than doing it numerically, the fact that H2 is the diagonal matrix (1,2,2,2,2,1) should simplify things quite a bit.
Mathematica yields a different result for H2:
$$H^2 = \begin{bmatrix}
1 & 0 & 1 & 0 & 0 & 0 \\
0 & 2 & 0 & 1 & 0 & 0 \\
1 & 0 & 2 & 0 & 1 & 0 \\
0 & 1 & 0 & 2 & 0 & 1 \\
0 & 0 & 1 & 0 & 2 & 0 \\
0 & 0 & 0 & 1 & 0 & 1
\end{bmatrix}$$
 

1. How do I compute eigenvectors of a matrix using Wolfram?

To compute eigenvectors of a matrix using Wolfram, you can use the Eigenvectors function. This function takes in a matrix as its input and returns a list of eigenvectors as its output.

2. Can I compute eigenvectors of a non-square matrix with Wolfram?

No, Wolfram can only compute eigenvectors for square matrices. If you try to use the Eigenvectors function on a non-square matrix, you will receive an error message.

3. Can I specify the number of eigenvectors I want Wolfram to compute?

Yes, the Eigenvectors function has an optional second argument that allows you to specify the number of eigenvectors you want to compute. By default, it will compute all the eigenvectors of a matrix.

4. How does Wolfram handle complex eigenvalues and eigenvectors?

Wolfram can handle complex eigenvalues and eigenvectors. It will return complex numbers in its output if the matrix has complex eigenvalues. You can use the Re and Im functions to get the real and imaginary parts of the eigenvectors, if needed.

5. Can I compute eigenvectors of a large matrix with Wolfram?

Yes, Wolfram can handle large matrices when computing eigenvectors. However, the computation time may increase as the size of the matrix increases. It is recommended to use the Eigensystem function instead of Eigenvectors for larger matrices, as it can be more efficient.

Similar threads

  • Advanced Physics Homework Help
Replies
13
Views
1K
  • Advanced Physics Homework Help
Replies
8
Views
735
  • Advanced Physics Homework Help
Replies
14
Views
1K
  • Advanced Physics Homework Help
Replies
9
Views
873
Replies
3
Views
857
  • Advanced Physics Homework Help
Replies
3
Views
1K
  • Advanced Physics Homework Help
Replies
1
Views
712
  • Advanced Physics Homework Help
Replies
1
Views
921
  • Advanced Physics Homework Help
Replies
3
Views
1K
Replies
4
Views
1K
Back
Top