# Phase Difference

The first of two apps on Phase Difference allows for interaction to demonstrate the oscillation of two different particles along the same wave with a variable phase difference.

The second shows two waves also with a phase difference.

In both cases, the phase difference $\Delta\phi$ can be calculated with

$$\Delta\phi = \dfrac{\Delta x}{\lambda} \times 2\pi$$

where $\Delta x$ is the horizontal distance between the two particles or the horizontal distance between the two adjacent identical particles (one from each wave) and $\lambda$ is the wavelength of the waves.