Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Linear Transformation


Linear Algebra·Linear transformationsA 2×2 matrix reshapes the plane — pick a scenario, scrub t from 0 to 1, and read what is happening on the right.
îĵℝ² plane
det M(t)=1
classify=identity
Animationt = 0.000
t = 0.000

Identity

rank 2 · det 1

The identity matrix maps every vector to itself: Iv = v. The grid stays exactly where it started.

Insight

Both columns are the standard basis vectors. Every direction is an eigenvector with eigenvalue 1.

What to watch

Edit a single entry to break the identity — even a small perturbation gives a non-trivial map.

AMatrix

04Livet = 0.000

M(t)
1001
det M(t)1det A1trace A2eigenvalues1, 1rank A2







Key Terms

Linear Transformation — A function TT such that T(u+v)=T(u)+T(v)T(u + v) = T(u) + T(v) and T(cv)=cT(v)T(c \cdot v) = c \cdot T(v). Every linear transformation on R2\mathbb{R}^2 is represented by a 2×22 \times 2 matrix.

Matrix $A$ — The 2×22 \times 2 array whose columns are T(i^)T(\hat{i}) and T(j^)T(\hat{j}), where i^\hat{i} and j^\hat{j} are the standard basis vectors.

Determinant — The signed area of the parallelogram spanned by the columns of AA. Positive: orientation preserved. Negative: orientation reversed. Zero: singular.

Trace — The sum of the diagonal entries, a11+a22a_{11} + a_{22}. Equals the sum of the eigenvalues.

Rank — The dimension of the image. Either 2 (full rank, invertible), 1 (singular, collapses to a line), or 0 (zero matrix).

Eigenvalue — A scalar λ\lambda such that Av=λvAv = \lambda v for some nonzero vv. The directions preserved by AA up to scaling.

Interpolation Parameter $t$ — A scrub variable from 0 to 1. The displayed matrix is M(t)=(1t)I+tAM(t) = (1 - t) I + t A, morphing the identity into AA.

Getting Started

The visualizer shows a single square canvas with three columns surrounding it. The left sidebar groups twelve preset transformations by rank. The center column holds the canvas and animation controls. The right column shows an explanation of the current preset, layer toggles, the editable matrix AA, and a live readout.

The fundamental workflow:

• Pick a preset on the left — the animation auto-plays, morphing the identity into the chosen matrix over about 1.6 seconds.
• Drag the t slider under the canvas — manually scrub through the morph at any speed.
• Edit the matrix A on the right — the visualization updates instantly. The scenario indicator clears since you are now in custom mode.

The matrix M(t)=(1t)I+tAM(t) = (1 - t) I + t A blends linearly from the identity at t=0t = 0 to the full transformation at t=1t = 1, so the canvas shows the transformation actually happening rather than just its end state.

The Animation Slider

The animation panel below the canvas controls the parameter tt from 0 to 1.

• Play — smoothly eases from current tt to 1 over 1.6 seconds using a cubic ease-in-out curve. Restarts from 0 if already at the end.
• Step buttons — advance or rewind by 0.1 in tt for frame-by-frame inspection.
• Reset — jump back to t=0t = 0 (identity).
• Scrub slider — drag to any value between 0 and 1. Hold and slow-scrub to watch the determinant cross zero in singular cases.

Watch the readout under the canvas as you scrub: detM(t)\det M(t) updates live. For singular target matrices, detM(t)\det M(t) smoothly approaches zero. For orientation-reversing matrices (reflections), detM(t)\det M(t) crosses zero somewhere between 0 and 1, marking the instant the plane collapses before flipping.

Editing the Matrix A Directly

The matrix card on the right shows the four entries of AA as editable numeric inputs.

• Click an entry and type — the matrix updates instantly. Use arrow keys to step by 0.1.
• Set both columns parallel — detA=0\det A = 0, the matrix becomes singular, kernel and image lines appear on the canvas.
• Set all four entries to zero — the zero map. The entire plane collapses to the origin.
• Make the matrix orthonormal — for example [[cosθ,sinθ],[sinθ,cosθ]][[\cos\theta, -\sin\theta], [\sin\theta, \cos\theta]] — the classification readout shows "rotation".

