Plane transformations

Type a 2 × 2 matrix and watch how it deforms the grid: the columns are the images of e₁ and e₂, the determinant is the area of the unit square (with its sign), the eigenvectors are the directions that do not turn, and when det = 0 the kernel and the image appear. Also diagonalisation in three moves, powers and quadratic forms. It runs in your browser, on your phone too.

How to use it

  1. Start with «Rotating the photo»: the rotate 90° filter of the photo app, with the columns of A, the area and the question of whether any direction escapes.
  2. Then the mixing filter (two lines that do not turn), the mirror (a negative determinant), the shear (not diagonalisable), the squashing filter (kernel and image), diagonalisation with powers and the two quadratic forms of the skatepark: the bowl and the saddle.
  3. In the eigenvector steps, drag the test arrow (or move it with the arrow keys): it only stops turning on top of the dashed lines.
  4. In «Your matrix» type the four numbers (integers, decimals or fractions such as -1/2) or pick one of the examples, and press «See the transformation». The simulator decides what to show: the kernel if det = 0, diagonalisation if possible and the quadratic form if the matrix is symmetric.
  5. Press «Explain it slowly» on any step to see the MATLAB command piece by piece and what to write in the exam.

What it draws

The grey grid is the usual one and the violet one is its image under A. The coral arrow is e₁ and the violet one, e₂: after applying A they end up as the two columns of the matrix. The unit square becomes a parallelogram with area |det(A)|, violet with a dashed edge if det(A) is negative, because the shape flips over. The dashed lines are the eigenvectors (with their λ beside them), and in the quadratic forms each point is coloured by the value of xᵗAx, with the curve xᵗAx = 1 and its axes. At the top, the strip shows each step’s MATLAB command with its result: det(A), eig(A), null(A, 'r') or A^2.

The rules it follows

  • It writes the eigenvalues smallest first and each eigenvector with the smallest possible whole numbers, as in class; MATLAB gives them normalised to length 1, which is the same direction.
  • The matrix P has the eigenvectors as columns in the same order as their eigenvalues in D. If you change the order, the order on the diagonal of D changes too, and both answers are correct.
  • The animation goes from the identity to A little by little (rotations really rotate), so you can see which directions stay on their line the whole way.

For the exam

In the exam the matrices are 3 × 3 and there is no picture, but the ideas are these: the determinant tells you whether there is an inverse, eigenvectors come from (A − λI)·v = 0 and diagonalising needs as many independent eigenvectors as the dimension. The challenge below gives you new determinants, eigenvalues and quadratic forms to classify every time.