# Phase Shift Calculator

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).

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.

**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`

.**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`2π`

since`sin(0) = sin(2π) = sin(4π) = ...`

and the parts in between are exactly the same (and similarly for the cosine).**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.**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 * 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** `2π`

, 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 + `

,^{2π}/_{B}))

So with every

added to the argument ^{2π}/_{B}`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**

.^{2π}/_{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:

…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 + `

and ^{π}/_{2}) = cos(x)`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 and , 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**

(to the right) of the function ^{C}/_{B}`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 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 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 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:

**Determine**`B`

.**Determine**`C`

.**Divide**`C / B`

.**Remember**that if the result is:**Positive**, the graph is shifted to the right.**Negative**, the graph is shifted to the left.

**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:

**Determine**whether it's a shifted sine or cosine.**Look**at the graph to the right of the vertical axis.**Find**the first:**Peak**if the coefficient before the function is positive; or**Trough**if the coefficient is negative.

**Calculate**the distance from the vertical line to that point.- If the function was a sine,
**subtract**

from that distance.^{π}/_{2} **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:

**Determine**what the trig function is.**Focus**on the point`(0,0)`

on the plane.- If the phase shift is:
**Positive**, move to the right.**Negative**, move to the left.

**Move**the distance given by the phase shift.- The point you land in is your
**starting point**. **Draw**the non-shifted function's graph as if the point were`(0,0)`

.**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.

**1**.

**2π**.

**0**.

**0**.