Control Panel
Equation
Live Graph
a stretches or flips the wave (amplitude) — b slides the whole wave up or down (midline). Notice the wave always repeats every 2π, no matter what a and b are.