Hey, everyone. So in recent videos, we've been talking about graphs of the sine and cosine functions, and we've been discussing how these graphs can be transformed. Maybe they'll be shifted up or down or stretched in some kind of way. Well, what we're now going to be taking a look at is another kind of transformation known as a phase shift. Now this might sound really complicated and technical, but don't sweat it, because we're going to learn in this video that a phase shift is really just a horizontal shift, which can occur for your sine or cosine. And just like how a vertical shift took your graph and shifted it up or down, a phase shift can take your graph and shift it to the left or right. So without further ado, let's take a look at some situations that you'll see in this course associated with a phase shift.
Now, we should be familiar with this graph, which is the graph for the cosine of 𝜋. It starts here at a high value of 1, and then kind of makes this wave-like pattern that extends on both sides of the graph. Now a way that you could see a phase shift is if you had some kind of number inside the parentheses that was being added or subtracted to the 𝜋 within your cosine. And an example of this would be, say, the cosine of 𝜋 minus 𝚷 over 2. Now to see how this phase shift affects the graph, we can go ahead and plot some points. And the way that I'm going to plot these points is I'm going to take all of these values, and I'm going to subtract 𝚷 over 2 from them, and then I'll evaluate the cosine. So the cosine of 0 minus 𝚷 over 2 is going to be the cosine of negative 𝚷 over 2. And we can see that our cosine graph is 0 at that point, so that means we're going to start at a value of 0. Now next we're going to have the cosine of 𝚷 over 2 minus 𝚷 over 2. That's going to be the cosine of 0, which is just going to be 1. Next, we'll have the cosine of 𝚷 minus 𝚷 over 2. That's going to be the cosine of 𝚷 over 2, which is back at 0. Now for 3𝚷 over 2 minus 𝚷 over 2, this cosine is going to evaluate to negative one, meaning you'll be down there on your graph. And then we'll take a look at the cosine of 2𝚷, minus 𝚷 over 2, which turned out to just be 0. So you're going to be back up here. Now if you go ahead and connect these points with a smooth curve, you're going to notice something kind of interesting about this graph. We can go ahead and extend this back here as well. Notice how we have a very similar wave that we started with, except it appears that this wave is kind of out of phase with the original wave. And that's exactly what happens with the phase shift. In fact, you'll notice we actually have very similar values, except all of these have been shifted over to the right. We have this one that went there, this zero that went there, this negative one that went there, and then the zero that went here. So subtracting 𝚷 over 2 from the inside of this cosine function caused every point on the original cosine graph to be shifted over to the right by 𝚷 over 2 units. We saw it here, we saw it there, and we saw that at every point on this graph. So whenever you have some kind of number subtracted inside the sine or cosine, we'll call that number h, this number is going to cause a phase shift in your graph. Now I will mention here that not every textbook you see is going to use the letter h. Some textbooks will use other variables or letters, but as long as you see it added or subtracted from the inside of the sine or cosine function, it means the same thing.
Now all of this really begs some interesting questions, like how do we know how much our graph has shifted, or how do we know what direction our graph has shifted? Well, it turns out all of that can be discovered by looking at the inside of the trig function. Because if you have a sine or cosine of bx−some number, then that means that your h value is positive, and your graph is going to shift to the right by h over b units. Now if you instead had a situation where the inside of your trig function was b 𝜋 plus some number, that means your h value is negative, and the graph is going to shift left by h over b units. Now in the situation we had right here, we had the cosine of 1𝜋 minus 𝚷 over 2. And because the inside of this function is in the form b 𝜋 minus a number, that means that our h value was positive and our graph shifted to the right. Now finding h over b for this graph would be our h value, which is 𝚷 over 2, divided by our b value, which is 1, and 𝚷 over 2 divided by 1 is the same thing as just 𝚷 over 2. So this shows us how much our graph shifted by. Now another thing that you might notice is we have actually kind of a familiar-looking wave. Notice we start at a value of 0, and then we go up and down and complete a period at 2𝚷. This is actually very similar to the sine graph. In fact, it's the same thing. And this is interesting about phase shifts, it can actually make your cosine graph look like a sine graph or the other way around.
Now to really make sure that this concept makes sense, let's try an example where we have to deal with a sine or cosine function, which has gone through a phase shift. So in this example, we are asked to graph the function y is equal to the sine of 2𝜋 + 𝚷 over one full period. Now to solve this problem, what I'm first going to do is draw a graph which we're more familiar with. So I'm going to ignore this 𝚷 for now, and I'm just going to draw the graph for y is equal to the sine of 2𝜋. Now recall that this graph is going to have a bit of a different period than we're used to because we have this 2 in front. And the period for a sine or cosine function is equal to 2𝚷 over b. Well the b value we can see in front of the 𝜋 is 2, and then these two's will cancel giving us just 𝚷. So this sine graph is going to start here at the origin, and then we're going to reach a peak between 0 and 𝚷 over 2. We're going to dip here through 𝚷, and then we're going to reach a full period at 𝚷. Now from here, what I'm going to do is I'm going to use this graph to draw the graph of this function, which is y is equal to the sine of 2𝜋 + 𝚷. And to figure this out, well, I can see that there's some kind of phase shifts that happened. And recall that when