Hexa Scholar

Symmetric matrices: test the eigenvector directions

A blank navy disk and two separate gold wooden rods on a cream tabletop.
A disk and loose rods make a kit for investigating directions.

The question

For the matrix with rows (3, 1) and (1, 3), how much freedom do you have when choosing two eigenvector directions?

Try a pair, check what the matrix does, then change the matrix.

  1. 1 SeeTry to break the pattern.
  2. 2 TryTest a repeated eigenvalue.
  3. 3 ProveExplain the direction constraint.
  4. 4 ApplyCompute in an eigenvector basis.
Before you start · 3 quick checks on eigenvectors, dot products and unit vectors

Two ideas before you start

2 ideas

Transpose swaps row and column

A matrix and its transpose, with the off-diagonal entries exchanged.

A matrix is symmetric when transposing it changes nothing. Compare entries across the main diagonal.

Exact definition

For a real square matrix \(A\), the transpose satisfies \((A^T)_{ij}=A_{ji}\). The matrix is symmetric when \(A^T=A\). In the plane, that means

\[A=\begin{pmatrix}a&b\\b&d\end{pmatrix}.\]

The diagonal entries need not match. Symmetry is a statement about entries in an orthonormal coordinate system, not a promise that the map preserves lengths or keeps every vector on its own line.

A dot product compares directions

Two vectors from the origin, with their dot product computed below.

Multiply matching coordinates and add. A zero dot product means perpendicular directions when both vectors are nonzero.

Exact definition

Write \(u^Tv=u\cdot v=\sum_i u_iv_i\). Its associated length is \(\|u\|=\sqrt{u^Tu}\). Vectors are orthogonal if their dot product vanishes; an orthonormal set also gives each vector unit length. For nonzero vectors, \(u^Tv=\|u\|\|v\|\cos\theta\), where \(\theta\) is their angle.

The lesson on dot products and projection explains this geometric test. Here it will test eigenvector directions, not find a closest point.

Notation: eigenvectors, bases and coordinates

An eigenvector is nonzero and satisfies \(Au=\lambda u\). The multiplier \(\lambda\) can be positive, negative or zero. See eigenvectors for how to find one. Scaling an eigenvector by a nonzero number preserves its eigenvalue.

A basis gives a unique linear combination for every vector. Put its vectors in the columns of a square matrix \(Q\). If the columns are orthonormal, \(Q^TQ=I\), so \(Q^{-1}=Q^T\). This follows by taking each pair of column dot products. The lesson on diagonalization explains the more general expression \(A=PDP^{-1}\).

1 See

Try to find an exception

Solid: the given eigenvector u. Dashed: your candidate v. Both are drawn at unit length. Dotted eigen-direction lines appear after a check.
What the check measures

For unit \(v\), the number \(r=v^TAv\) is the component of \(Av\) along \(v\). The residual \(\|Av-rv\|\) measures the part left over. It vanishes exactly for an eigenvector, including one with eigenvalue zero. The controls use a fixed angle grid; all eigen-directions of these examples lie on that grid. The implementation allows floating-point roundoff when testing zero. A small displayed residual alone is not a proof.

The angle readout uses the smaller angle between the two lines, so reversing a vector changes neither line nor angle. Stage 3 explains why the observed pattern is forced by symmetry.

2 Try

Change the eigenvalue condition

The preceding search required different eigenvalues. Test the boundary of that condition before drawing a broader conclusion.

3 Prove

Move the matrix across the dot product

Orthogonality theorem

Let \(A\) be a real symmetric square matrix. Let \(u,v\ne0\) satisfy \(Au=\lambda u\) and \(Av=\mu v\), with real \(\lambda\ne\mu\). Then \(u^Tv=0\). This statement does not require positive eigenvalues, an invertible matrix, or unit eigenvectors.

In the builder, write \(s=u^Tv\) and \(c=\|u\|\|v\|\). Since neither vector is zero, \(c\gt0\). Pick the true statement at each step.

4 Apply

Compute with an orthonormal eigenbasis

Each problem has hints and a worked solution. Enter a decimal without units. The stated tolerance applies to the unrounded answer; keep intermediate calculations unrounded.

Key point Match each eigenvalue to its column of \(Q\), normalize the columns, and use dot products for coordinates. Reordering columns is allowed if you reorder the diagonal entries with them. Reversing a column's sign does not change the matrix.
Level IntroPrerequisites Eigenvectors, diagonalization, dot productsTime ~30 min

Further reading