Trigonometric Function Transformation
Base Function:
Graphing y = A sin(Bx - C) + D
Show sin(x)
A: B: C: D:
Period:
Amplitude:
Phase Shift:
Vertical Shift:
Transformations of Functions
The graphs of the six basic trigonometric functions can be transformed by adjusting their amplitude, period, phase shift, and vertical shift.

Amplitude
The amplitude of a sinusoidal trig function (sine or cosine) is it's 'height,' the distance from the average value of the curve to its maximum (or minimum) value. We can change the amplitude of these functions by multiplying the function by a constant A. The resulting amplitude is given by \[ \mbox{ amplitude} = |A| \] The other trig functions (tangent, cotangent, secant, and cosecant) do not have an amplitude, but multiplication by A will affect their steepness. Note that a negative value of A will flip the graph of any function across the \(x\)-axis.

Period
The period of any trig function is the length of one cycle. sin(x), cos(x), sec(x), and csc(x) all have a period of \(2\pi\), while tan(x) and cot(x) have a period of \(\pi\). By altering the value of B (the multiplier of the variable before the function is evaluated), we can change the period of the function according to the formula \[ \mbox{ period} = \frac{\mbox{original period}}{|B|} \] When |B| is larger than one, the new period is smaller than the original, so the function will appear horizontally compressed. When |B| is less than 1, the period is larger than the original, and the function will appear stretched.

Phase Shift
The phase shift of a trigonometric function refers to its horizontal shift to the right. A phase shift results from adding a value to the variable before the evaluating the function. The phase shift of a trigonometric function is calculated using the formula \[ \mbox{phase shift} = \frac{C}{B} \] When C is positive, the graph will appear to shift to the right. When C is negative, the graph will shift to the left.

Vertical Shift
Adding a value D to a trig function will translate its graph vertically. If D is positive, the graph will shift up by a factor of D; if D is negative, the graph will shift down.

Any combination of these transformations can be applied to a function simultaneously, as demonstrated in this applet.
Using the Applet
About the Applet
This applet was created using JavaScript, the math.js library, and the Konva graphics library.