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
A Father at War | The Long Road Home 360
[Music] I’m Sergeant Benjamin Harris, United States Army infantryman. I was 26; my daughter was born two months before we deployed. It’s in those first couple days certain details I can remember very clearly, and then certain things that I would think I r…
Jeff Bezos: "Nerd of the Amazon" | 60 Minutes Archive
60 Minutes rewind. Who would have guessed that one of the hottest stocks of all time, one of the fastest growing companies in history, would be a bookstore? That’s right, books—one of the oldest products made by man. We didn’t. That’s because we didn’t pr…
Estimating when subtracting large numbers
Let’s say that you have a jar of jelly beans, and you know that there are exactly 282 jelly beans in that jar of jelly beans. Then, the next day you come, and you see there are fewer. You say, “What happened?” Let’s say someone who lives with you or your …
Warren Buffett: How to Invest Tiny Sums of Money
I think if you’re working with a small amount of money, I think you can make very significant sums. But as soon as you start getting the money up into the millions, many millions, the curve on expectable results falls off just dramatically. So, I just cam…
McDonald v. Chicago | National Constitution Center | Khan Academy
Hi, this is Kim from Khan Academy, and today we’re learning more about McDonald v. Chicago, a 2010 Supreme Court case challenging a handgun ban in the city of Chicago. The question at issue was whether the Fourteenth Amendment’s Due Process or Immunities …
solo trip in Italy 🇮🇹 |Having a lunch with a stranger 🍝
Even though I hate solo trips, in order to take Italian medical admission tests, I needed to go to Rome alone. Here is the journey, enjoy! Hi guys! Hi guys! Hi guys! Guess who is in Rome? Yes, I am in Rome! Even though I visited Milan back in high school…