When you edit, the active scenario indicator clears and the explanation card switches to "Custom matrix". Click any scenario in the sidebar to snap back to a canonical example.

Display Layer Toggles

The chip strip toggles eight independent visual layers.

• grid — the transformed integer grid. The deformation of the gridlines is the most direct picture of what M(t)M(t) does.
• basis — the two basis vectors i^\hat{i} (orange) and j^\hat{j} (cyan) drawn from origin to their images. The columns of M(t)M(t) are these tips.
&bull; unit sq &mdash; the unit square fill. Purple when det>0\det > 0, pink when det<0\det < 0 (orientation reversed), gray when singular.
&bull; unit circle &mdash; the unit circle morphs into an ellipse for invertible AA. Ellipse axes correspond to singular values.
&bull; eigen &mdash; magenta dashed lines along eigendirections (when eigenvalues are real). Tips show how eigenvectors scale.
&bull; ker / im &mdash; red dashed kernel line and green image line, shown only for singular matrices.
&bull; samples &mdash; a scattered grid of dots showing where representative points land.
&bull; labels &mdash; the i^\hat{i}, j^\hat{j}, kerA\ker A, im A\text{im } A tags.

Reading the Live Card

The live card on the right reports six quantities updating in real time.

&bull; $M(t)$ &mdash; the current interpolated matrix shown as a 2×22 \times 2 array. At t=0t = 0 this is the identity; at t=1t = 1 this is AA.
&bull; $\det M(t)$ &mdash; the determinant of the currently displayed matrix. Watch it deform from 1 (identity) toward detA\det A.
&bull; $\det A$ &mdash; the determinant of the target matrix. Fixed.
&bull; trace $A$ &mdash; sum of diagonal entries. Equals the sum of eigenvalues.
&bull; eigenvalues &mdash; the roots of the characteristic polynomial. Listed as real pairs or as a±bia \pm bi for complex conjugates.
&bull; rank $A$ &mdash; the dimension of the image: 0, 1, or 2.

The combination of detA\det A, trace, and eigenvalues uniquely characterizes the structural type of the transformation up to similarity.

The Classification Readout

Below the canvas the classify panel names the transformation in plain language, matched against ten patterns.

&bull; identity &mdash; A=IA = I. Nothing moves.
&bull; uniform scaling &mdash; diagonal with equal positive entries.
&bull; axis-aligned stretch &mdash; diagonal with unequal entries. Scales each axis independently.
&bull; rotation &mdash; columns are unit length and perpendicular, det=1\det = 1.
&bull; reflection &mdash; columns are unit length and perpendicular, det=1\det = -1.
&bull; orientation-reversing &mdash; det<0\det < 0 but not a pure reflection.
&bull; general invertible &mdash; det0\det \neq 0, no special structure.
&bull; singular &rarr; line &mdash; rank 1, collapses the plane to a line.
&bull; zero map &mdash; everything goes to the origin.

Edit the matrix and watch the classification update. Tiny perturbations break special structure: a rotation becomes "general invertible" when one entry shifts by 0.01.

Preset Scenarios &mdash; Three Rank Categories

The scenarios sidebar offers twelve canonical transformations grouped by rank.

&bull; Full rank (rank 2) &mdash; identity, rotate 45deg45\deg, rotate 90deg90\deg, scale 2×2\times, shear x, reflect x-axis, reflect y = x, and twist & stretch. All invertible. Different determinants and orientation behaviors.
&bull; Singular (rank 1) &mdash; project to x-axis, project to y = x (orthogonal projection), and outer product [[1,2],[2,4]][[1,2],[2,4]]. Each collapses the plane to a line; kernel and image become visible.
&bull; Degenerate (rank 0) &mdash; the zero map. Everything goes to the origin.

Selecting a scenario auto-plays the morph from identity to that matrix. The explanation card on the right shows three blocks: a brief description, an Insight about structural properties (eigenvalues, symmetries), and What to watch &mdash; the specific visual feature that makes this scenario distinctive.

