Sine Wave Curve Plotter

Shape y = A sin(Bx - phi - w t) + D with the sliders and hover the curve. The rotating phasor below shows why a sine is circular motion seen from the side.

Period T = 2pi/B
Frequency f = B/2pi
Zero crossings in view
Max / min
y at cursor
Slope dy/dx at cursor
The science

A sinusoid y = A sin(Bx - phi) + D has amplitude A (peak distance from the midline D), angular frequency B, period T = 2pi/B and phase shift phi/B (the curve moves right by that much). The derivative is dy/dx = A B cos(Bx - phi), so the steepest slope is A B, reached at the midline crossings.

The phasor view uses Euler's formula e^(i theta) = cos theta + i sin theta: a point moving uniformly on a circle has height sin(theta). Time adds theta = Bx - phi - w t, a travelling wave moving to the right at speed w/B.

Simplification: a pure mathematical function with no damping or dispersion. Numeric checks: the analytic slope is compared live with a central finite difference, and the period check below compares f(x) with f(x + 2pi/B).