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
Basics of AI approaches
So you can imagine when people first set out to create artificial intelligence, there might have been many different approaches. Very broadly speaking, there were two major groups. There are those who said, “Hey, let’s just give computers very clear instr…
It Started: The Worst Housing Crash In 40 Years
What’s up, Graham? It’s guys here, and it finally happened! U.S. housing prices just saw the largest single-month acceleration in 40 years, leading analysts to believe that housing prices have officially hit a tipping point. Month over month, national hom…
Patterns in hundreds chart
So what we have in this chart is all the numbers from 1 to 100 organized in a fairly neat way. It’s a somewhat intuitive way to organize it where each row you have 10. So you go from 1 to 10, then 11 to 20, then 21 to 30, all the way to 100. And what we’…
EVERYTHING You've Been Told About Making Money Is WRONG! | Kevin O'Leary
[Music] Hey, Mr. Wonderful here! You know, one of the things about doing television, live television, particularly earning more early morning television—you got to get up early. I mean, this is live TV; very often the show starts at 6:00 in the morning. S…
Take a Ride on One of India's Legendary Mountain Railways | National Geographic
[Music] The rugged mountainous terrain of India contains unmatched adventure. Their three historic railways are grouped into a single World Heritage site known as the Mountain Railways of India. The Darjeeling Himalayan Railway, the Nilgiri Mountain Railw…
Bird Flight - Deep Dive #2 - Smarter Every Day 61
So, what do you do to hold a bird? Hold on tight and don’t be scared. That’s right! Okay, so today, on today’s deep dive here at Smarter Every Day, we’re going to learn about bird flight. When I went to Peru and shot high-speed video, I learned a whole lo…