yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Sine and cosine from rotating vector


2m read
·Nov 11, 2024

Now I'd like to demonstrate one way to construct a sine wave. What we're going to do is we're going to construct something that looks like ( S(\Omega t) ). So, we have our function of time here and we have our frequency.

Now this little animation is going to show us a way to construct a sine wave. So what I have here, this green line, is a rotating vector, and let's just say that the radius of this circle is one.

So here's a vector just rotating slowly around and around, and in the dotted line here, that yellow dot going up and down, that's the projection of the tip of the green arrow onto the Y-axis. As the vector goes round and around, you can see that the projection on the Y-axis is bobbing up and down and up and down. That’s actually going up and down in a sine wave pattern.

So now I'm going to switch to a new animation, and we'll see what that dot looks like as it goes up and down in time. So here's the plot; here's what a sine wave looks like. As you notice, when the green line goes through zero right there, let's wait till it comes around again, the value of the yellow line when it goes through zero is zero.

So this yellow line here is a plot of ( S(\Omega t) ). Now if I go to a projection, this projection was onto the Y-axis. I can do the same animation, but this time project onto the x-axis, and that'll produce for us a cosine wave.

Let's see what that looks like now. Now in this case, if we switch over, you can see that the projection, that dotted green line, is onto the x-axis. What this is doing is it's producing a cosine wave.

So this is going to be ( \cos(\Omega t) ). Now, because we're tracking the progress on the x-axis, the cosine wave seems to emerge going down on the page. So the time axis is down here.

When the green arrow is zero right there, the value of the cosine was one, and when it's minus 180°, it's minus one on the cosine. So that's why this is a cosine wave, and it has the same frequency as the sine wave we generated.

Now I want to show you these two together because it's just sort of a beautiful drawing. I'll leave our animation here for a second. We see our sine wave being generated in yellow, and in orange, we see the cosine wave being generated, and they're both coming from this rotating green vector.

So this is a really simple demonstration of a way to generate sines and cosines with this rotating vector idea. We're going to be able to generate this rotating vector using some ideas from complex arithmetic and Euler's formula.

I find these to be a really beautiful pattern, and it emerges from such a simple idea as a rotating vector.

More Articles

View All
How Startup Fundraising Works | Startup School
Foreign [Music] I’m Brad Flora. I’m a group partner here at YC, and I’m going to be talking about how startup fundraising works today. Like I said, I’m a group partner at YC, and what that means is that I read applications, I interview the startups that …
I Spent 72 Hours in Bhutan with National Geographic | Juanpa Zurita | Nat Geo’s Best of the World
I am currently standing on the longest suspension bridge of all Bhutan. I’m about to take you on a journey way up near some of the tallest mountains in the entire world. This country’s tiny, but mighty. And it’s in the Himalayas between Tibet and Nepal. T…
The van der Waals equation | Khan Academy
We have so far spent many videos talking about the ideal gas law: that pressure times volume is equal to the number of moles times the ideal gas constant times temperature measured in Kelvin. What we’re going to do in this video is attempt to modify the i…
Solo Escape from Iraq | No Man Left Behind
I was a 28-year-old guy loving life and everything else. And uh, I was in the Special Air Service. I can remember flying in; the first thing that came over the headset was the pilot saying, “Welcome to Iraq.” From that point, a new game was on. The 8-man …
Why Paul McCartney Started the "Meat Free Monday" Movement (Exclusive) | National Geographic
[Music] No thank you, no that’s very nice. You’ve been vegetarian for 40 more years, right Tom? Yeah. And not just one day a week, but 24⁄7. Yeah. How has that affected your life? It’s—I love it, you know, and I get mates, you know, and people say, …
Can the US avoid the End of an Empire?
Is there a political solution in the US to avoid the end of Empire, or is it a function of physics? I think this is a big part of, like, Sax’s point of view that there’s a solution; we need to change these people. Or are there too many, call it, conflatin…