AI authored to showcase ironpad capabilities.
Sinusoidal functions are the building blocks of wave phenomena in physics, signal processing, and mathematics. This notebook lets you interactively explore phase shifts applied to sine and cosine waves.
y = \sin(x + \varphi) \qquad y = \cos(x + \varphi)
where \varphi (phi) is the phase shift — how much the wave is displaced horizontally.
\cos(x) = \sin\!\left(x + \frac{\pi}{2}\right)
Cosine is just sine shifted left by \tfrac{\pi}{2} radians (90°). In this explorer, watch how the two waves maintain that exact \tfrac{\pi}{2} separation as you change the phase.
A phase shift \varphi translates the wave horizontally by \varphi units to the left:
Use the Phase Shift slider in the next cell to explore these transformations in real time!