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

Integral of product of cosines


4m read
·Nov 11, 2024

We've been doing several videos now to establish a bunch of truths of definite integrals of various combinations of trigonometric functions so that we will have a really strong mathematical basis for actually finding the Fourier coefficients. I think we only have one more video to go.

In the last video, we said, "Hey, if you take any combinations of sines where m and n are integers that either don't equal each other or don't equal the negative of each other, then you're going to get that integral is going to be equal to 0." And then if they did equal to each other, well, it's just going to be the same thing as sine squared of some multiple of t, and that actually over the interval from 0 to 2 pi is going to be equal to pi.

Just to be clear, I wasn't as clear as I should have been in the last video. This is going to be true where m is a non-zero integer. If m was zero, then the inside of this integral would just simplify to zero, and then the integral would be zero. So m has to be a non-zero integer for this right over here to be true.

Now, what we want to do in this video is continue, and do the same thing we did in the last video, but now do it for cosines. For the product of two cosines where m and n are different integers, or they're not the negative of each other, that's going to be zero. But if they are the same integer and they are not zero, then that will boil down to cosine squared of mt. That definite integral is going to be equal to pi.

We're going to do it the same way that we did it with the sines. We are going to use some of our trigonometric identities. Let's rewrite this right over here, what we're trying to take the integral of. This is going to be the integral from 0 to 2 pi of cosine mt times cosine nt using a product to some trig identity.

If this is unfamiliar, you can review it on Khan Academy. That is going to be one half times cosine of the difference of mt minus nt, so I could write that as (m - n)t. Plus cosine of (m + n)t which I could write as (m + n)t dt.

So let's think about two situations. Let's think about the first situation when... and let me do that dt in blue. So dt... when actually let me now use some integration properties to expand this out a little bit. This is going to be equal to... So I'm going to write this as two different integrals.

So one integral from 0 to 2 pi, and I'm going to put the dt right over here, and then have another integral from 0 to 2 pi, and I'm going to throw that dt out here. Using some integration properties, this is going to be one half times the integral of cosine of (m - n)t dt, and then plus... I'm just distributing the one half and using some integration properties, one half and now this integral is going to be cosine of (m + n)t dt.

Now let's think about it when m and n are integers that don't equal each other, don't equal their negatives. So let's think about m not equaling n or m not equaling negative n, and we're always assuming that these things are going to be integers m and n. Well, in that situation, this right over here is going to be a non-zero integer, and this right over here is going to be a non-zero integer.

We've already established that if you have a non-zero coefficient here, this definite integral is going to be equal to zero. The definite integral from zero to two pi of cosine of some non-zero integer times t dt... Well, that's exactly what both of these integrals are; this is the integral from zero to two pi of cosine times some non-zero integer t or non-zero integer times t dt.

So in this case, where m and n are integers that don't equal each other, don't equal the negatives of each other, both of these integrals are going to be zero. Then you're going to multiply that times one-half. One-half times zero is zero. One-half times or zero, it's all going to end up being zero.

So that should hopefully make you feel pretty good about this first case. Now, let's think about the second case where m is a non-zero integer; we could say where m is equal to n. So in that situation, n and m are the same and they are not equal to zero.

Let's just take that situation, especially because when we're looking at Fourier coefficients, we care about the non-negative coefficients, at least the way that we've defined it. So let's just assume that m is equal to n and that they are not equal to zero. In that case, this would resolve... that would take this integral and turn it into that integral.

Well, in that situation, what's going to happen? This first integral right over here, if m is equal to n and m is not equal to 0, well, m minus m is going to give you 0t, so this whole thing is going to simplify to 1. And then this right over here, you're going to have m plus m, that's going to simplify to 2m.

Let's rewrite the integrals here: this is going to be equal to one-half times the definite integral from zero to two pi of one dt plus one-half times the integral from zero to two pi of cosine of (2mt) dt.

So once again, we're assuming m is not equal to zero. This is the definite integral from zero to two pi of cosine times some non-zero coefficient times t. Well, once again, we've established multiple times that this is going to be zero, so this whole second term is going to be zero.

This first one is going to be equal to... let's go to neutral color. It's going to be one-half times the antiderivative of one... well, that's just t evaluated from 0 to 2 pi. So that's going to be equal to one-half times (2 pi - 0).

Well, that's just one-half times 2 pi, which is equal to pi. And so we have now established this one as well. Now we have a full toolkit for evaluating the Fourier coefficients, which we will now do in the next video, which is very exciting.

More Articles

View All
Worked examples: Summation notation | Accumulation and Riemann sums | AP Calculus AB | Khan Academy
We’re told to consider the sum 2 plus 5 plus 8 plus 11. Which expression is equal to the sum above? And they tell us to choose all answers that apply. So, like always, pause the video and see if you can work through this on your own. When you look at the…
Cooking a Chicken in a Particle Accelerator #kurzgesagt #shorts
Cooking a chicken with a particle accelerator, how would that work? First, we need a raw chicken. That’s easy. Then, we need a particle accelerator. So, let’s put a chicken in it. To avoid collisions between air molecules and beam particles, we have to p…
2002 Berkshire Hathaway Annual Meeting (Full Version)
Here but a seconder or anybody would like to speak that motion might now work their way over to the microphone in zone one. Could we have a spotlight on where there it is? And that way when we get to that point of the program, if anybody that would like t…
Software Engineer Turned Youtuber - Jarvis Johnson
All right, welcome to the podcast. Thanks for having me. So today, Jarvis Johnson, who is a software engineer and YouTube creator. Yeah, recently independent. Yeah, it’s almost like the reverse now. Now I’m a YouTube creator and a software engineer. Ye…
Safari Live - Day 269 | National Geographic
This program features live coverage of an African safari and may include animal kills and carcasses. Viewer discretion is advised. Hello, hello and good afternoon and welcome to the sunset Safari where I’ve got some very exciting news and I will tell you…
Why I opened the first private jet showroom in the world!
The reason I built the first and only aviation showroom in the world is because nobody else has. I had to be different. Everybody in our industry today lives off a mobile phone and a laptop; that’s their business, that’s their office. To me, it just doesn…