Graphing Sine & Cosine Functions: Amplitude, Period, Vertical Shift Changes Only

Graphing Sine & Cosine Functions: Amplitude, Period, Vertical Shift Changes Only
Loading the math board and drawing, please wait…
2021-10-09 03:43
This example demonstrates how to plot sine and cosine functions, focusing on changes in amplitude, period, and vertical shift. Key mathematical concepts include trigonometric function properties, image transformations, and parameter adjustments. Construction involves GeoGebra commands like FitSin, Sequence, and RandomElement, along with points, text fields, and input boxes for interactive adjustments. Suitable for middle or high school mathematics learners to understand dynamic changes in trigonometric function graphs.

GeoGebra Commands & Parameters

  1. Textfield(start) → InputBox1
  2. Textfield(end) → InputBox2
  3. Textfield(k1) → InputBox3
  4. Textfield(k2) → InputBox4
  5. Textfield(k3) → InputBox5
  6. Point(eq6) → A
  7. Point(eq7) → B
  8. Point(eq8) → C
  9. Point(eq9) → D
  10. Textfield(a) → InputBox6
  11. Textfield(b) → InputBox7
  12. Point(eq10) → E
  13. Point(eq7) → F
  14. FitSin({A, C, D, E, F}) → f
  15. Sequence(i, i, -6, -0.5, 0.5) → ampLeftList, {-6, -5.5, -5, -4.5, -4, -3.5, -3, -2.5, -2, -1.5, -1, -0.5}
  16. Sequence(i, i, 0.5, 6, 0.5) → ampRightList, {0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6}
  17. Union(ampLeftList, ampRightList) → ampList
  18. RandomElement(ampList) → amp
  19. RandomElement(Sequence[i, i, -8, 8, 0.5]) → dval
  20. RandomElement({1, 2, 3, 4, 5}) → bnum
  21. RandomElement({1, 2, 3, 4, 5}) → bdenom
  22. RandomElement({1, 2, 3, 4, 5}) → cnum
  23. RandomElement({1, 2, 3, 4, 5}) → cdenom
  24. Random(1, 2) → cc
  25. If(cc ≟ 1, (amp * sin(((bnum / bdenom * π) * x))) + dval, (amp * cos(((bnum * π / bdenom) * x))) + dval) → p

AI Drawing Prompt Reference

Draw a dynamic graph of a sine or cosine function with adjustable amplitude, period, and vertical shift. The main curve is generated by fitting through several key points placed on the coordinate plane. Multiple input boxes are provided to set start and end values, along with three parameters. The amplitude is randomly chosen from a set of nonzero values, the vertical shift is random between -8 and 8, and the period is determined by a random ratio of integers. The function randomly switches between sine and cosine. The graph illustrates how trigonometric functions change with parameters, suitable for educational demonstration.
The prompt above was compiled from the original drawing commands and is for reference only.