Graph of cos(x) with Dynamic Construction

Graph of cos(x) with Dynamic Construction
Loading the math board and drawing, please wait…
2013-10-07 03:24
This GeoGebra example demonstrates the graph of the cosine function y = cos(x) through an interactive dynamic construction. It visually links the unit circle, trigonometric lines, and the periodic wave of cosine. Core mathematical concepts include the definition of trigonometric functions, periodicity, transformations of graphs, and the correspondence between angles and coordinates on the unit circle. The construction uses commands such as Circle, Ray, Line, Sequence, PolyLine, CircleArc, Locus, Segment, CurveCartesian, Rotate, Polygon, and If. Key objects include a slider for angle animation, points on the unit circle, and a locus tracing the cosine curve. Suitable for high school and early college students learning trigonometry, as well as for teachers demonstrating the relationship between geometric angles and function graphs. The interactive sliders allow exploration of how the angle affects the cosine value and the shape of the graph.

GeoGebra Commands & Parameters

  1. Circle(A, 1) → c
  2. Ray(O, O + u) → a
  3. Line(O, O + v) → b
  4. Sequence(Segment[O + k * π * u, O + k * π * u - 0.1 * v], k, 1, 6) → ticksX
  5. Sequence(Text["\rotatebox{" + t + "}{" + (k) + "\pi}", O + k * π * u - 0.1 * v, true, true], k, 1, 6) → ticksXLabel
  6. Sequence(Segment[O + k * v, O + k * v - 0.1 * u], k, -6, 6) → ticksY
  7. Sequence(Segment[A, A + (1; t° + (k * 90)°)], k, 0, 3) → list1
  8. PolyLine(O + v, O + 2 * π * u + v, O + 2 * π * u - v, O - v, O + v) → d
  9. Sequence(Segment[O + k * π * u / 2 + v, O + k * π * u / 2 - v], k, 1, 3) → list3
  10. CircleArc(A, B, C) → e
  11. Locus(Q, s) → loc1
  12. Segment(P, Q) → f
  13. Segment(C, Q) → g
  14. Segment(A, C) → h
  15. Segment(O, P) → i
  16. CurveCartesian(j, cos(j), j, 0, s°) → j
  17. Rotate(j, t°) → j'
  18. Polygon(A, D, C) → poly1, c_1, a_1, d_1
  19. Segment(A, D) → k
  20. Sequence(Text["\rotatebox{" + t + "}{" + (k) + "}", O + k * v + 0.1 * v - 0.4 * u, true, true], k, -6, 6) → ticksYLabel
  21. If(runS, "停止", "畫圖") → cap

AI Drawing Prompt Reference

Create a dynamic visualization of the cosine function. On the left, draw a unit circle centered at the origin. A ray from the origin intersects the circle at a point that moves with an angle slider. From this point, drop a perpendicular to the x-axis, forming a right triangle, and highlight the cosine segment. On the right, plot the cosine curve with x-axis labeled in multiples of π and y-axis with integer ticks. The curve extends from the origin as the angle increases, with a locus tracing the relationship between the point's x-coordinate and the cosine value. Include a play/pause button for animation.
The prompt above was compiled from the original drawing commands and is for reference only.