Matrix transform

Watch a 2 × 2 matrix move the whole grid: rotations, shears, stretches, reflections and squashes, with the determinant shown as the area scale and the sign as a flip. Do one transformation after another to see why AB ≠ BA, and solve a 3 × 3 system step by step with cofactors, the adjoint and A⁻¹ in exact fractions.

Keep it one tap away for everyday use.

Bookmark Matrix transform?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Matrix
  2. Morph
  3. det = area
  4. Solve
Nothing is uploadedWorks offline once open

Matrix A

[
]

Grey: the old grid. Blue: where the grid goes. Shaded: the unit square becomes a parallelogram. Arrows: where (1, 0) and (0, 1) land, which are the columns of A. The letter F shows if the picture is flipped.

Try this

  • Pick Rotation by θ and slide θ: the square turns but keeps its area, so det = 1.
  • Pick Reflection in the x-axis: the F is flipped and det = −1. A negative determinant means a mirror image.
  • Pick Squash onto the x-axis: the whole plane collapses onto a line, det = 0, and there is no inverse (you cannot undo a squash).
  • In One, then another, try a shear then a rotation, and then swap them: the results differ, because AB ≠ BA.

Check yourself

Fresh numbers every time. Type a number or a fraction such as 3/4; nothing is saved or sent.

    What it shows

    A 2 × 2 matrix is a machine that moves every point of the plane: the point (x, y) goes to (ax + by, cx + dy). Straight lines stay straight and the origin stays put, so the whole square grid turns into a grid of parallelograms. The page draws that: the grey grid is where you started, the blue grid is where the matrix sends it, and the shaded parallelogram is where the unit square lands.

    Two things fall out of the picture. The columns of the matrix are where (1, 0) and (0, 1) go (the two arrows). And the determinant ad − bc is how much every area is scaled; if it is negative, the picture is flipped like a mirror image (watch the letter F), and if it is 0, the plane is squashed onto a line and nothing can undo it, so there is no inverse.

    It follows matrices and determinants in Class 12 maths. For plain number crunching on bigger matrices, use the matrix calculator; the unit circle page explains the cos θ and sin θ inside a rotation matrix, and the argand plane shows multiplication by a complex number as the same kind of turn and stretch.

    How to use it

    1. 2 × 2 transform. Pick a preset (rotation by θ, shear, stretch, reflections, a squash, the identity) or type your own four numbers. Slide Morph from 0 % to 100 % to watch the grid move from where it was to where the matrix sends it.
    2. Read the facts: det A with the numbers filled in, the area scale, whether the picture is flipped, where (1, 0) and (0, 1) go, and the inverse matrix when there is one.
    3. One, then another. Choose A (done first) and B (done second). Orange shows the picture after A, blue after A and then B. The product that does both is BA, with the first one on the right; the facts also give AB so you can compare.
    4. Solve 3 × 3. Type the coefficients of x, y and z and the right-hand side of three equations. The steps give |A| by expanding along the first row, the cofactors, the adjoint, A⁻¹ in fractions and X = A⁻¹B, with a check. If |A| = 0, it says whether the system has no solution or infinitely many.

    Worked example

    The shear [2 1; 0 1] sends (1, 0) to (2, 0) and (0, 1) to (1, 1). Its determinant is 2 × 1 − 1 × 0 = 2, so the unit square becomes a parallelogram of area 2, and the F is not flipped. The inverse is (1/2)[1 −1; 0 2] = [0.5 −0.5; 0 1].

    For the system x + y + z = 6, 2y + 5z = −4, 2x + 5y − z = 27, |A| = −21 and adj A = [−27 6 3; 10 −3 −5; −4 −3 2]. Then (adj A)B = (−105, −63, 42), and dividing by −21 gives x = 5, y = 3, z = −2.

    Check yourself

    Five questions with fresh numbers: a 2 × 2 determinant, an area after a transformation, an entry of a product, an entry of an inverse and a 3 × 3 determinant. Nothing is saved.

    FAQ

    Why is the product BA and not AB? Matrices act on the vector to their right, so B(Ax) = (BA)x: A acts first.

    Why does det = 0 mean no inverse? The plane is squashed onto a line, so different points land on the same spot and you cannot tell where they came from.

    Is this from my textbook? It covers the standard school topics with its own examples. It is an independent study aid.

    Where the numbers come from

    • Standard linear algebra: matrices as linear maps of the plane, the determinant as signed area scale, composition as a product, minors, cofactors, the adjoint, the inverse A⁻¹ = adj A / |A| and consistency of AX = B. Written for fibub; no textbook text, figures or exercises are used, and the example systems are made up.
    • Checked against sympy 1.14: determinants, adjugates, inverses, ranks and solutions of four 3 × 3 systems (unique, none, many), and 2 × 2 products and inverses.

    Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

    Last updated 2026-11-09.

    Change log for Matrix transform

    1. Add #1189 Matrix as a transformation Details on GitHub

    Every change to fibub

    Related tools

    Matrix calculator #T371 Determinant, inverse, rank and row reduction with every step in exact fractions, solving A x = B, products and powers, eigenvalues and eigenvectors (complex ones too), and LU, QR, Cholesky and SVD decompositions. Checked against numpy and sympy. Unit circle #L86 Drag a point round the unit circle and watch sin, cos and tan drawn as waves. Angles in degrees and radians, exact values at 30°, 45° and 60°, the ASTC quadrant signs, sliders for y = a sin(bx + c) + d, and the inverse trig functions as the mirror image of the principal branch. Argand plane #L90 Drag two complex numbers z and w on the Argand plane and see z + w as a parallelogram, z × w as stretch-and-turn, the conjugate as a reflection, modulus, argument and polar form, powers of i as quarter turns, and the complex roots of a quadratic appearing when the parabola misses the x-axis. 3D vector lab #L93 Type two vectors in 3D and turn the picture round to see a + b, the dot product as the shadow of one vector on the other, and the cross product standing square to both with the parallelogram's area. Then put two lines in space and find the angle and the shortest distance between them, with the closest points marked. Tessellation studio #L129 Put triangles, squares, pentagons, hexagons and more around one point and see whether their corners close up to 360°, leave a gap or overlap. See a patch of the three shapes that tile alone, then draw a rangoli-style pattern that repeats round the centre with rotational and mirror symmetry. Quadratic explorer #L68 Slide a, b and c and watch the parabola move: vertex, roots and the discriminant update live, completing the square is drawn with tiles, and the middle term is split for you. With fresh practice questions.