Eigenvalues & Eigenvectors
When a matrix multiplies most vectors, the result points in a completely new direction. But some special vectors only get scaled — their direction stays the same (or flips). These are eigenvectors, and the scale factors are eigenvalues. Together, they reveal the intrinsic behavior of a linear transformation.
Definition
Given a square matrix , a nonzero vector is an eigenvector of if:
where is a scalar called the eigenvalue. The matrix acts on by simply stretching (or compressing, or flipping) it — no rotation, no shearing, just scaling by .
Geometric Intuition
The eigen-decomposition reveals the “natural axes” of a transformation — the eigenvectors are the axes, and the eigenvalues are the scale factors along each:
- : the eigenvector direction is stretched
- : the eigenvector direction is compressed
- : the eigenvector direction is flipped and scaled
- : the eigenvector direction is collapsed (the matrix is singular along this direction)
Computing Eigenvalues
Rearrange :
For a nonzero to exist, the matrix must be singular — its determinant must be zero:
This is the characteristic equation. For an matrix, it yields a polynomial of degree in .
2×2 Example
Find the eigenvalues of:
The characteristic equation:
So and .
Computing Eigenvectors
For each eigenvalue , solve for .
For :
Eigenvector: (or any scalar multiple)
For :
Eigenvector: (or any scalar multiple)
Eigenvectors Are Not Unique
If is an eigenvector, so is for any nonzero scalar . We typically normalize eigenvectors to unit length, but the choice of sign/scale is arbitrary. What matters is the direction (or subspace).
Symmetric Matrices — A Special Case
Symmetric matrices () arise frequently in robotics — inertia tensors, covariance matrices, stiffness matrices. They have two powerful guarantees:
- All eigenvalues are real (no complex numbers)
- Eigenvectors are orthogonal (perpendicular to each other)
This means a symmetric matrix can always be decomposed as:
where is an orthogonal matrix of eigenvectors and is a diagonal matrix of eigenvalues. This is the spectral decomposition — it decomposes the transformation into independent scalings along perpendicular axes.
Inertia Tensor Robotics Application
The inertia tensor of a rigid body describes how mass is distributed around each axis:
This matrix is symmetric (). Its eigenvectors are the principal axes of inertia — the directions around which the body rotates most naturally (without wobbling). Its eigenvalues are the principal moments of inertia.
When you design a robot link, aligning the coordinate frame with the principal axes simplifies the dynamics equations because the inertia tensor becomes diagonal:
Eigenvalues of Rotation Matrices
Rotation matrices have a distinctive eigenvalue signature. For a 2D rotation by angle (where ):
The characteristic equation gives:
The eigenvalues are complex — which makes sense geometrically: a nontrivial rotation in 2D doesn’t preserve any real direction.
For a 3D rotation by angle around axis , the eigenvalues are:
The eigenvector for is the rotation axis itself — the one direction that the rotation leaves unchanged. This fact is the foundation of the axis-angle representation (covered in Lesson 3).
Key Insight
Every 3D rotation matrix has eigenvalue . The corresponding eigenvector is the rotation axis. This is an elegant way to extract the axis from a rotation matrix.
Diagonalization
A matrix is diagonalizable if it has linearly independent eigenvectors. In that case:
where has eigenvectors as columns, and .
This decomposition is powerful because:
- Matrix powers: (just raise each eigenvalue to the -th power)
- Matrix exponential: (critical for solving differential equations)
Robotics Applications
1. Stability of Linear Systems
A linear dynamical system has behavior determined entirely by the eigenvalues of :
| Eigenvalue property | System behavior |
|---|---|
| All Re() < 0 | Stable — all states decay to zero |
| Any Re() > 0 | Unstable — at least one state grows unbounded |
| Re() = 0 (others < 0) | Marginally stable — oscillates without growing or decaying |
Joint Controller Stability Robotics Application
A PD controller for a single robot joint gives the closed-loop dynamics:
where is the position error, is the proportional gain, and is the derivative gain.
The characteristic equation is . For stability, both eigenvalues must have negative real parts. By the quadratic formula, this requires:
- (positive stiffness)
- (positive damping)
The eigenvalues also reveal the response character: real eigenvalues give overdamped response (sluggish), complex eigenvalues give underdamped response (oscillatory), and the boundary is critical damping at .
2. Principal Component Analysis (PCA)
Given a point cloud from a LiDAR sensor, the covariance matrix captures how the data is spread:
The eigenvectors of point along the directions of maximum variance (the principal axes of the data cloud), and the eigenvalues measure how much variance there is along each direction.
Surface Normal Estimation Robotics Application
A mobile robot’s LiDAR returns a cluster of 3D points near a surface. To estimate the surface normal:
- Compute the covariance matrix of the local neighborhood
- Find the eigenvalues
- The eigenvector corresponding to (the smallest eigenvalue) is the surface normal
Why? The smallest eigenvalue direction has the least spread — that’s the direction perpendicular to the surface where points vary the least.
If and : clearly a flat surface. If : the points lie along a line (edge). If : the points form a blob (corner or noise).
3. Vibration Analysis
The generalized eigenvalue problem for a mechanical system:
where is the stiffness matrix and is the mass matrix. The eigenvalues give the natural frequencies and the eigenvectors give the mode shapes — the patterns of vibration the system naturally exhibits.
Robot Arm Resonance Robotics Application
A 2-DOF robot arm has mass matrix and stiffness matrix . Solving the generalized eigenvalue problem yields two natural frequencies and their mode shapes.
If the controller commands motion at a frequency near or , the arm resonates — vibrations amplify and can damage the system. Knowledge of these eigenvalues lets you:
- Design controllers that avoid exciting resonant modes
- Add damping targeted at problematic frequencies
- Set trajectory acceleration limits to stay below resonance
4. Manipulability Ellipsoid
The matrix (where is the robot Jacobian) encodes the end-effector’s ability to move and exert forces in different directions. Its eigenvectors define the axes of the manipulability ellipsoid, and the square roots of its eigenvalues are the semi-axis lengths.
- Directions with large eigenvalues: the robot can move/push easily
- Directions with small eigenvalues: the robot struggles (near singularity)
- The ratio is the condition number — it measures how “isotropic” the robot’s capability is
Yoshikawa's Manipulability Measure
A single scalar summarizing overall dexterity is . When , the robot is at a singularity. Maximizing drives the robot toward configurations with the most uniform capability in all directions.
The Eigenvalue Decomposition Visually
Consider a symmetric 2×2 matrix acting on the unit circle. Because symmetric matrices have orthogonal eigenvectors and real eigenvalues, the eigenvectors define the axes of the resulting ellipse, and the absolute eigenvalues are the semi-axis lengths:
- The unit circle maps to an ellipse whose principal axes align with the eigenvectors
- The lengths of the semi-axes equal and
- If , the ellipse is a circle (uniform scaling)
- If one eigenvalue is zero, the ellipse collapses to a line (singular matrix)
For non-symmetric matrices, the ellipse axes are instead determined by the singular vectors (from the SVD), and the semi-axis lengths are the singular values — a topic closely related to eigenvalues but beyond this lesson’s scope.
Symmetric Matrix
[ 1.0, 1.0 ]
Eigenvalue Analysis
Try this: Start with "Identity" (circle maps to circle). Increase a to stretch horizontally. Then add off-diagonal b to rotate the eigenvectors. Set "Singular" to see the ellipse collapse to a line (λ₂ = 0).
Practice Problems
-
Find the eigenvalues and eigenvectors of .
-
A system matrix is . Is the system stable?
-
The covariance matrix of a 2D point cloud is . Find the principal directions and their variances.
-
A 2D rotation matrix has eigenvalues . Verify this by computing .
-
A robot’s Jacobian at a particular configuration gives . Describe the manipulability ellipsoid. In which direction is the robot most capable?
Answers
-
Characteristic equation: . So , . For : . For : .
-
Characteristic equation: . Eigenvalues: , . Both are negative, so the system is stable.
-
Characteristic equation: . So (direction of max variance), . For : . For : . The data is most spread along the direction .
-
. . . Confirmed.
-
Eigenvalues are 9 and 1. The ellipsoid has semi-axis along and along . The robot is 3x more capable in the x-direction than the y-direction. Condition number = 3.
Key Takeaways
- Eigenvectors are the directions a matrix preserves; eigenvalues are the scale factors
- The characteristic equation yields eigenvalues
- Symmetric matrices have real eigenvalues and orthogonal eigenvectors
- Eigenvalues of the system matrix determine stability (negative real parts = stable)
- Eigenvalues of covariance matrices reveal principal directions in sensor data
- The manipulability ellipsoid uses eigenanalysis to assess robot dexterity
Next Steps
Now that you can analyze the intrinsic properties of matrices, the next lesson covers coordinate frames — how to manage the multiple reference frames that every real robot must juggle.