Visualizing Multiplication of Two Matrices

Visualizing Multiplication of Two Matrices
Loading the math board and drawing, please wait…
2021-01-20 15:37
This example demonstrates matrix multiplication geometrically by applying two linear transformations to a polygon (or a set of points). It shows that performing the first matrix transformation and then the second is equivalent to applying the matrix product once. The key concepts are matrix multiplication (including its non-commutativity), the relationship between matrices and linear geometric transformations, and how point coordinates change under matrix action—often producing effects such as rotation and scaling. Construction highlights: the setup uses Random to generate parameters or random configurations, LaTeX to label matrices/expressions, and Polygon to build the base and transformed shapes (e.g., poly1, poly2, poly4). A collection of labeled points (a, b, c, …) and text objects (text1, text2, A–R) represent vertices before and after transformations, while indexed point coordinates (such as c_2, d_1, e_1, f_1, g_1, h_1, i, j) encode how matrix entries combine to produce the final vertex locations corresponding to the product matrix. Suitable for high school through early university linear algebra, as a classroom demonstration or self-study tool for understanding how matrix products correspond to composition of transformations.

GeoGebra Commands & Parameters

  1. Random(-9, 9) → a
  2. Random(-9, 9) → b
  3. Random(-9, 9) → c
  4. Random(-9, 9) → d
  5. Random(-9, 9) → e
  6. Random(-9, 9) → f
  7. Random(-9, 9) → g
  8. Random(-9, 9) → h
  9. LaTeX(A, true, true) → text1
  10. LaTeX(B, true, true) → text2
  11. Polygon(C, D, E, F) → poly1, c_2, d_1, e_1, f_1
  12. Polygon(G, H, I, J) → poly2, g_1, h_1, i, j
  13. Polygon(O, P, Q, R) → poly4, o, p, q, r
  14. Polygon(S, T, U, V) → poly3, s, t, u, v
  15. LaTeX(AB, true, true) → text7

AI Drawing Prompt Reference

Draw a geometric illustration of matrix multiplication. Start with a random quadrilateral as the original shape. Apply a first linear transformation to get a second quadrilateral, then apply a second transformation to get a third. Separately, apply the product of the two matrices directly to the original to get a fourth quadrilateral, which should coincide with the third. Label vertices with letters and annotate the matrices and their product using mathematical notation, showing that the composition of transformations equals the product matrix.
The prompt above was compiled from the original drawing commands and is for reference only.