2x2 Matrix Transformation Calculator: Determinant, Eigenvalues, Inverse, Rotation, Shear and Projection
See what a 2 by 2 matrix does to the plane, and find its key numbers.
Engineering student calculators
Free textbook calculators with every step shown, so you can check your own working. Pick one, type in your numbers and see the formulas worked out. Or switch to Ask a question for an explained answer. No account needed.
Calculated from standard textbook formulas, with every step shown. The formulas are fixed, so the working does not need checking: what matters is the numbers you type in. Use these calculators only if you are competent to choose the inputs (loads, material strength, dimensions, supports) and check your units and assumptions. For learning and checking your own working: design and sign-off are for a qualified engineer. Drafting Central does not store the numbers you type.
How this calculator works
Enter the four numbers of the matrix and a point to move.
The calculator finds the determinant (the area scale), the trace, the eigenvalues and unit eigenvectors, the inverse, and where the matrix sends your point.
It tests whether the matrix is a rotation (and gives the angle), a reflection, a shear, a projection or a scaling.
Formulas used
- \det A = ad - bc
- \lambda = \frac{\mathrm{tr}A\pm\sqrt{\mathrm{tr}^2A - 4\det A}}{2}
- A^{-1} = \frac{1}{\det A}\begin{bmatrix}d & -b\\-c & a\end{bmatrix}
- R^TR = I,\ \det R = 1
Worked example
With the default numbers in the calculator above:
- Determinant: 0.33
- What the determinant does to area: Areas are multiplied by 0.33, and the orientation is kept
- Trace: 1.72
- Eigenvalues: the factors by which the matrix stretches along its special directions: 1.50 and 0.22
- Eigenvectors (unit length): the directions that are only stretched: (1.0000, 0.0000) for 1.50 and (0.3317, -0.9434) for 0.22
- Inverse matrix (it undoes the transformation): [0.67, -1.36; 0.00, 4.55]
- Where the matrix sends the point you gave: (1.95, 0.22)
- What kind of transformation it is: A general linear transformation (a mix of stretching, turning and shearing)
Change the numbers in the calculator to see the full working, every step, for your own case.
A second worked example
A different case, with these numbers: Row 1, column 1 0.99; Row 1, column 2 0.26; Row 2, column 1 0.26; Row 2, column 2 0.69.
- Determinant: 0.62
- What the determinant does to area: Areas are multiplied by 0.62, and the orientation is kept
- Trace: 1.68
- Eigenvalues: the factors by which the matrix stretches along its special directions: 1.14 and 0.54
- Eigenvectors (unit length): the directions that are only stretched: (0.8659, 0.5001) for 1.14 and (0.5001, -0.8659) for 0.54
- Inverse matrix (it undoes the transformation): [1.12, -0.42; -0.42, 1.61]
- Where the matrix sends the point you gave: (1.25, 0.95)
- What kind of transformation it is: A general linear transformation (a mix of stretching, turning and shearing)
Common questions
What does the determinant mean?
The factor by which the matrix scales areas. A negative value means the plane is flipped over, and zero means it is flattened onto a line.
What is an eigenvector?
A direction that the matrix only stretches, by the eigenvalue, without turning it.
How do I know it is a rotation?
Its transpose is its inverse and the determinant is 1. The angle is the inverse tangent of c over a.
What is a projection?
A matrix with P squared equal to P. It drops every point onto a line, and it has no inverse.
Related calculators
Got a question about this? Ask an engineering question and get a plain-language answer with references.
Further reading: Strang, Linear Algebra and Its Applications; Kreyszig, Advanced Engineering Mathematics (linear algebra).
Need a calculator we do not have?
Embed this calculator on your own page
Copy this code into your page. The calculator runs inside the frame and links back to Drafting Central.
Need this drawn, designed or checked?
Drafting Central is a mechanical engineering and drafting business working with customers across Australia and around the world. A calculator gives you the numbers; we can turn them into drawings and designs.
Need help with a real project?
Talk to Drafting Central →