Tutorials › Linear Algebra › Failure Example: A 2×2 Shear Matrix

Diagonalization · Tutorial 536 of 1000

Failure Example: A 2x2 Shear Matrix

Solve the eigenvector equations for several shears and use the resulting one-dimensional eigenspace to prove that no nonidentity \(2\times2\) shear is diagonalizable over \(\mathbb{R}\).

Intermediate 9 min read

What You'll Learn

  • Recognize a horizontal or vertical \(2\times2\) shear matrix.
  • Solve the eigenvector equation for a shear step by step.
  • Identify the sole eigenspace and its independent eigenvector direction.
  • Prove why diagonalization requires two independent eigenvectors.
  • Distinguish a nonidentity shear from the identity matrix.
  • Correct the error of treating a repeated eigenvalue as evidence of two eigenvectors.

Why a Simple Shear Can Fail to Diagonalize

A shear moves points in one direction by an amount that depends on their position in another direction. In two dimensions, the matrix can look almost like the identity: one coordinate changes by a multiple of the other, while the other coordinate stays fixed. That simple form makes a shear easy to compute with, but it also gives a useful warning: having a real eigenvalue does not guarantee that a matrix has enough independent eigenvectors to be diagonalized.

We work over \(\mathbb{R}\). A nonidentity horizontal shear has matrix \(\mathbf{S}_k=\begin{bmatrix}1&k\\0&1\end{bmatrix}\), where \(k\in\mathbb{R}\) and \(k\ne0\). It sends \((x,y)^{\top}\) to \((x+ky,y)^{\top}\). The parameter restriction matters: when \(k=0\), the matrix is the identity, not a nonidentity shear.

Definition: For a matrix \(\mathbf{A}\in\mathbb{R}^{2\times2}\), an eigenvector is a nonzero vector \(\mathbf{v}\in\mathbb{R}^2\) for which \(\mathbf{A}\mathbf{v}=\lambda\mathbf{v}\) for some \(\lambda\in\mathbb{R}\); the scalar \(\lambda\) is its eigenvalue. The eigenspace \(E_{\lambda}\) consists of the zero vector and all eigenvectors with eigenvalue \(\lambda\). A matrix is diagonalizable over \(\mathbb{R}\) if \(\mathbf{A}=\mathbf{P}\mathbf{D}\mathbf{P}^{-1}\) for some invertible real matrix \(\mathbf{P}\) and real diagonal matrix \(\mathbf{D}\).

For the horizontal shear, the second coordinate is unchanged. That makes vectors on the \(x\)-axis natural candidates for eigenvectors. But to decide whether there are any other eigenvector directions, we must solve the full equation \(\mathbf{S}_k\mathbf{v}=\lambda\mathbf{v}\), not just test a convenient vector. The same calculation will explain why the shear cannot supply the two independent eigenvectors needed for a diagonalization.

The Eigenvectors of a Horizontal Shear

Write \(\mathbf{v}=(x,y)^{\top}\), with \((x,y)\ne(0,0)\). Multiplying the matrix by the vector and equating coordinates gives

$$ \begin{bmatrix}1&k\\0&1\end{bmatrix} \begin{bmatrix}x\\y\end{bmatrix} = \begin{bmatrix}x+ky\\y\end{bmatrix} = \begin{bmatrix}\lambda x\\\lambda y\end{bmatrix}, \qquad (1-\lambda)x+ky=0,\quad (1-\lambda)y=0. $$

The second equation forces the key case split. If \(y\ne0\), then \(1-\lambda=0\), so \(\lambda=1\). The first equation then becomes \(ky=0\), impossible because \(k\ne0\) and \(y\ne0\). Thus an eigenvector cannot have a nonzero second coordinate. If \(y=0\), the vector is nonzero only if \(x\ne0\); the first equation then forces \(\lambda=1\). Conversely, every vector \((x,0)^{\top}\) satisfies \(\mathbf{S}_k(x,0)^{\top}=(x,0)^{\top}\). Therefore the only eigenvalue is \(1\), and its eigenspace is exactly the \(x\)-axis.

Result: For every \(k\in\mathbb{R}\) with \(k\ne0\), the horizontal shear \(\mathbf{S}_k\) has eigenvalue \(1\) and eigenspace \(E_1=\operatorname{span}\{(1,0)^{\top}\}\). Its eigenspace has dimension \(1\), so it contains only one independent eigenvector direction.

“One independent eigenvector direction” does not mean that there is only one eigenvector. Every nonzero multiple of \((1,0)^{\top}\) is an eigenvector. The point is that any two such vectors are scalar multiples of each other, and therefore are linearly dependent. A diagonalization of a \(2\times2\) matrix requires two independent columns in its eigenvector matrix.

