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
$500 MILLION DOLLARS - Smarter Every Day 179
Five hundred million dollars— that’s a lot of money! If someone just handed you five hundred million dollars and said, “Here, go do something good for society,” what would you do? I don’t know if you know it, but society is kind of divided right now. It’s…
Determining whether values are in domain of function
We’re asked to determine for each x value whether it is in the domain of f or not, and they have our definition of f of x up here. So pause this video and see if you can work through this before we do it together. All right, so just as a bit of a review,…
Adding 2-digit numbers without regrouping 1 | Addition and subtraction | 1st grade | Khan Academy
Try to pause the video and figure out what 71 plus 24 is. All right, now let’s do this together. So let’s think about what 71 actually means. Well, we have a one in the ones place. Let me make this clear. So this is the ones place and we have one one. So …
We made a Video Game (FISH GAME) - Smarter Every Day 291
Hey, it’s me, Destin. Welcome back to Smarter Every Day. We made a video game. I was supposed to make a video here about, like, “Hey, this is the game, and you can buy it, and you can play it, and it’s awesome.” That was the original idea for this. But th…
KINDNESS: VIRTUE OR VULNERABILITY? | STOICISM INSIGHTS #stoicism #stoicisminsights
Welcome back to Stoicism Insights. Today, we’re diving into a topic that’s close to many hearts: kindness. But hold on to your seats, because we’re about to uncover a side of kindness you’ve never seen before. Get ready to learn how to navigate the world …
Ancient Egypt's Celebration of the Dead | Lost Treasures of Egypt
[cow mooing] NARRATOR: Each year after the harvest, the people of Thebes held a celebration of the dead called the “Beautiful Festival of the Valley.” They carried statues of Thebes’ three main gods in a grand procession out of Karnak temple east of the …