Finding eigenvectors and eigenvalues
A non-zero vector that satisfies
Where it comes from
This is a definition (databook maths p17 gives ). Geometrically, an eigenvector picks out a direction that does not turn. Along that direction only stretches or squeezes, by the factor . A negative also reverses the vector. is excluded because it would satisfy the equation for every .
The method below works for any matrix. It is demonstrated on the running example
Step 1: Find the eigenvalues
- Write , so that the equation becomes .
- Rearrange: , that is, . This is equation (1).
- maps the non-zero vector to . That is only possible if the mapping has zero determinant, i.e. no inverse and a zero scale factor.
The roots are the eigenvalues of .
Show derivation
For a given , is a homogeneous linear system.
By the databook (maths p17), has a non-trivial solution if and only if .
To see why: if , then exists and . That is not allowed for an eigenvector.
So a non-zero exists exactly when .
Expanding the determinant gives a polynomial of order in , the characteristic equation:
Show derivation
Each term of is a product of entries, one from each row and each column. appears only on the diagonal.
So the highest power comes only from the product of the diagonal entries, . Its leading term is . Every other term contains at most diagonal entries.
Hence the expansion is a polynomial of degree exactly , with .
A polynomial of degree has exactly complex roots, counted with multiplicity. This is the fundamental theorem of algebra, quoted without proof from the complex-numbers part of the course.
Example Eigenvalues of the running example
So and : the eigenvalues of .
Explanation Why can λ be zero when x cannot?
just means for some non-zero , i.e. itself is singular (). That is a perfectly good eigenvalue; Appendix IIa below has one.
is banned because holds for every , so it would make every number an “eigenvalue”.
For a matrix , the characteristic equation is always , a quadratic.
- Eigenvalues are the roots of a degree- polynomial: of them, possibly complex or repeated.
- is allowed (it means is singular). is never an eigenvector.
- : .
Step 2: Determine the eigenvectors
For each eigenvalue (), solve
Because is an eigenvalue, a non-zero solution exists. Finding it can be tricky and time consuming.
- The equations are not independent: by construction. So one equation is a combination of the other , and it can be dropped. It usually does not matter which one; the lecturer drops the last.
- That leaves equations in unknowns. This is fine, because the magnitude of an eigenvector is arbitrary. Set any non-zero component to 1 (or any convenient size); the lecturer uses .
- We do not know in advance which components are zero. Setting a zero component to 1 fails (see the Appendix IIa example below).
These are equations in unknowns; solve them for the remaining components of .
Show derivation
Keep rows of . Row reads
Example Eigenvector for λ₁ = 2
The two rows give and : the same equation.
Keep the first row, , so . This gives , :
Example Eigenvector for λ₂ = ½ (Appendix I)
Throw away the last equation and set (assuming ):
Solving from scratch is often just as easy here. Both equations read , i.e. . That gives , or equally .
For :
Show derivation
Worked in the two examples above. Check: , and .
Sweep the direction of for the running example. In general points somewhere else. At and (the dashed lines) the angle drops to zero, and the length ratio is the eigenvalue: 2 and ½.
Never set a component to 1 if it might be zero: the reduced equations then become inconsistent. Also, never drop an equation that leaves two identical rows behind. If the working breaks down, try a different component or a different row.
Example Appendix IIa: a matrix that can trip you up
The real symmetric matrix
The eigenvalues are reasonably straightforward. For :
(a) Discarding the wrong equation. Rows 2 and 3 are identical. If you discard row 1, you keep the same equation twice. You then have only one independent equation for two unknowns, and no unique answer. Discard row 2 or row 3 instead.
(b) Setting the first component to 1. Put .
- Row 2 gives .
- Row 1 gives .
This is a contradiction, because the true eigenvector has first component zero.
With the default (rows 1 and 2), everything works. Row 2 gives . Row 1 then gives , so and . That is .
Explanation x₁ the vector or x₁ the component?
The handout uses (bold) for the first eigenvector and (plain) for the first component of whatever vector you are solving for. In the example, is the first component of .
Keep them apart by writing the eigenvector in full as a column at the end.
Always finish with the one-line check : it catches almost every slip.
- For each solve . The rows are dependent: drop one, set a non-zero component to 1, solve the rest.
- Eigenvectors are fixed only up to a scale factor (including sign).
- Inconsistent equations after setting mean : choose another component.
- Always check .
- Running example: , ; , .
Step 3: Normalise the eigenvectors
This step is not required, but it is often useful to scale each eigenvector to unit length. The normalised eigenvectors are called .
Show derivation
By Magnitude of a vector, , so has .
is still an eigenvector with the same eigenvalue: for any .
For the running example: and .
- Normalise only when asked, or when you need (diagonalising a symmetric matrix).
- is an equally valid normalised eigenvector.
Symmetric matrices
is symmetric if , equivalently . Examples:
For the first matrix, the eigenvalues (, ) came out real and the eigenvectors orthogonal: . This is true for any real symmetric matrix, in any number of dimensions.
Eigenvalues and eigenvectors of symmetric matrices
The proofs below need not be learnt. The theorems themselves are important: know how and when to apply them.
If is a real, symmetric matrix, we can find a complete set of real eigenvalues and real eigenvectors for .
Show derivation not required
Proof by contradiction (slides 9.I–III). Suppose has a complex eigenvalue with eigenvector , where are real. Bars denote complex conjugates.
Step 1: conjugate. Since (real), conjugating gives .
Step 2: dot with and .
Step 3: the two left-hand sides are equal. Let . is a scalar, so . Also , using . Hence
Step 4: is real. , so . Therefore , i.e. .
Step 5: real eigenvectors. With real, . Adding this to gives . Since ,
Completeness (a full set of independent eigenvectors) follows with Theorem 2 and Repeated eigenvalue of a symmetric matrix: an eigenplane.
If is a real, symmetric matrix, eigenvectors of belonging to distinct eigenvalues are orthogonal.
Show derivation not required
Proof (slide 10.I). Let and with . Then
The theorems make the eigenvectors of a real symmetric matrix an orthogonal basis. They are also orthogonal with respect to (Appendix IIb):
For the eigenvectors of a real symmetric :
Show derivation
, by #symmetric orthogonal eigenvectors.
- A matrix that is not symmetric may have complex eigenvalues, and its eigenvectors are unlikely to be orthogonal.
is antisymmetric if , so its diagonal is zero. For example,
Explanation Checking the antisymmetric-matrix exercise
With :
Explanation Why does symmetry matter so much?
The whole of both proofs is the one fact that a scalar equals its own transpose, together with . That fact lets you “move across the dot product”: .
For a non-symmetric matrix this swap fails, and so do both theorems. A rotation matrix (later in this lecture) is the standard counter-example: complex eigenvalues.
- Real symmetric real eigenvalues, real eigenvectors, and eigenvectors for distinct eigenvalues are orthogonal.
- Know the theorems; the proofs are not required.
- Orthogonality also holds with respect to : for .
- Non-symmetric matrices: eigenvalues may be complex, eigenvectors usually not orthogonal.
What is a defective matrix?
An matrix always has eigenvalues, a mixture of real and complex. However, not every matrix has linearly independent eigenvectors. The trouble usually comes from a repeated eigenvalue, i.e. a repeated root of the characteristic equation.
Example Two matrices with λ = 2 repeated three times
Both have characteristic equation .
- First matrix: , and are all eigenvectors. Indeed every vector is.
- Second matrix: forces . So only (and multiples of it) is an eigenvector.
An matrix that does not have linearly independent eigenvectors is defective. The second matrix above is an example; it is known as a Jordan matrix. For now it is enough to know that such matrices exist.
Explanation How do I spot a defective matrix in practice?
Only repeated eigenvalues can cause it. For an eigenvalue repeated times, count the free parameters in the solution of . Fewer than means the matrix is defective.
A real symmetric matrix is never defective (next section).
- Defective = fewer than independent eigenvectors. This can only happen with a repeated eigenvalue.
- Example: has only .
- Defective matrices cannot be diagonalised.
Symmetric matrices with repeated eigenvalues
The proof of Theorem 2 needed distinct eigenvalues. So what happens if a symmetric matrix has a repeated eigenvalue?
For a real symmetric matrix, a repeated eigenvalue gives an eigenplane (in more than 3 dimensions, a hyperplane or volume). Every vector in it is an eigenvector with that eigenvalue. Choose mutually orthogonal vectors in the eigenplane, and you still get a full set of orthogonal eigenvectors.
Show derivation not required
Let be , real and symmetric.
- By Theorem 1: real eigenvalues and eigenvectors, has a real eigenvalue with a real unit eigenvector .
- Let be the set of vectors orthogonal to ; it has dimension . For :
So : maps into itself.
- In an orthonormal basis of , acts through the matrix with entries . This matrix is again real symmetric, so steps 1–2 repeat inside , giving , and so on.
- After steps there are mutually orthogonal unit eigenvectors, whether or not eigenvalues repeat. An eigenvalue repeated times owns of them, and every combination of those is again an eigenvector: the eigenplane.
Example A symmetric matrix with eigenvalues 1, 1, 4
Eigenvalues. Put :
: the eigenvector is , since every row of sums to 4.
: has every entry equal to 1. All three rows give the single condition
Orthogonal pair. Take two orthogonal vectors in the plane, e.g.
The plane is for . Move round the plane: the readout shows every time (eigenvalue 1), while is multiplied by 4. and give the handout’s choices, and normalised. Drag to rotate and see that the plane is perpendicular to .
Explanation Quick way to get the second orthogonal vector
Pick any one vector in the eigenplane, e.g. . Then the cross product with the normal, (Vector (cross) product), lies in the plane and is automatically orthogonal to the first. The lecturer uses exactly this trick in the stretching example below.
- Symmetric matrix with a repeated eigenvalue: whole eigenplane of eigenvectors. Pick orthogonal ones, giving a full orthogonal set.
- 3D, eigenvalue repeated: reduces to one plane equation. Take one vector in it, then cross it with the normal for the second.
- Symmetric matrices are never defective.
Diagonalisation
Building A = UΛU⁻¹
Let be with eigenvalues and unit eigenvectors :
Stack the eigenvectors as columns:
With (columns) and , this reads .
The columns of are eigenvectors, and is diagonal with the eigenvalues in the same order. This requires , i.e. linearly independent eigenvectors.
Show derivation
Column of is times column of , i.e. .
Column of is times column of (which has in row and zeros elsewhere), i.e. .
So . If exists:
- post-multiplying both sides by gives ;
- pre-multiplying by gives .
exists iff , i.e. iff the columns are linearly independent.
Order matters. comes after on the right-hand side of (4) and (5): , not . Eigenvalue must sit in the diagonal position that matches column of .
Defective matrices cannot be diagonalised, because they do not have a full set of linearly independent eigenvectors (Defective matrix).
Explanation Databook notation clash
The databook (maths p18) writes this as . There is the eigenvector matrix. In the lectures, is a symmetric matrix and the eigenvector matrix is . Same formula, different letters.
- always holds; invert (independent eigenvectors needed) to get .
- Columns of must match the order of the diagonal of .
- Defective matrices are not diagonalisable.
Real symmetric matrices: S = UΛUᵀ
A real symmetric matrix has orthogonal eigenvectors. Orthogonal vectors are linearly independent, so always exists for a real symmetric matrix. Moreover, with normalised eigenvectors, .
The columns of must be the normalised, mutually orthogonal eigenvectors.
Show derivation
Start from Diagonalisation: .
The entry of is (row of )·(column of ) .
- For this is 0, by Theorem 2: orthogonal eigenvectors (or by choice within an eigenplane, Repeated eigenvalue of a symmetric matrix: an eigenplane).
- For it is , by normalisation.
So (Kronecker delta) and , i.e. . For a square matrix this also gives .
Substituting: . Then .
- only if the eigenvectors are normalised. Unnormalised eigenvectors give .
- So for a real symmetric , is an orthogonal matrix (, databook maths p17). It represents either a rotation, or a rotation plus a reflection.
- Real symmetric: , so no matrix inversion is needed.
- Normalise the eigenvectors first, or .
- is orthogonal: a rotation () or a rotation plus reflection ().
Meaning: the same map in the eigenvector basis
Let the matrix map the original coordinate system to one aligned with the eigenvectors, . From the previous handout, the transformation expressed in the rotated coordinate system is . Here , so:
Show derivation
Let in the original axes.
In the new axes , a vector with new components is . Likewise .
Then . Pre-multiplying by (orthogonal) gives . So in the new axes the map is .
With , Diagonalising a real symmetric matrix gives .
- The diagonal matrix represents the same physical transformation as , but in a basis aligned with the eigenvectors.
- A diagonal matrix is pure stretching (or compressing) along the axes. So is pure “strain” along each of the mutually perpendicular eigenvector directions.
- This analysis is used frequently in stress analysis and fluid mechanics (principal stresses and directions).
Explanation Reading S x = U Λ Uᵀ x right to left
Read the product from right to left:
- lists the components , i.e. described in the eigenvector axes.
- multiplies each of those components by its own : a pure stretch.
- reassembles the stretched components into a vector in the original axes.
So “rotate into the eigen-axes, stretch, rotate back”. Questions that ask you to diagonalise “by rotating the coordinates” are asking for exactly this .
- is seen from axes along its eigenvectors: same map, new coordinates.
- A symmetric is a pure stretch along 3 perpendicular (principal) directions.
Example: stretching transformation
Example Matrix that stretches ×4 along [1,1,1]ᵀ and squashes ×½ across it
Task. Determine the matrix representing a stretch by a factor of 4 in the direction , together with a squash by a factor of in all directions perpendicular to it. Pick two orthogonal vectors in the plane perpendicular to .
Eigenpairs.
Assemble using (5):
Checks.
- The result is symmetric, as it must be. This confirms the algebra.
- is an eigenvector with eigenvalue 4:
- Determinant without any sums: . The map preserves volume.
Redrawn from slide 16.II. Space is stretched ×4 along (blue) and squashed ×½ along every direction in the perpendicular plane, represented by (red) and (green).
determinant = scale factor of the mapping = product of eigenvalues. This is obvious when the eigenvectors are orthogonal, but it is valid even when they are not.
Where it comes from
The lecturer’s argument covers the orthogonal case. is the volume scale factor of the mapping. A symmetric matrix stretches a unit cube aligned with its orthogonal eigenvectors by along its edges. It therefore becomes a box of volume .
The general statement (non-orthogonal eigenvectors) is proved in Examples Paper 4, Q9.
Explanation A second check on the stretching example
Since , the product can be written as . Here:
It also shows why the choice of in the plane does not matter: the answer depends only on the plane.
- To build a matrix from given stretches, use eigenvalues = stretch factors and eigenvectors = directions. Normalise, then .
- Repeated eigenvalue: any two orthogonal vectors in the perpendicular plane will do (use a cross product).
- Checks: the result is symmetric; ; .
Repeated multiplication by a matrix
Powers of a diagonalisable matrix
Let () have linearly independent eigenvectors, not necessarily orthogonal, so that .
Show derivation
Matrix multiplication is associative, so regroup to put each together. The inner pairs vanish, leaving .
Multiplying diagonal matrices multiplies the diagonal entries, so .
Hence has the same eigenvectors as , with the eigenvalues raised to the power .
Because the eigenvectors are linearly independent, any 3D vector can be written as .
Show derivation
Apply once and use linearity:
- : same eigenvectors, eigenvalues . This needs independent, not orthogonal, eigenvectors.
- Expand in eigenvectors; then each component just multiplies by per application.
The power method
Order the eigenvalues so that . Then
Show derivation
Factor out from Aⁿx in eigenvector components:
Likewise . Therefore
In summary, repeated multiplication (the power method) gives:
- an approximation to the eigenvector of the largest eigenvalue;
- an approximation to the largest eigenvalue.
There are subtleties. For example, the starting may have no component along the dominant eigenvector. More on the power method in Part IB.
- The power method needs : the start vector must have some component along .
- The length ratio gives . If , the iterates flip direction each step; read the sign from that (or from componentwise).
- Convergence is slow when is close to 1.
Press ▶ to apply the matrix repeatedly. The orange arrow is scaled to a fixed length, and the grey dots are earlier iterates. With matrix A () it snaps onto the diagonal within a few steps and the ratio → 2. With B () convergence is visibly slower. Set : the start vector has no component, so it stays on and the ratio shows the wrong eigenvalue.
- lines up with the eigenvector of the largest ; .
- Fails if the start vector has no component along ; slow if .
Rotation matrix: eigenvalues
Eigenvalues are the “amount” by which a matrix stretches a vector in an eigenvector direction while preserving its direction. A rotation, by definition, changes the direction of almost all vectors, so we expect few real eigenvectors.
For a rotation by about the -axis (in the - plane):
Show derivation
Expand along the middle row, which has a single non-zero entry:
So , or by the quadratic formula (databook maths p3: ).
Eigenvector checks. . For the complex one:
- One eigenvector is the -axis, which we know a rotation about leaves unchanged.
- The other two are complex. When this happens we have an eigenplane: anything in the - plane is mapped to another vector in the - plane. (This is a different use of the word from the symmetric-matrix eigenplane: here vectors are turned within the plane, not just scaled.)
Change and drag to rotate the view. The -axis vector never moves (). Every vector in the - plane (teal) is turned but stays in the plane, so no real stretch factor describes it: the other two eigenvalues are complex. Try : both become , and every - vector is simply reversed.
Explanation Two different ‘eigenplanes’
The word is used in two senses in this lecture:
- Repeated real eigenvalue of a symmetric matrix: every vector in the plane is an eigenvector. They are all scaled by the same (for , mapped to itself).
- Complex-conjugate pair (rotation): the plane is only mapped into itself; vectors in it are turned, not just scaled. The real and imaginary parts of the complex eigenvector, here and , span that plane.
Also note: the eigenvalues have , matching the fact that a rotation preserves lengths. Their product is , consistent with Determinant = product of eigenvalues.
- Rotation by about an axis: (the axis) and (complex, the plane of rotation).
- Real non-symmetric matrices can have complex eigenvalues; they come in conjugate pairs with conjugate eigenvectors.
- Complex pair = invariant plane (vectors turned within it), not a stretch.
Generalised eigenvalue problem
This is introduced briefly because it appears in Part IA Vibrations (Easter Term). It is not in the Paper 4 syllabus. The appendix material below is for interest.
Definition
A non-zero vector satisfying
Orthogonality with respect to A and M (Appendix II)
If and are symmetric, then with “appropriate” normalisation
Show derivation
(slides 27.I–II). Take eigenpairs and , with . Dot each with the other eigenvector:
So the left-hand sides are equal, and . Hence , which gives . Then . The same works for any pair .
(slides 27.III–IV). . With the normalisation Normalising with respect to M, , and so .
This requires to be symmetric positive definite (SPD): for all non-zero . Then the square root is real (and non-zero).
Show derivation
Positive definiteness guarantees that , so the square root exists and is non-zero.
This is a different way to normalise a vector, not just by its Euclidean length (Normalised eigenvector is the special case ).
Example: two masses on springs (Appendix II)
Two masses are connected by springs as shown and are free to slide on a smooth horizontal surface. At equilibrium there is no tension in the springs. The masses are then displaced by and from their equilibrium positions, so that the spring tensions become and .
Two equal masses joined by equal springs (wall–mass–mass). Choose a mode and press ▶: each mode is a pattern in which both masses oscillate at the same frequency. In the low mode they move together (); in the high mode they move in opposition (). The dashed marks are the equilibrium positions.
In matrix form:
Show derivation
Spring tensions (linear springs, tension = stiffness × extension):
- spring 1 is extended by , so ;
- spring 2 is extended by , so .
Newton’s second law (Newton's second law), mass × acceleration = force:
- Mass 1 is pulled right by spring 2 and left by spring 1: .
- Mass 2 is pulled left by spring 2: .
Moving everything to the left-hand side and collecting coefficients of row by row gives (11). The equations are coupled: each involves both and .
- are the natural frequencies.
- The eigenvectors are the vibration modes.
- , are set by the initial conditions.
- The approach generalises to masses.
Show derivation
Assume a harmonic response , with a constant vector (as yet unknown).
Differentiating twice: .
Substituting into (11):
Each eigenpair gives a solution. The equations are linear, so their sum is also a solution, and with two modes and four constants it can match any initial positions and velocities.
Example Equal masses and springs: k₁ = k₂ = k, m₁ = m₂ = m
Reduce to a regular problem.
Eigenvalues. With :
Eigenvector for .
Eigenvector for .
Show derivation
From the example: (Harmonic response gives a generalised eigenvalue problem), with .
Numerically, and . Exactly, , so .
Orthogonality check, using (8) with :
Explanation Why did this become an ordinary symmetric problem?
In general is not symmetric, even when and are. That is why the orthogonality result is stated “with respect to ”.
Here , so is symmetric. Its modes are then plainly orthogonal, which the check above confirms.
Physically, the low mode (masses moving together) barely stretches the middle spring, so it is “soft” and slow. In the high mode the masses fight each other through the middle spring, which makes it stiff and fast.
- Not in the Paper 4 syllabus; needed for IA Vibrations.
- becomes when is invertible.
- with gives : eigenvalues = (natural frequency)², eigenvectors = mode shapes.
- Symmetric : modes are orthogonal with respect to both, and .