Matrix Multiplication Interactive Demo: Random Matrices and Scaling

Matrix Multiplication Interactive Demo: Random Matrices and Scaling
Loading the math board and drawing, please wait…
2020-11-14 05:18
① This GeoGebra example provides an interactive demonstration of matrix multiplication, where users can enter or randomly generate matrix entries and observe the resulting product matrix in real time. ② The core mathematical concepts include matrix multiplication, its relation to linear transformations (particularly dilation/scaling), random number generation, limit ideas through adjustable sliders, and hypergeometric distribution as a probabilistic background. ③ Construction highlights: uses Random command to generate random matrix elements, Sequence to build matrix rows/columns, Textfield and inputBox series for editable inputs, and If for conditional logic; objects include matrices A, B, C, multiple text labels (text1 to text5), and nine input boxes (inputBox1 to inputBox9), with sliders (g, f) controlling parameters. ④ This is ideal for high school to early college students in linear algebra, helping them grasp the rules of matrix multiplication and its geometric interpretation as transformations, and can be used by teachers for classroom demonstrations.

GeoGebra Commands & Parameters

  1. Random(1, 3) → b
  2. Random(1, 3) → c
  3. Random(1, 3) → a
  4. Sequence(Sequence[Random[-2, 2], j, 1, b], i, 1, a) → A
  5. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → B
  6. Textfield(d) → inputBox2
  7. Textfield(e) → inputBox3
  8. Sequence(Sequence[Cell[j, i], j, 1, e], i, 1, d) → C
  9. If(C ≟ (A * B), 1, 2) → g
  10. If(C ≟ (A * B), 1, 2) → f
  11. Textfield(A1) → inputBox1
  12. Textfield(B1) → inputBox4
  13. Textfield(C1) → inputBox5
  14. Textfield(A2) → inputBox6
  15. Textfield(B2) → inputBox7
  16. Textfield(C2) → inputBox8
  17. Textfield(A3) → inputBox9
  18. Textfield(B3) → inputBox10
  19. Textfield(C3) → inputBox11
  20. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix1
  21. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix2
  22. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix3
  23. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix4
  24. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix5
  25. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix6
  26. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix7
  27. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix8
  28. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix9
  29. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix10
  30. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix11
  31. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix12
  32. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix13
  33. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix14
  34. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix15
  35. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix16
  36. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix17
  37. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix18
  38. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix19
  39. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix20
  40. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix21
  41. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix22
  42. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix23
  43. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix24
  44. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix25
  45. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix26
  46. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix27
  47. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix28
  48. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix29
  49. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix30
  50. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix31
  51. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → matrix32
  52. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → m1
  53. Sequence(Sequence[Random[-2, 2], j, 1, c], i, 1, b) → m2

AI Drawing Prompt Reference

Create an interactive graphic for demonstrating matrix multiplication: include two editable 3×1 input matrices (so their product matrix can be computed), and display the resulting 3×3 product matrix in a dedicated grid area. Add several text labels to present the current matrix-multiplication result. Include two slider-controlled parameters whose values can change based on a conditional comparison of the computed product with the displayed result. Initialize the matrix entries with random integers, allow the user to edit individual entries via the input boxes, and keep the product matrix updating in real time as inputs change.
The prompt above was compiled from the original drawing commands and is for reference only.