Matrix × vector
About this app
How a 2×2 or 3×3 matrix deforms space — point clouds, grid distortion and basis vectors in split-screen (2D + 3D).
The idea
A matrix M describes a linear map: every vector v is sent to M·v. The columns of M are exactly the images of the basis vectors e₁, e₂ (and e₃), so once you know where the basis vectors land, you know the whole map. The absolute value of the determinant |det(M)| is the factor by which areas (2D) or volumes (3D) change. If det(M) = 0, space collapses to a lower dimension; if det(M) < 0, orientation is reversed.
What you see
The original set is on the left, its image under M on the right. In 2D you can pick a unit circle, unit square, grid or random points; in 3D a unit sphere, unit cube, filled box or random points, with 50 to 800 points. Arrows show the transformed basis vectors and a warped grid shows how the whole space is deformed. Colouring by angle lets you track where each point goes. det(M) is displayed live.
Things to try
Type your own matrix entries or load a standard matrix: rotation by 30°, 45°, 90° or 180°, scaling by 2 or ½, shear, reflection, projection or squeeze; in 3D rotations about the x, y and z axes, projection onto the xy plane and reflection in the yz plane. With a projection, watch det(M) drop to 0 as the circle flattens into a segment. A reflection makes det(M) negative. Rotate the 3D scene with mouse or touch.
Frequently asked questions
- What does multiplying a matrix by a vector mean geometrically?
- M·v is the image of v under the linear map described by M. Computationally it is a linear combination of the columns of M, weighted by the coordinates of v. Geometrically this can be a rotation, stretch, shear, reflection, projection or a combination of these.
- Why are the columns of a matrix the images of the basis vectors?
- Multiplying M by e₁ = (1, 0) leaves exactly the first column, and e₂ gives the second. Since every vector is a combination of basis vectors and the map is linear, these columns determine the entire map.
- What does the determinant tell you geometrically?
- |det(M)| is the factor by which the map scales areas in 2D or volumes in 3D. A negative sign means orientation is flipped, as with a reflection. If det(M) = 0 the matrix is singular and space is squashed onto a line, a plane or a point.
- What can I adjust in the Matrix × Vector app?
- You choose 2D or 3D, a point set with 50 to 800 points and a colouring mode. You type in the matrix entries yourself or load one of many standard matrices. Original and image appear side by side with the grid, the basis vectors and the determinant.
Subject: Linear algebra
More from Linear algebra
- Eigenvectors
- Gaussian elimination step by step
- Equations as scales
- Linear combination & linear independence (3D)
- Matrizen rechnen: Produkt, Inverse, Transponierte
- Matrices like numbers: identity, inverse, A·x = b
- Matrix multiplication
- Horse and rail: the dot product as work
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps