Welcome to Omni's phase shift calculator, where we'll study trigonometric functions and how to calculate their phase shift. In fact, we'll cover more than that: we'll also explain how to find the amplitude and how to find the period. As a matter of fact, it turns out that a huge class of functions behave virtually the same, and the differences boil down to describing the very values mentioned above; the amplitude, period, and phase shift. Well, up to a vertical shift, at least.

The amplitude, period, phase shift, and vertical shift

As we've mentioned above, we'll be focusing here on trigonometric functions: more specifically on the sine and cosine. Nevertheless, it's important to remember that many of the notions are more general, especially those of the horizontal translation or the vertical shift.

First of all, let's look at a picture showing where the amplitude, period, phase shift, and vertical shift appear on the graph (note that the same image appears at the top of Omni's phase shift calculator).

The amplitude, period, phase shift, and vertical shift.

We can write such functions with the formula (sometimes called the phase shift equation or the phase shift formula):

  • f(x) = A * sin(Bx - C) + D; or
  • f(x) = A * cos(Bx - C) + D,

for A, B, C, D arbitrary real numbers, but with A and B non-zero (otherwise, it wouldn't be a trigonometric function). Obviously, those four numbers determine the amplitude, period, phase shift, and vertical shift. To an extent, the picture suggests how they affect the graph. Still, it'd be useful to support the visuals with some definitions.

  1. The amplitude is how far (either way) the values run from the graph's centerline. For a simple sine or cosine, its value is 1 since the centerline is at 0, and the function's values range from -1 to 1.
  2. The period is the length on the horizontal axis, after which the function begins repeating itself. In other words, the (infinite) graph is just a bunch of period-length copies glued together at the ends. For a simple sine or cosine, the period equals since sin(0) = sin(2π) = sin(4π) = ... and the parts in between are exactly the same (and similarly for the cosine).
  3. The phase shift (also called the horizontal shift or horizontal translation) describes how far horizontally the graph has been moved from the regular sine or cosine. As such, the value is equal to 0 if we have the two functions unaltered.
  4. The vertical shift (also called the vertical translation) describes how far vertically the graph has been moved from the regular sine or cosine. In other words, it's the phase shift's twin that concerns the perpendicular direction. In particular, the value is again equal to 0 if we have the two functions unaltered.

Alright, we've learned what the phase shift is, as well as the three accompanying values. The sections below describe how to calculate each of them based on the notation from the phase shift formula above. First, we show how to find the amplitude.

How to find the amplitude

We know that the sine and cosine functions have values ranging from -1 to 1. What is more, that simple fact doesn't change if we substitute sin(x) or cos(x) for sin(Bx - C) or cos(Bx - C) for a non-zero B and arbitrary C. In fact, it's because the function f(x) = Bx - C is then a bijection (i.e., a one-to-one correspondence) onto the space of real numbers.

Now let's see what happens if we add D, i.e., if we have sin(Bx - C) + D or cos(Bx - C) + D instead. Since the first part gives something between -1 and 1, the whole thing will be between -1 + D and 1 + D (see How to find the vertical shift for comparison). That means the centerline falls at D, and the amplitude is still 1 because the values fall as far as 1 away from D.

Therefore, the only thing that can affect the amplitude in the phase shift formulas A * sin(Bx - C) + D and A * cos(Bx - C) + D is the non-zero A. And indeed, since sin(Bx - C) and cos(Bx - C) are all this time between -1 and 1, the multiplier A changes this range to -1 * A = -A and 1 * A = A.

Yup, you guessed it: the amplitude of the phase shift equations A * sin(Bx - C) + D and A * cos(Bx - C) + D is simply equal to A.

How to find the period

Recall that the sine and cosine functions have periods (no, not that kind of period) equal to , i.e., we have sin(x + 2π) = sin(x) and cos(x + 2π) = cos(x) for any x. In particular, that gives:

A * sin(x + 2π) + D = A * sin(x) + D and A * cos(x + 2π) + D = A * cos(x) + D

So, we see that the A and D in the phase shift formula have no effect on the period. Indeed, it all boils down to what happens inside the trigonometric functions. And yet:

sin(x - C + 2π) = sin(x - C) and cos(x - C + 2π) = cos(x - C),

by the very same rules as above, so it's not the C either that does the job. So, with three options discarded, it must be the fourth: the B.

We again turn to the comment we started with to understand why and how B affects periodicity in the phase shift equations A * sin(Bx - C) + D and A * cos(Bx - C) + D. After all:

sin(Bx) = sin(Bx + 2π) = sin(B * (x + /B)),

So with every /B added to the argument x, we land back in the same spot, and the function repeats itself (and similarly for the cosine).

All in all, the period of a phase shift equation is equal to /B.

How to find the phase shift

By definition, the phase shift describes the horizontal translation of the function with respect to the regular sin(x) or cos(x). As such, the basic functions have it equal to 0. In fact, if we compare their graphs:

Plot of sin(x) in <-2π, 2π> range
Plot of cos(x) in <-2π, 2π> range

…we'll notice that we can get one by translating the other (in fact, mutual cofunctions have many similarities). To be precise, we have:

sin(x + π/2) = cos(x) and cos(x - π/2) = sin(x).

The example above already suggests where in A * sin(Bx - C) + D and A * cos(Bx - C) + D, we should look for the values responsible for phase shifts. However, as opposed to the amplitude and period, this time, we'll need two of the four letters.

In general, (that is, not only in phase shift equations), we obtain the horizontal translation of an arbitrary function f(x) by calculating f(x - a): the shift of the graph by a to the right. In other words, we substitute every occurrence of x with x - a in the formula for f(x). For instance, applying the translation to sin(x) gives sin(x - a), but for, say, cos(3x + 1) we'd get:

cos(3 * (x - a) + 1) = cos(3x - 3a + 1),

i.e., we cannot forget about the multipliers standing in front of x.

In our case, the phase shift formula gives:

A * sin(Bx - C) + D = A * sin(B * (x - C/B)) + D,

which is a phase shift of C/B (to the right) of the function A * sin(Bx). Of course, we can repeat the above for the cosine as well.

To sum it all up, in order to calculate the phase shift of a phase shift equation, you need to find C/B.

How to find the vertical shift

This one's easy, especially now that we've seen what the phase shift, amplitude, and period are and how to calculate them. Let us build on what we've learned so far.

We know that in the phase shift formulas A * sin(Bx - C) + D and A * cos(Bx - C) + D, the A determines how far the values fluctuate on either side of the centerline. The B specifies how far we extend the graph's bumps and, as a result, how fast we get to repeat the values. Also, together with C, the two describe if we've moved the function to the left or right and how much.

Obviously, the horizontal translation doesn't affect the vertical shift: those are two perpendicular directions, after all. On the other hand, the amplitude only tells us how far vertically the graph reaches, but it doesn't shift it. All in all, we're left with only one letter: D.

The D in the phase shift equations is precisely the vertical shift. It determines the function's range, i.e., how far from the usual, no-D version we move the graph.

That concludes the theoretical part for today. It's time to see how to calculate the phase shift on a nice example. And you know what? We'll show how to find the period, the amplitude, and the vertical shift as well. After all, why not? More mathematical calculation = more fun!

Example: using the amplitude period phase shift calculator

Let's see how to find the amplitude, period, phase shift, and vertical shift of the function f(x) = 0.5 * sin(2x - 3) + 4. Firstly, we'll let Omni's phase shift calculator do the talking.

At the top of our tool, we need to choose the function that appears in our formula. In our case, we choose "sine" under "The trigonometric function in f." That'll trigger a symbolic representation of such a phase shift equation: f(x) = A * sin(Bx - C) + D. Looking back at what we have, we input:

A = 0.5, B = 2, C = 3, D = 4.

(Note how even before we input the values, the phase shift calculator displays the graph of the function sin(x). That is because the tool understands not giving certain values as no numbers in the corresponding places in the formula. As such, it reads no input at all as A = 1, B = 1, C = 0, and D = 0, which gives 1 * sin(1 * x - 0) + 0 = sin(x).)

The moment we give the last value, the function's graph appears underneath together with the amplitude, period, phase shift, and vertical shift further down. Also, observe that if needed, you can go into the advanced mode of the calculator to find the function's value at any point x₀.

Now let's explain how to find the phase shift and all the other values ourselves. For that, it's enough to recall the four sections above to calculate that:

  • The amplitude is A = 0.5;
  • The period is 2π / B = 2π / 2 = π;
  • The phase shift is C / B = 3 / 2 = 1.5; and
  • The vertical shift is D = 4.

All in all, the graph looks like this:

A phase shift equation example.

A piece of cake, wasn't it? Make sure to play around with the phase shift calculator to see how different coefficients affect the graph. And once you get bored with it, move on to other Omni trig calculators and prepare to have even more fun!

FAQ

How do I calculate the phase shift?

To calculate the phase shift of a function of the form A × sin(Bx - C) + D or A × cos(Bx - C) + D, you need to:

  1. Determine B.
  2. Determine C.
  3. Divide C / B.
  4. Remember that if the result is:
    • Positive, the graph is shifted to the right.
    • Negative, the graph is shifted to the left.
  5. Enjoy having found the phase shift.

How do I find the phase shift from a graph?

To find the phase shift from a graph, you need to:

  1. Determine whether it's a shifted sine or cosine.
  2. Look at the graph to the right of the vertical axis.
  3. Find the first:
    • Peak if the coefficient before the function is positive; or
    • Trough if the coefficient is negative.
  4. Calculate the distance from the vertical line to that point.
  5. If the function was a sine, subtract π/2 from that distance.
  6. Enjoy having found the phase shift from a graph.

How do I find the amplitude, period, and phase shift?

Finding the amplitude, period, and phase shift of a function of the form A × sin(Bx - C) + D or A × cos(Bx - C) + D goes as follows:

  • The amplitude is equal to A;
  • The period is equal to 2π / B; and
  • The phase shift is equal to C / B.

How do I graph trig functions with phase shift?

To graph trig functions with phase shift, you need to:

  1. Determine what the trig function is.
  2. Focus on the point (0,0) on the plane.
  3. If the phase shift is:
    • Positive, move to the right.
    • Negative, move to the left.
  4. Move the distance given by the phase shift.
  5. The point you land in is your starting point.
  6. Draw the non-shifted function's graph as if the point were (0,0).
  7. Enjoy having graphed a trig function with a phase shift.

Are horizontal and phase shift the same?

When it comes to trigonometric functions, yes. We usually reserve the term "phase shift" for trig functions. In other words, we can have a horizontal shift of any graph or function. Still, when it is, in fact, a trigonometric one, we can equivalently call that horizontal shift a phase shift.

Maciej Kowalski, PhD candidate
The amplitude, period, phase shift, and vertical shift.
The trigonometric function in f
sine
f(x) = A * sin(Bx - C) + D
A
B
C
D
Result
The amplitude is A = 1.
The period is 2π / B = .
The phase shift is C / B = 0.
The vertical shift is D = 0.
People also viewed…

Body fat

Use the body fat calculator to estimate what percentage of your body weight comprises of body fat.

Isosceles Triangle

This isosceles triangle calculator can help in your geometry problems, finding area, height, angles, perimeter or many other parameters. Give it a try!

Snowman

The perfect snowman calculator uses math & science rules to help you design the snowman of your dreams!
main background