Controls
Ready-made transformation
Readings
- Matrix [[a, b], [c, d]]
- [[2, 1], [0.5, 1.5]]
- Where î lands (column 1)
- (2, 0.5)
- Where ĵ lands (column 2)
- (1, 1.5)
- Determinant ad − bc (signed area)
- 2.5
- Orientation
- kept
- Inverse matrix
- [[0.6, -0.4], [-0.2, 0.8]]
How to use this simulation
- The matrix [[a, b], [c, d]] has four sliders, one per entry. At the start it is [[2, 1], [0.5, 1.5]]. The pale grid is the original plane; the blue grid is the same plane after the matrix has acted on it. The play button repeats the glide from the identity to the matrix.
- The yellow square is the unit square, with corners (0, 0), (1, 0), (1, 1), (0, 1). The small purple “F” sits inside it. An F is useful because its mirror image is easy to spot.
- The green arrow is î (the arrow (1, 0)) after the transformation, and the purple arrow is ĵ (the arrow (0, 1)). They land at the columns of the matrix: here î goes to (2, 0.5) and ĵ to (1, 1.5).
- Pick a ready-made transformation: rotation (use the angle slider), reflections, shear, scale, or a squash with determinant 0. Moving any entry slider switches to your own custom matrix.
- The number written on the square is the determinant, the signed area of the transformed unit square. Here it is 2.5. When it goes negative the square turns red and the F becomes a mirror image.
- The readings give the inverse matrix whenever one exists. If the determinant is 0 the square is flattened onto a line, and the inverse is “none”.
A matrix is a machine for points
Take a point (x, y). A 2×2 matrix [[a, b], [c, d]] turns it into a new point (ax + by, cx + dy). That is all multiplication by a matrix means: a recipe that mixes x and y in a fixed way.
Now do it to every point at once. The grid lines stay straight, parallel lines stay parallel, and the origin stays put. These are the “linear” transformations. Anything fancier, like bending a line into a curve, is not a matrix job.
[[a, b], [c, d]] · (x, y) = (ax + by, cx + dy)the image of a point
The two columns tell you everything
Every point (x, y) is x steps along î and y steps along ĵ. A linear transformation keeps that recipe: it only moves î and ĵ, and everything else follows. So to know the whole transformation, just ask where î = (1, 0) and ĵ = (0, 1) land.
Put (1, 0) into the matrix and you get (a, c), the first column. Put in (0, 1) and you get (b, d), the second column. In the simulation the starting matrix [[2, 1], [0.5, 1.5]] sends î to (2, 0.5) and ĵ to (1, 1.5). Those are exactly the green and purple arrows.
This is the best way to build a matrix from a picture. Want a transformation that sends î up to (0, 1) and ĵ to (−1, 0)? Write those two arrows as columns: [[0, −1], [1, 0]]. That one is a 90° turn.
The standard transformations
A handful of matrices do almost all the work in exams and in graphics. The table lists seven of them with their determinants. Rotation by 90° anticlockwise comes first.
- Rotation by θ anticlockwise: [[cos θ, −sin θ], [sin θ, cos θ]]. Lengths and angles do not change.
- Reflection in the x axis flips the sign of y. Reflection in the y axis flips x. Reflection in the line y = x swaps x and y.
- Shear [[1, k], [0, 1]] slides each row sideways in proportion to its height. The x axis stays; the y axis leans.
- Scale [[p, 0], [0, q]] stretches by p along x and by q along y.
- The last row is a squash: the columns point the same way, so the whole plane lands on one line.
| Transformation | Matrix | Determinant |
|---|---|---|
| Rotation 90° | [[0, -1], [1, 0]] | 1 |
| Reflect in x axis | [[1, 0], [0, -1]] | -1 |
| Reflect in y axis | [[-1, 0], [0, 1]] | -1 |
| Reflect in y = x | [[0, 1], [1, 0]] | -1 |
| Shear | [[1, 1], [0, 1]] | 1 |
| Scale (2, 1.5) | [[2, 0], [0, 1.5]] | 3 |
| Squash | [[1, 2], [0.5, 1]] | 0 |
The determinant: signed area
The unit square has area 1. After the transformation it becomes a parallelogram with sides (2, 0.5) and (1, 1.5). Its area is the determinant ad − bc. For the starting matrix that is 2.5, so every shape on the plane grows to 2.5 times its old area.
The determinant works for every shape, not just the unit square. A matrix with determinant 3 triples every area, a circle’s or a cat’s. A determinant of 0.5 halves it.
The sign carries extra news. If the determinant is negative, the transformation has flipped the plane over like a sheet of paper. A clockwise F becomes an anticlockwise one. That is the mirror image you see in the simulation, and the reason the square turns red.
det [[a, b], [c, d]] = ad − bcsigned area of the image of the unit square
new area = |det| × old areafor any shape
- Positive: orientation kept. Bigger than 1 stretches areas, between 0 and 1 shrinks them.
- Negative: orientation flipped, and areas scale by the size without the sign.
- Zero: everything is squashed onto a line (or a point). Area is lost, and nothing can undo it.
| Determinant | What happens |
|---|---|
| 2 | areas double, orientation kept |
| 1 | areas unchanged, orientation kept |
| 0.5 | areas halve, orientation kept |
| 0 | everything squashed onto a line |
| -1 | areas unchanged, plane flipped |
| -2 | areas double, plane flipped |
The inverse: running the machine backwards
The inverse matrix undoes the transformation. If A takes a point to a new place, A⁻¹ takes it back. For a 2×2 matrix the recipe is short: swap a and d, flip the signs of b and c, then divide everything by the determinant.
That division is why a determinant of 0 kills the inverse. Take the starting matrix [[2, 1], [0.5, 1.5]] with determinant 2.5: its inverse is [[0.6, -0.4], [-0.2, 0.8]]. You can read this off the readings panel.
Think about it as pictures too. If the transformation squashes the whole plane onto a line, many different points land on the same spot. Going backwards would need to choose among them, so there is no way to undo it.
A⁻¹ = (1 / (ad − bc)) · [[d, −b], [−c, a]]exists only when ad − bc ≠ 0
Doing two transformations: order matters
To do transformation Q first and then P, multiply the matrices as P·Q, with the first one to act written on the right. That feels backwards, but it matches how we write functions: P(Q(x)).
Matrix multiplication is not commutative. Rotating and then reflecting does not give the same result as reflecting and then rotating. Problem 5 below shows it with real numbers.
The determinant behaves nicely, though: det(PQ) = det(P) × det(Q). Two area scalings simply multiply.
Try it in the simulation
Six quick experiments, a minute each.
- Press “Identity”. Nothing moves, the determinant is 1.
- Press “Rotation” and slide the angle. The grid turns rigidly and the determinant stays at 1 the whole time.
- Press “Reflect in x axis”. The F flips upside down and the square goes red: determinant −1.
- Press “Shear”. The unit square leans into a parallelogram with the same area, determinant 1.
- Press “Scale” and compare the determinant with the product of the two stretch factors.
- Press “Squash”. The determinant is 0, the grid collapses onto a line, and the readings say there is no inverse.
Solved problems
Six common questions. Every number below is computed with the same functions as the simulation.
Problem 1: where does a point go?
Let A = [[2, 1], [0, 3]]. Find the image of (3, 2).
Multiply: the first coordinate is 2·3 + 1·2 = 8, the second is 0·3 + 3·2 = 6. The image is (8, 6). As a check, î goes to (2, 0) and ĵ to (1, 3), and 3 of the first plus 2 of the second gives the same answer.
Problem 2: rotations
The matrix for 90° anticlockwise is [[0, -1], [1, 0]]. It sends (2, 1) to (-1, 2).
For 45° the entries are cos 45° and sin 45°, about 0.71: [[0.71, -0.71], [0.71, 0.71]]. It sends î to (0.71, 0.71) and ĵ to (-0.71, 0.71). Both arrows turned by 45° and kept their length 1.
Problem 3: how areas change
A = [[3, 1], [2, 2]] has determinant 3·2 − 1·2 = 4. A triangle with corners (0, 0), (2, 0), (0, 2) has area 2.
Its corners move to (0, 0), (6, 4) and (2, 4), and the area of the new triangle is 8. That is 4 times bigger, exactly as the determinant says.
Problem 4: the inverse
Find the inverse of A = [[2, 1], [1, 3]]. The determinant is 2·3 − 1·1 = 5. Swap the diagonal and flip the other signs to get [[3, -1], [-1, 2]], then divide by 5: A⁻¹ = [[0.6, -0.2], [-0.2, 0.4]].
Check: A · A⁻¹ = [[1, 0], [0, 1]], the identity. And which point does A send to (7, 7)? Apply the inverse: (2.8, 1.4).
Problem 5: order matters
Let R be the 90° rotation and F the reflection in the x axis. Reflect first, then rotate: R·F = [[0, 1], [1, 0]]. Rotate first, then reflect: F·R = [[0, -1], [-1, 0]]. The two matrices are different.
See it on the point (1, 2). R·F sends it to (2, 1), but F·R sends it to (-2, -1).
Problem 6: a matrix with no inverse
B = [[1, 2], [2, 4]] has determinant 1·4 − 2·2 = 0. Its columns are (1, 2) and (2, 4), which point the same way, so the whole plane lands on the line y = 2x.
Different points collapse together: B sends (2, −1) to (0, 0). A whole line of points goes to the origin, so no inverse exists.
Mistakes to avoid
These cost marks again and again.
- Reading the columns as rows. The first column is where î goes, not the first row.
- Multiplying in the wrong order. PQ means Q first, then P, and PQ is usually not QP.
- Forgetting to divide by the determinant when finding the inverse.
- Writing ad + bc instead of ad − bc.
- Saying a negative determinant means “negative area”. Area is positive; the sign records the flip.
- Looking for the inverse of a matrix whose determinant is 0.
Where matrices are used
Every game and animation moves its characters with matrices: turn, flip, stretch, repeat. Photo apps use shear and scale matrices to fix a tilted picture. The same maths, in more dimensions, runs 3D graphics and robot arms.
In data science a matrix transformation is how a model mixes its inputs, and determinants show up in solving simultaneous equations, in the area of a region and in how a change of variable rescales an integral.
Exam corner
For HSC higher maths and admission tests, remember these.
- Image of a point: multiply the matrix by the column (x, y).
- Columns of the matrix are the images of î and ĵ. Use this to write a matrix from a description.
- det = ad − bc. Singular means det = 0, with no inverse.
- Inverse of a 2×2: swap a and d, negate b and c, divide by det.
- Area scale factor is |det|; a negative det flips orientation.
Frequently asked questions
What does a 2×2 matrix do to the plane?
It moves every point to a new place by a fixed linear rule. Grid lines stay straight and parallel, and the origin stays put. The plane can rotate, reflect, shear, stretch or be flattened.
What does the determinant of a 2×2 matrix mean?
It is the signed area of the image of the unit square, equal to ad − bc. Its size tells you how much areas are scaled, and its sign tells you whether the plane was flipped.
Why is the determinant of a rotation matrix 1?
A rotation turns the plane without stretching or flipping, so areas and orientation are kept. Algebraically, cos²θ + sin²θ = 1.
When does a 2×2 matrix have no inverse?
When its determinant is 0. The matrix then squashes the plane onto a line, so different points land in the same place and the process cannot be reversed.
How do I find the matrix of a transformation?
Work out where î = (1, 0) and ĵ = (0, 1) land, then write those two images as the first and second columns.
Is PQ the same as QP for matrices?
Not usually. PQ means do Q first and then P. Swapping the order generally gives a different transformation, as the rotate-then-reflect example shows.
Keep studying this topic
The animation made the idea click; now turn it into marks. Syllabus, suggestions, textbooks and admission-test guides are below.
HSC
HSC Higher Mathematics: syllabus and preparation
Textbook
Class 9-10 Higher Mathematics textbook
Admission
Engineering admission test preparation
SSC
SSC Mathematics: syllabus and preparation
SSC
SSC Higher Mathematics: syllabus and preparation
Textbook
Class 9-10 Mathematics textbook
Admission
Jahangirnagar University mathematical and physical sciences unit
English
Paragraph: Artificial Intelligence
Bangla
রচনা: কৃত্রিম বুদ্ধিমত্তা (in Bangla)
SSC
SSC suggestions
HSC
HSC suggestions
Admission
University admission guide
SSC
SSC syllabus
HSC
HSC syllabus
Test prep
GRE Quantitative Reasoning guide
Test prep
Digital SAT Math guide
Scholarship
Scholarships to study abroad
Tool
Compound interest calculator
Career
Data scientist resume example
Career
Cover letter examples
More math animations
Grade 8–10
Pythagorean Theorem
The Pythagorean theorem explained: formula a² + b² = c², two proofs you can watch, the converse, Pythagorean triples and 10 worked examples. Drag the triangle yourself.
Grade 10–11
Trigonometric Ratios and the Unit Circle
Drag a point round the unit circle and watch sin, cos and tan change. Standard angle table, ASTC signs, identities, radians and graphs, with solved examples.
Grade 9–11
Quadratic functions and their graphs
Drag the vertex and change a, b, c to see how a quadratic function graph moves. Learn factoring, completing the square, the quadratic formula and discriminant.
Grade 9–10
Circle theorems
All the circle theorems with drag-and-check diagrams: angle at the centre, same segment, semicircle, cyclic quadrilateral, chords, tangents and alternate segment.
Grade 9–10
Heights and distances: elevation and depression angles
What angle of elevation and angle of depression mean, how the height-and-distance formula works, and how two observations solve a tower's height without ever measuring it — with an interactive simulation and solved problems.
Grade 9–11
Probability: experimental vs theoretical probability
What probability means, how the sample-space formula P(E) = n(E)/n(S) works, and why experimental frequency edges closer to theoretical probability the more you flip, roll or draw — with a coin, dice and coloured-ball simulator.
Grade 10–11
Arithmetic and Geometric Sequences
Learn the arithmetic and geometric sequence formulas for the nth term and sum, Gauss's pairing trick, and the sum-to-infinity formula a/(1−r), with a drag-and-slide bar-chart simulation and worked examples.
Grade 9–10
Mean, Median and Mode
Learn the mean, median and mode formulas, why the median resists an outlier while the mean does not, and the grouped-data median/mode formulas, by dragging points on a number line, with worked examples.
Grade 7–11
Sets and Venn Diagrams
Shade union, intersection, difference and complement on a live Venn diagram, drop numbers into regions, check n(A ∪ B) and test De Morgan’s laws, with solved problems.
Grade 8–10
Linear equations: graphs, slope and simultaneous pairs
See slope, intercepts and angle on a straight line, then graph two linear equations to find where they meet. Learn the ratio test for one, none or infinite solutions.
Grade 10–12
Graphs of sin, cos and tan
Plot y = A sin(Bx + C) + D with sliders: see amplitude, period, phase shift, range and the asymptotes of tan live. Trigonometric graphs with solved examples.
Grade 9–10
Completing the Square and the Quadratic Formula
Watch algebra tiles complete the square, then solve quadratic equations, find the vertex and see why the formula works. Free interactive simulation with solved examples.
Grade 7–10
Area of a Circle: Proof, Formula and Solved Problems
Cut a circle into slices, slide them into a rectangle and watch the area become πr². Free interactive simulation with circumference, pi, sectors, arcs and solved problems.
Grade 8–10
Volume and Surface Area of Solids: Cube, Cuboid, Cylinder, Cone, Sphere
Rotate six solids in 3D, unfold their nets and pour a cone into a cylinder to see why it takes exactly three. Free simulation with volume, CSA and TSA formulas and solved problems.
Grade 8–10
Similar Triangles: Scale Factor, AA, SSS, SAS and Shadow Heights
Scale a triangle with a slider and watch angles stay equal, side ratios stay k and area grow by k². Free interactive similar triangles simulation with AA, SSS, SAS tests and shadow problems.
Grade 9–11
Coordinate Geometry: Distance, Midpoint, Slope, Section Formula and Locus
Drag points on a grid and watch the distance formula, midpoint, slope and section formula update live. Free coordinate geometry simulation with the perpendicular-bisector locus and solved problems.
Grade 11–12
Conic Sections: Circle, Ellipse, Parabola and Hyperbola
Tilt a plane through a double cone and watch a circle, ellipse, parabola or hyperbola appear, with its standard equation, foci and eccentricity. Free conic sections simulation with solved problems.
Grade 9–11
Function Transformations: Shifts, Stretches and Reflections
Pick x², |x|, √x, sin x or 2^x and drag sliders for a, b, h and k. Watch shifts, stretches, squeezes and reflections move the graph, with the parent faded behind. Free simulation with solved problems.
Grade 11–12
Derivative as the Slope of a Tangent: Secant to Tangent
Drag a point P on x², x³, sin x, eˣ or 1/x and shrink the gap h to zero. Watch the secant become the tangent and its slope become the derivative, with the derivative graph below. Free simulation.
Grade 11–12
Riemann Sums and Integration: Area Under a Curve
Cut the area under x², x³, sin x, eˣ or √x into up to 100 strips and compare left, right, midpoint and trapezoid sums with the exact integral. Watch the error melt away. Free simulation.
Grade 11–12
Limits and the ε–δ Definition: A Visual Guide
See the epsilon-delta definition of a limit. Pick a function, shrink ε and watch the δ band follow it, with left and right limits, a hole, sin x / x and a jump where no δ works. Free simulation.
Grade 11–12
3D Vectors: Sum, Dot Product and Cross Product
Drag to rotate two 3D vectors. See the sum as a parallelogram, the dot product as a shadow and an angle, and the cross product as a perpendicular arrow whose length is the area. Free simulation.
Grade 11–12
Complex Numbers: Sum, Product, Powers and Roots on the Argand Plane
Drag two complex numbers on the Argand plane. See the sum as a parallelogram, the product as a rotation and stretch, conjugates, powers as a spiral and roots of unity. Free simulation.
Grade 9–12
Binary Number System: Place Value, Conversion and Addition
Flip bits and see decimal, binary, octal and hex change together. Watch conversion by repeated division by 2, regrouping into octal and hex, and binary addition with carries. Free, with worked examples.
Animations in other subjects
Physics
Refraction of light
Physics
Ohm's law
Physics
Projectile motion
Physics
Simple pendulum
Physics
Electric field
Physics
Wave interference
Physics
Free Fall
Physics
Lens ray diagrams
Physics
Newton's Laws of Motion
Physics
Spherical mirror ray diagrams
Physics
Electromagnetic Induction
Physics
Conservation of Momentum and Collisions
Physics
Work, Energy and Power
Physics
Inclined Plane
Physics
Uniform circular motion
Physics
Transverse and Longitudinal Waves
Physics
Levers and moments
Physics
Centre of mass
Physics
Spring-mass SHM
Physics
Vector addition: triangle and parallelogram laws
Physics
Relative velocity: trains and river crossing
Physics
Kepler's laws and elliptical orbits
Physics
Newton’s law of gravitation, g and satellites
Physics
Standing waves in strings and pipes
Physics
Resonance tube and the speed of sound
Physics
Beats: when two close notes pulse
Physics
Doppler effect: moving sources, listeners and sonic booms
Physics
Prism, dispersion of light and the rainbow
Physics
Kirchhoff’s laws: junction rule and loop rule
Physics
Wheatstone bridge and metre bridge
Physics
Single-slit diffraction
Physics
Defects of the human eye and their correction
Physics
Polarisation of light: Malus’s law and Brewster’s law
Physics
Charging and discharging a capacitor: the RC time constant
Physics
Magnetic field lines: bar magnet, current-carrying wire and solenoid
Physics
AC generator
Physics
Transformer
Physics
Heat transfer: conduction, convection and radiation
Physics
Photoelectric effect: Einstein’s equation and the stopping potential
Physics
Motor effect: force on a current-carrying wire and the DC motor
Physics
Gas molecules and kinetic theory: pressure, temperature and speed
Physics
The semiconductor diode: p–n junction, I–V curve and rectifier
Physics
Radioactive decay: half-life, the decay law and penetration
Physics
The Bohr atom: orbits, energy levels and the hydrogen spectrum
Chemistry
Structure of the atom
Chemistry
Acids, Bases and the pH Scale
Chemistry
Electron configuration
Chemistry
Gas laws: Boyle, Charles, Gay-Lussac, Avogadro and PV = nRT
Chemistry
How an Ionic Bond Forms
Chemistry
Electrolysis and Faraday’s Laws
Chemistry
Covalent Bond
Chemistry
Periodic Trends
Chemistry
Reaction rate and collision theory
Chemistry
States of matter: solid, liquid, gas and the heating curve
Chemistry
Atomic orbitals: the shapes of s, p and d, quantum numbers and nodes
Chemistry
Molecular shapes and VSEPR theory: bond pairs, lone pairs and angles
Chemistry
The mole concept: molar mass, Avogadro’s number and molar volume
Chemistry
Diffusion and effusion: Graham’s law of gases
Chemistry
Balancing chemical equations: method, examples and practice
Chemistry
Chemical equilibrium: the equilibrium constant Kc and Le Chatelier’s principle
Chemistry
Titration: finding an unknown concentration with a burette and an indicator
Chemistry
Galvanic cell: the Daniell cell, EMF and the Nernst equation
Chemistry
Redox reactions: oxidation numbers, electron transfer and half-equations
Chemistry
Hydrocarbons: alkanes, alkenes, alkynes and structural isomers in 3D
Chemistry
Functional groups: alcohols, aldehydes, ketones, acids, esters and amines
Chemistry
Polymerisation: addition and condensation polymers, polythene and nylon
Chemistry
Separation techniques: filtration, distillation, chromatography, crystallisation
Chemistry
Crystal lattice: SC, BCC and FCC unit cells, packing efficiency and density
Chemistry
Radioactivity: Alpha, Beta, Gamma Decay and Half-Life
Biology
Mitosis cell division
Biology
Diffusion and Osmosis
Biology
Photosynthesis
Biology
The human heart: structure and function
Biology
Mendelian Genetics
Biology
DNA Replication
Biology
Cellular Respiration
Biology
Enzyme Action
Biology
The Nerve Impulse and the Action Potential
Biology
The Nephron and Urine Formation
Biology
Meiosis Cell Division
Biology
Digestive System
Biology
Breathing Mechanism: Inhalation and Exhalation
Biology
Protein synthesis
Biology
Blood circulation: double circulation and cardiac output
Biology
Cell structure and organelles: plant cell vs animal cell
Biology
Reflex action and the reflex arc
Biology
The human eye: parts, image formation and accommodation
Biology
Muscle contraction and the sliding-filament model
Biology
Transport in plants: xylem, phloem and transpiration
Biology
Food chain and food web: energy flow and the 10 % rule
Biology
Population growth: exponential and logistic curves
Biology
Natural selection: peppered moths and the sooty tree
Biology
Immune response: primary and secondary antibody response
Biology






