Theorem: No nonidentity horizontal shear \(\mathbf{S}_k=\begin{bmatrix}1&k\\0&1\end{bmatrix}\), with \(k\ne0\), is diagonalizable over \(\mathbb{R}\).

Proof. Suppose, for a contradiction, that \(\mathbf{S}_k=\mathbf{P}\mathbf{D}\mathbf{P}^{-1}\), where \(\mathbf{P}\) is an invertible real \(2\times2\) matrix and \(\mathbf{D}\) is diagonal. Multiplying on the right by \(\mathbf{P}\) gives \(\mathbf{S}_k\mathbf{P}=\mathbf{P}\mathbf{D}\). Write the columns of \(\mathbf{P}\) as \(\mathbf{p}_1,\mathbf{p}_2\), and the diagonal entries of \(\mathbf{D}\) as \(d_1,d_2\). Comparing columns yields \(\mathbf{S}_k\mathbf{p}_1=d_1\mathbf{p}_1\) and \(\mathbf{S}_k\mathbf{p}_2=d_2\mathbf{p}_2\). Since \(\mathbf{P}\) is invertible, its columns are nonzero and linearly independent. They would therefore be two independent eigenvectors of \(\mathbf{S}_k\). But the eigenspace calculation shows that every eigenvector is a multiple of \((1,0)^{\top}\); any two such vectors are dependent. This contradiction proves that \(\mathbf{S}_k\) is not diagonalizable over \(\mathbb{R}\). \(\square\)

Worked Shear Matrices

Worked Example: A Horizontal Shear

Find all real eigenvalues and eigenvectors of \(\mathbf{A}=\begin{bmatrix}1&3\\0&1\end{bmatrix}\), and decide whether \(\mathbf{A}\) is diagonalizable over \(\mathbb{R}\).

Let \(\mathbf{v}=(x,y)^{\top}\ne\mathbf{0}\). The eigenvector equation is

$$ \begin{bmatrix}1&3\\0&1\end{bmatrix} \begin{bmatrix}x\\y\end{bmatrix} = \begin{bmatrix}x+3y\\y\end{bmatrix} = \begin{bmatrix}\lambda x\\\lambda y\end{bmatrix}. $$

The second coordinate gives \((1-\lambda)y=0\). If \(y\ne0\), then \(\lambda=1\), and the first coordinate becomes \(3y=0\), a contradiction. Therefore \(y=0\). Since \(\mathbf{v}\ne\mathbf{0}\), we have \(x\ne0\), and the first coordinate now gives \(x=\lambda x\), so \(\lambda=1\). Thus the eigenvectors are exactly the nonzero vectors \((x,0)^{\top}\).

Check: \(\mathbf{A}(1,0)^{\top}=(1,0)^{\top}=1(1,0)^{\top}\), so the stated eigenvalue and direction work. Since all eigenvectors are multiples of \((1,0)^{\top}\), two independent eigenvectors do not exist, and \(\mathbf{A}\) is not diagonalizable over \(\mathbb{R}\).

Worked Example: A Vertical Shear

Analyze the vertical shear \(\mathbf{B}=\begin{bmatrix}1&0\\-2&1\end{bmatrix}\). Find its real eigenvectors and determine whether it is diagonalizable.

For \(\mathbf{v}=(x,y)^{\top}\ne\mathbf{0}\), the equation \(\mathbf{B}\mathbf{v}=\lambda\mathbf{v}\) becomes

$$ \begin{bmatrix}x\\-2x+y\end{bmatrix} = \begin{bmatrix}\lambda x\\\lambda y\end{bmatrix}, \qquad (1-\lambda)x=0,\quad -2x+(1-\lambda)y=0. $$

If \(x\ne0\), the first equation forces \(\lambda=1\); the second then reduces to \(-2x=0\), which contradicts \(x\ne0\). Hence \(x=0\). The vector is nonzero, so \(y\ne0\); substituting \(x=0\) into the second equation gives \((1-\lambda)y=0\), and therefore \(\lambda=1\). The eigenvectors are precisely the nonzero vectors \((0,y)^{\top}\).

Check: \(\mathbf{B}(0,1)^{\top}=(0,1)^{\top}=1(0,1)^{\top}\). Every eigenvector is a multiple of this vector, so the eigenspace has dimension \(1\), not \(2\). The same column argument as in the theorem shows that \(\mathbf{B}\) is not diagonalizable over \(\mathbb{R}\).

Worked Example: A Shear in an Oblique Direction

Consider \(\mathbf{C}=\begin{bmatrix}2&-1\\1&0\end{bmatrix}\). Its action can be written as \(\mathbf{C}(x,y)^{\top}=(x,y)^{\top}+(x-y)(1,1)^{\top}\): the displacement is always along the direction \((1,1)^{\top}\), so this is a shear in a direction that is not an axis. Find its eigenvectors and decide whether it is diagonalizable.

