Phase Shift Calculator
Calculate the phase shift, amplitude, period, frequency, and vertical shift of trigonometric sine and cosine wave functions.
How to Calculate Phase Shift for Trigonometric Functions
In mathematics, physics, and electrical engineering, the phase shift describes the horizontal translation of a periodic wave (such as a sine or cosine function) relative to its standard baseline position.
The general form of a sinusoidal wave is written as:
$$y = A \sin(Bx - C) + D \quad \text{or} \quad y = A \cos(Bx - C) + D$$
By factoring out the frequency coefficient $B$, the equation transforms into its factored form:
$$y = A \sin\left(B\left(x - \frac{C}{B}\right)\right) + D$$
The horizontal phase shift $h$ is given by:
$$h = \frac{C}{B}$$
Understanding the Four Wave Parameters
- Amplitude ($|A|$): The peak height of the wave from its center midline to its crest.
- Frequency Coefficient ($B$): Controls how rapidly the wave oscillates. The wave period is $T = \frac{2\pi}{|B|}$.
- Phase Constant ($C$): Shifts the wave horizontally. When $C / B > 0$, the wave shifts to the right (lagging). When $C / B < 0$, it shifts to the left (leading).
- Vertical Shift ($D$): Moves the entire wave up or down, defining the midline at $y = D$.
Phase Shift vs. Phase Angle
It is important to distinguish between phase constant ($C$) and phase shift ($h = C / B$):
- Phase Constant ($C$): An angle (usually in radians or degrees) inside the trigonometric argument.
- Phase Shift ($h$): A distance along the $x$-axis representing the actual physical horizontal translation.
Worked Example
Analyze the function $y = 3\sin(2x - \pi) + 1$.
- Amplitude: $|A| = 3$
- Period: $T = \frac{2\pi}{2} = \pi \approx 3.1416$
- Phase Shift: $h = \frac{C}{B} = \frac{\pi}{2} \approx 1.5708$ (shifted $\pi/2$ units to the right)
- Vertical Shift / Midline: $D = 1$
- Range: $[1 - 3, 1 + 3] = [-2, 4]$
Related Trigonometry and Physics Calculators
Explore related wave, angle, and trigonometry tools:
- Right Triangle Calculator — Compute sides, angles, and trigonometric ratios for right triangles.
- Perpendicular Line Calculator — Determine orthogonal slopes and equations in Cartesian coordinates.
- Circle Sector Calculator — Calculate arc lengths, central angles, and radians.
Frequently Asked Questions
What is the difference between period and phase shift?
The period T = 2π/|B| is the horizontal length required for the wave to complete one full cycle of oscillation. The phase shift h = C/B is the horizontal offset indicating how far the entire wave has slid to the left or right along the x-axis.
Does a positive C mean a shift to the right or left?
In the standard formula y = A sin(Bx - C), a positive C results in a positive phase shift h = C/B (for positive B), which shifts the wave to the right. Conversely, in the form y = A sin(Bx + C), the wave shifts to the left.
How do you convert phase shift between degrees and radians?
To convert radians to degrees, multiply by 180/π. To convert degrees to radians, multiply by π/180.
What is the phase shift between a sine and cosine wave?
A cosine wave is identical to a sine wave shifted by π/2 radians (90 degrees) to the left: cos(x) = sin(x + π/2).