Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Let’s reinterpret eigenvectors in terms of our usage.

In previous chapters we saw how to:

  • represent a solution as a vector of unknows.

  • represent a differential operator (e.g. a PDE) as:

    • a matrix (for linear operators)

    • a vector function (nonlinear operators) which could be solved by root finding, which involves linear operators.

Another way to think about this is that we represented continuous functions in a finite basis (weights / coordinates collected into our vector of unkowns). If we used infinite basis we could represent the full function, but then our vector would be infinite too.

Turn this around, and consider that eigenfunctions (the function approximated by the eigenvectors) are special functions which are not changed by the operator / differential equation.

You already know all about eigenfunctions!

  • Consider swinging on a swing - your frequency is independant of the amplitude

  • Consider resonance: If you pump your legs at the same frequency, you will go higher!

In our applications with PDEs, time stepping was an operator that transformed yty^t to yt+1y^{t+1}. The eigenfunctions of that operator only change in amplitude, not shape!

Example: Coupled oscillators

mx¨1=−kx1+k[x2−x1]mx¨2=−k[x2−x1]−kx2\begin{align} m \ddot{x}_1 &=-k x_1 +k [x_2-x_1]\\ m \ddot{x}_2 &= -k[x_2-x_1] - k x_2 \end{align}

or in vector form with x⃗=[x1x2]\vec{x} = \begin{bmatrix} x_1 \\ x_2 \end{bmatrix}

x⃗¨=−km[2−1−12]x⃗\ddot{\vec{x}} = -\frac{k}{m} \begin{bmatrix} 2 & -1 \\ -1 & 2 \end{bmatrix} \vec{x}

which is just an IVP which we know how to solve!

Loading...

Note the ineresting behaviour of x1=x2x_1 = x_2 and x1=−x2x_1 = -x_2!

So what is happenning?

Eigenvector form

Say the solution is of the form x=e−iωtx = e^{-i\omega t}:

x⃗=e−iωtx⃗¨=−ω2e−iωt=−ω2x⃗\begin{align} \vec{x} &= e^{-i \omega t} \\ \ddot{\vec{x}} &= -\omega^2 e^{-i \omega t} = -\omega^2 \vec{x} \end{align}

and our equation becomes:

−ω2I x⃗=−km[2−1−12]x⃗[[2−1−12]−mω2kI]x⃗=0-\omega^2 \rm{I} \ \vec{x} = -\frac{k}{m} \begin{bmatrix} 2 & -1 \\ -1 & 2 \end{bmatrix} \vec{x} \\ \bigg[\begin{bmatrix} 2 & -1 \\ -1 & 2 \end{bmatrix} -\frac{m \omega^2}{k} \rm{I}\bigg] \vec{x} = 0

The solution to this equation must be:

  • Trivial, x⃗=0⃗\vec{x} = \vec{0}

  • Non-zero, but then the matrix must be singular!

For a matrix A−λIA - \lambda \rm{I} to be singular, det(A−λI)=0det(A-\lambda \rm{I}) = 0. The scalar values λ\lambda are the eigenvalues of AA, and the corresponding x⃗\vec{x} is the eigenvector.

In our example, the eigenvalues of [2−1−12]\begin{bmatrix} 2 & -1 \\ -1 & 2 \end{bmatrix} are mω2k\frac{m \omega^2}{k}. Note that we have grouped the unknowns so we really find a general solution!

The determinant is convenient because it is simply a polynomial, and we know how to find roots of a polynomial!

Determinant: lambda**2 - 4*lambda + 3
Coefficients of the polynomial: [1, -4, 3]
Roots (eigenvalues) of the characteristic polynomial: [3. 1.]

Let’s check the Eigenvalues, then use them to find the corresponding vectors!

0.0
[1. 1.]
0.0
[ 1. -1.]

The eigenvalues plugged back into x=e−iωtx = e^{-i\omega t} implies the two harmonics are:

x=e−ikmtx=e−i3kmt\begin{align} x &= e^{-i\sqrt{\frac{k}{m}} t} \\ x &= e^{-i\sqrt{3 \frac{k}{m}} t} \end{align}

For the first harmonic: mω2k=1\frac{m \omega^2}{k} = 1:

[[2−1−12]−I]x⃗=0[1−1−11]x⃗=0x1=x2\begin{align} \bigg[\begin{bmatrix} 2 & -1 \\ -1 & 2 \end{bmatrix} - \rm{I}\bigg] \vec{x} &= 0 \\ \begin{bmatrix} 1 & -1 \\ -1 & 1 \end{bmatrix} \vec{x} &= 0 \\ x_1 &= x_2 \end{align}

Similarly the second harmonic, mω2k=3\frac{m \omega^2}{k} = 3 :

[−1−1−1−1]x⃗=0x1=−x2\begin{align} \begin{bmatrix} -1 & -1 \\ -1 & -1 \end{bmatrix} \vec{x} &= 0 \\ x_1 &= -x_2 \end{align}

which is what we observed above.

This is all fine and good, but there must be a better way! For small matricies (n≤4n \le 4) there are analytical solutions for the roots which we can use.

You may recal that the numerical roots function finds the roots as the eigenvalues of a companion matrix so it obviously isn’t the correct approach but does reveal the euqivilance between polynomial roots and eigenvalues!