The eigenvector equations are \((2-\lambda)x-y=0\) and \(x-\lambda y=0\). If \(x=0\), the first equation gives \(y=0\), which is not allowed for an eigenvector. Hence \(x\ne0\). The first equation gives \(y=(2-\lambda)x\). Substitute this into the second equation:

$$ x=\lambda(2-\lambda)x, \qquad 1=\lambda(2-\lambda), \qquad (\lambda-1)^2=0. $$

Thus \(\lambda=1\), and then \(y=(2-1)x=x\). The eigenspace is the line spanned by \((1,1)^{\top}\).

Check: \(\mathbf{C}(1,1)^{\top}=(2-1,1)^{\top}=(1,1)^{\top}\). The eigenvector equation also showed that every eigenvector is a multiple of \((1,1)^{\top}\), so this shear has only one independent eigenvector direction and cannot be diagonalized over \(\mathbb{R}\).

What Changes When the Shear Is the Identity?

The condition that the shear be nonidentity is essential. For the family \(\mathbf{S}_k=\begin{bmatrix}1&k\\0&1\end{bmatrix}\), if \(k=0\), then \(\mathbf{S}_0=\mathbf{I}_2\). For every \((x,y)^{\top}\), the equation \(\mathbf{I}_2(x,y)^{\top}=1(x,y)^{\top}\) holds. In particular, \((1,0)^{\top}\) and \((0,1)^{\top}\) are independent eigenvectors, and \(\mathbf{I}_2=\mathbf{I}_2\mathbf{I}_2\mathbf{I}_2^{-1}\) is diagonalizable. When \(k\ne0\), the earlier calculation rules out every eigenvector with \(y\ne0\). So the zero-parameter case is not a small exception to overlook; it has a different eigenspace and a different diagonalization conclusion.

Common Mistake: Repeated Eigenvalue Does Not Mean Two Eigenvectors

A frequent error is to reason that because a \(2\times2\) shear has the eigenvalue \(1\) twice, it must have two independent eigenvectors. An eigenvalue equation does not work that way: the number of independent eigenvectors depends on the solutions of \((\mathbf{A}-\lambda\mathbf{I})\mathbf{v}=\mathbf{0}\), not just on how often the eigenvalue occurs in a polynomial.

For a concrete incorrect calculation, take \(\mathbf{A}=\begin{bmatrix}1&2\\0&1\end{bmatrix}\). A tempting but wrong claim is that \((0,1)^{\top}\) is a second eigenvector with eigenvalue \(1\), on the grounds that \(1\) is the only eigenvalue. Direct substitution corrects the claim:

$$ \mathbf{A}\begin{bmatrix}0\\1\end{bmatrix} = \begin{bmatrix}2\\1\end{bmatrix} \ne \begin{bmatrix}0\\1\end{bmatrix} = 1\begin{bmatrix}0\\1\end{bmatrix}. $$

Indeed, solving the equations gives \(2y=0\), hence \(y=0\), and then every eigenvector is a nonzero multiple of \((1,0)^{\top}\). The correction is to substitute a proposed eigenvector into \(\mathbf{A}\mathbf{v}=\lambda\mathbf{v}\), and to solve the full equation before concluding that enough independent eigenvectors exist.

The key distinction is between an eigenvalue and its eigenspace. A nonidentity \(2\times2\) shear has a real eigenvalue, but all its eigenvectors lie on one line. Diagonalization requires two independent eigenvectors because the columns of the invertible matrix \(\mathbf{P}\) in \(\mathbf{A}=\mathbf{P}\mathbf{D}\mathbf{P}^{-1}\) must be independent. The shear’s single eigenvector direction is therefore exactly what prevents diagonalization.

Check Your Understanding

For each question, start from the eigenvector equation and use substitution to check any proposed eigenvector.

  1. For \(\begin{bmatrix}1&-4\\0&1\end{bmatrix}\), find the eigenvalue and describe all eigenvectors.
  2. Show directly that \((1,0)^{\top}\) is not an eigenvector of \(\begin{bmatrix}1&0\\3&1\end{bmatrix}\).
  3. For which real values of \(k\) does \(\begin{bmatrix}1&k\\0&1\end{bmatrix}\) have two independent eigenvectors?
  4. Explain why two nonzero eigenvectors on the same line cannot be the columns of an invertible \(2\times2\) matrix.
  5. For \(\begin{bmatrix}3&-2\\2&-1\end{bmatrix}\), test whether \((1,1)^{\top}\) is an eigenvector, then determine whether that test alone proves diagonalizability.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon