What is the Matrix Transformation Visualizer?
Quick Answer: An interactive tool that applies a 2×2 matrix to vectors and shapes in real time. Adjust matrix entries to see how rotation, shear, scaling, reflection, and combinations affect the plane. The determinant is shown, representing the area scaling factor.
Theory of Linear Transformations
A 2×2 matrix [a b; c d] defines a linear transformation T: R² -> R² where T(x,y) = (a*x + b*y, c*x + d*y). The columns of the matrix are the images of the basis vectors i = (1,0) and j = (0,1). The determinant (ad - bc) gives the signed area scaling factor: a unit square becomes a parallelogram of area |det|. Transformations with det = 0 collapse the plane. This tool visualizes the grid, basis vectors, and the image of the unit circle (which becomes an ellipse). It's essential for linear algebra, JEE, and computer graphics.
Step-by-Step Examples
Example 1: Pure Rotation
- Set a=0, b=-1, c=1, d=0 (or use Rotate 90° preset). The grid rotates counter‑clockwise.
- The determinant remains 1, area preserved. The unit circle remains a circle.
- Adjust sliders to create a rotation of 45°: a=0.71, b=-0.71, c=0.71, d=0.71.
Example 2: Shear
- Press "Shear X" preset (a=1, b=1, c=0, d=1). Vertical lines slant while horizontal lines stay unchanged.
- Notice the determinant is 1, area unchanged, but the unit circle becomes an elongated ellipse.
Example 3: Scaling and Reflection
- Scale 2x (a=2, b=0, c=0, d=2): everything doubles. Determinant = 4.
- Reflect Y (a=-1, b=0, c=0, d=1): left-right mirror. Determinant = -1, indicating orientation reversal.
Frequently Asked Questions
What do the matrix entries a,b,c,d correspond to?
[[a, b], [c, d]] acts on (x,y) to give (a*x + b*y, c*x + d*y). Columns are where (1,0) and (0,1) move.
What does the determinant tell me?
det = ad - bc is the area scaling factor. If negative, orientation is flipped. If zero, the transformation collapses the plane to a line.
Why does the unit circle become an ellipse?
A linear transformation maps a circle to an ellipse (if det ≠ 0). The axes of the ellipse are the singular vectors.
How do I see eigenvalues?
Eigenvectors are directions unchanged up to scaling. If you find a vector that stays on the same line through the origin, it's an eigenvector. This visualizer doesn't compute them directly but you can observe such directions.
Can I animate a transformation?
You can manually drag sliders to see continuous deformation. For a smooth preset animation, we plan to add a "morph" feature in a future update.