PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

Related simulators

Continue with similar topics in this category — or all 85 in Math Visualization.

View category →
NewSchool

PCA in 2D (principal components & 1D projection)

Launch Simulator

Click-built cloud: covariance eigenvectors as PC1/PC2 arrows from the mean, optional orthogonal drops to the PC1 line, and a bottom strip of PC1 scores — the standard rank-one projection coordinate.

NewUniversity / research

Power Iteration Eigenvalue Convergence

Launch Simulator

Visualize dominant eigenvector convergence: spectral gap ratio, Rayleigh quotient, eigen residual, and normalized power iterates on the unit circle.

NewSchool

Least Squares Fit

Launch Simulator

Noisy linear data; fitted slope and intercept with residuals.

NewSchool

Markov Chain (Weather)

Launch Simulator

Sun/Rain two-state chain: P matrix, stationary π, empirical vs theory.

NewUniversity / research

Minkowski Diagram

Launch Simulator

Light cone and boosted axes in 1+1D; γ from v.

NewUniversity / research

Convolution (pulses)

Launch Simulator

Two rectangular pulses; overlap length at τ = 0.

PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Math Visualization/2×2 Matrix & Eigenvectors

2×2 Matrix & Eigenvectors

Grid deformation under M; real λ eigen-direction arrows.

M = [[a,b],[c,d]]

1.2
0.35
0.15
0.85

Measured values

tr(M)2.050
det(M)0.968
eigenvalues1.313, 0.737

About this model

Linear transformations of the plane, represented by 2×2 matrices, are visualized through the deformation of a coordinate grid. The core mathematical operation is the matrix-vector multiplication v' = M v, where v is a position vector of a point in the original grid and v' is its transformed location. The simulator maps every point of the plane according to this rule, stretching, rotating, shearing, or compressing the space. A central concept explored is that of eigenvectors and eigenvalues. For a given matrix M, an eigenvector x is a special non-zero vector whose direction remains unchanged after transformation, satisfying M x = λ x. The scalar λ is the eigenvalue, which determines if the vector is stretched (|λ|>1), shrunk (|λ|<1), reversed (λ<0), or left unchanged in length (|λ|=1). The simulator visually identifies these invariant directions by drawing arrows along the eigenvectors, with their length scaled by the corresponding eigenvalue. This model simplifies the concept by focusing on real eigenvalues and eigenvectors, excluding cases with complex eigenvalues which correspond to rotational transformations without invariant lines in the real plane. By interacting with the grid and adjusting the matrix entries, students directly learn how the algebraic properties of the matrix—its trace, determinant, and characteristic equation det(M - λI)=0—dictate the geometric action on the plane and the existence and nature of its eigen-directions.

Who it's for: Undergraduate students in linear algebra or engineering courses learning about linear transformations, eigenvectors, and diagonalization.

Key terms

  • Linear Transformation
  • Eigenvector
  • Eigenvalue
  • Matrix Multiplication
  • Determinant
  • Characteristic Equation
  • Invariant Direction
  • Diagonalization

How it works

A linear map (x,y) ↦ (ax+by, cx+dy) sends a square grid to a parallelogram lattice. Eigenvectors (when λ are real) lie along directions that are only scaled — the right panel overlays two eigen-direction arrows from the origin when discriminant ≥ 0. Complex λ means no real eigen-direction pair in ℝ² (rotation–scale mix); the grid still deforms nicely.

Key equations

det(M − λI) = 0 · tr = a+d · det = ad − bc

Frequently asked questions

Why do some matrices not show eigenvector arrows?
The simulator displays eigenvectors only for real eigenvalues. If the matrix has complex eigenvalues, its transformation involves a rotation component, and there are no invariant lines (real eigenvectors) in the plane. The eigenvectors exist in a complex vector space, which is not visualized here. This is a key limitation of the real-plane visualization.
What does it mean if the eigenvector arrows point in opposite directions but lie on the same line?
An eigenvector defines an invariant line, not just a single direction. If λ is positive, vectors on that line are stretched/compressed in their original direction. If λ is negative, vectors are flipped to the opposite direction along the same line. Both the arrow and its opposite are valid visual representations of the same eigen-direction.
How is this related to real-world applications?
Eigen analysis is fundamental to stability analysis in engineering (e.g., predicting if a structure will buckle), principal component analysis in data science (finding dominant trends), and quantum mechanics (where observable quantities are eigenvalues of operators). This simulator provides the geometric intuition behind these algebraic tools.
Can a matrix have more than two eigen-directions?
In two dimensions, a 2×2 matrix can have at most two linearly independent eigenvectors. A special case is when the matrix is a scalar multiple of the identity matrix (like [[2,0],[0,2]]). Then every vector in the plane is an eigenvector, and the transformation is a uniform scaling in all directions.