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 To Grow Your Direct To Consumer Brand | The Gourmet Insider | Chef Wonderful
[Music] And so now you’ve recently partnered with Vintage Wine Estates on the new lifestyle platform called Shop Mr. Wonderful. How did that come about, and have you had a long-standing relationship with Vintage Wine Estates? It’s a remarkable story and …
Shape properties after a sequence of transformations
In past videos, we’ve thought about whether segment lengths or angle measures are preserved with a transformation. What we’re now going to think about is what is preserved with a sequence of transformations, and in particular, we’re going to think about a…
Your Whole Goal Is to Not Quit - Courtland Allen of Indie Hackers
But yeah, why did you decide to start doing a podcast after the site was going? People were asking for it. It seemed like a good idea. I mean, the number of people who asked me to do a podcast was so much higher than people who asked for any other featur…
Unadopted amendments to the Bill of Rights | US government and civics | Khan Academy
Hi, this is Kim from Khan Academy. Did you know that what we call the First Amendment today was actually the Third Amendment in the original draft of the Bill of Rights? In fact, there were more than 200 proposed amendments, which were whittled down to ju…
The Watch That Made Kevin O'Leary Weep
Oh my goodness! It’s a gorgeous piece. It’s so incredible; it has made a grown man weep. It’s pure beauty. [Music] Hey, Mr. Wonderful here, doing what I love to do: picking up a brand new watch. Now in this case, AP Audemars Piguet. Now let me tell you …
A Stoic Approach To Envy
Since many of you asked, I decided to deliver. As a sequel to my video about jealousy, let’s talk about envy. What is envy? How should we handle it? What can we learn from the Stoics in regards to envy? And is it really a bad thing? First of all, I want …