Linear transformations in this visualization
A linear transformation (also linear map) of the plane satisfies and for all vectors and every real number . Every such map is multiplication by a 2 × 2 matrix , and the columns of are the images of the basis vectors: and . This page shows maps from the plane to itself.
In the picture the two ink arrows are the columns; drag their tips and the whole grid follows, because every point is reached by the same recipe as before. The blue vector v is walked twice: x steps along î and y along ĵ on the original grid (dashed), and x steps along Aî and y along Aĵ on the new one (solid), ending at Av. Reading the same product by rows — each entry of is a row of dotted with — gives the same numbers. The origin never moves. A line maps to a line or a point. An invertible transformation preserves parallel lines and equal spacing along a line, while lengths and angles can change.
When but , the plane collapses to a line. A line through the origin is sent to the origin: this is the kernel. When , every point is sent to the origin, so the kernel is the whole plane. With Preimage, drag the output w to find where it came from. An invertible matrix gives one point ; a rank-one matrix gives a line if w lies on the image, and no preimage otherwise. For the zero matrix, the origin has the whole plane as its preimage; other points have none. Solving is exactly this search.
Things to notice
- Whether A is singular is decided exactly, from the numbers as you set them: a typed 1/3 is a third and 0.1 is a tenth, so flattens the plane, while a nearly singular matrix such as is shown with its true, very large inverse. Entries with no exact decimal (√2, a 30° turn) are decided on their rounded values and the readout says so; a matrix that is singular only because √2·√2 = 2 then reads as invertible, with a tiny determinant.
- The animation between two matrices is only a transition, one of many paths: a reflection passes through a flattened plane halfway, a turn by 180° does not shrink because turns are interpolated by angle. Nothing is read off during it.
Why a translation is not linear
Shift the whole grid 1 to the right and 0.5 up. Lines stay straight and parallel lines stay parallel, but the origin moves to (1, 0.5). A linear transformation must leave the zero vector at the origin: . This translation does not, so it is not linear. Fixing the origin alone is not enough: the addition and scaling rules above must also hold.
Controls
- The matrix can also be typed in its brackets (from −10 to 10; decimals, fractions, √ and π) or set by its column keys and the two wheels; dragged tips catch on whole numbers and on points exactly in line with the other column (Snap turns this off).
- Presentation mode opens a full-screen view for projectors: ← → step through the common matrices, H hides where vectors land.
Related
- F01Linear combinationPlanned
- F09Matrix multiplicationPlanned
- F11DeterminantPlanned
- F13EigenvectorPlanned
- F07BasisPlanned
- F03System of linear equationsPlanned
Further reading: Wikipedia: Linear map; Wikipedia: Transformation matrix.