What Is a Linear Transformation?

A linear transformation is a function T:VWT: V \to W between vector spaces satisfying two rules:

T(u+v)=T(u)+T(v)T(u + v) = T(u) + T(v)

T(cv)=cT(v)T(c \cdot v) = c \cdot T(v)


These two properties together say TT respects the linear combinations of vectors. Equivalently, TT maps lines through the origin to lines through the origin, and grids of parallelograms to grids of parallelograms.

For finite-dimensional spaces, every linear transformation is given by matrix multiplication. In R2\mathbb{R}^2, the matrix has the images T(i^)T(\hat{i}) and T(j^)T(\hat{j}) as its columns. That is the entire content of "linear": fix where the basis vectors go, and everything else is determined.

For deeper coverage of definitions and properties, see linear transformation theory, linear maps, and vector spaces.

Determinant: Area and Orientation

The determinant of a 2×22 \times 2 matrix has a direct geometric meaning: the signed area of the parallelogram spanned by its columns.

det[abcd]=adbc\det\begin{bmatrix} a & b \\ c & d \end{bmatrix} = ad - bc


Three cases:

&bull; $\det A > 0$ &mdash; orientation preserved. The unit square stays oriented counterclockwise after transformation. Area scales by detA\det A.
&bull; $\det A < 0$ &mdash; orientation reversed. The unit square becomes clockwise; the transformation includes a reflection somewhere.
&bull; $\det A = 0$ &mdash; the columns are linearly dependent. The parallelogram has zero area; the transformation collapses the plane to a line or a point.

In the visualizer this is encoded in color: purple fill for positive determinant, pink for negative, gray for singular. For more see determinant of a matrix, signed area, and orientation in linear algebra.

Eigenvalues, Rank, and Matrix Types

Two more invariants pin down the structure of any 2×22 \times 2 matrix: the eigenvalues and the rank.

Eigenvalues are the roots of the characteristic polynomial λ2tr(A)λ+det(A)=0\lambda^2 - \text{tr}(A)\lambda + \det(A) = 0. They tell you what scaling factors AA applies along its preserved directions. Real eigenvalues correspond to invariant lines visible as magenta dashed lines on the canvas. Complex eigenvalues come in conjugate pairs and indicate a rotational component with no real invariant line.

Rank is the dimension of the image: 2 for invertible matrices, 1 for matrices that collapse the plane to a line, 0 only for the zero matrix.

Together with the determinant, these classify the transformation:

&bull; Rotation &mdash; det=1\det = 1, complex eigenvalues on the unit circle.
&bull; Reflection &mdash; det=1\det = -1, eigenvalues +1+1 and 1-1.
&bull; Shear &mdash; det=1\det = 1, repeated real eigenvalue, only one independent eigenvector.
&bull; Scaling &mdash; diagonal, eigenvalues are the diagonal entries.
&bull; Projection &mdash; rank 1, eigenvalues 0 and (nonzero).

For comprehensive treatment see eigenvalues and eigenvectors, matrix rank, and characteristic polynomial.

Related Concepts

Matrix Multiplication &mdash; the operation that realizes any linear transformation: T(v)=AvT(v) = Av.

Determinant &mdash; signed area scaling factor and orientation indicator.

Eigenvalues and Eigenvectors &mdash; the invariant directions and scaling factors of AA.

Kernel and Image &mdash; what gets collapsed and what gets reached, especially visible for singular matrices.

Rank-Nullity Theorem &mdash; rank(A)+nullity(A)=2\text{rank}(A) + \text{nullity}(A) = 2 for any 2×22 \times 2 matrix.

Change of Basis &mdash; expressing AA in a different basis. In the eigenbasis, AA becomes diagonal.

Singular Value Decomposition &mdash; the unit circle morphs into an ellipse; the singular values are the lengths of the ellipse axes.

Rotation Matrices &mdash; the special case ATA=IA^T A = I with detA=1\det A = 1. Length-preserving rigid motions.