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
How one NY hospital system treated 128,000+ COVID cases | Michael Dowling | Big Think
MICHAEL DOWLING: When you’re in healthcare, you deal with crisis all the time. It’s the nature of our business. People come into the emergency department after accidents. People come in with severe heart issues. There is trauma. So, we deal with crises. W…
Is our universe the only universe? - Brian Greene
[Music] [Applause] A few months ago, the Nobel Prize in physics was awarded to two teams of astronomers for a discovery that has been held as one of the most important astronomical observations ever. Today, after briefly describing what they found, I’m …
The Season of Twilight | National Geographic
The best photographs keep something from us, and there’s no better time for mystery than the Twilight hour. Much of my work as a photographer takes me to the Arctic, but I really haven’t spent much time in Canada in the winter. Shorter days allow me to ca…
Canada's Green Agenda Is Ridiculous | Premier Danielle Smith
The radical left have indicated very, very clearly their willingness to sacrifice the poor to the planet, right? This shocked me, actually, you know, because I could see a tension developing between the low energy prices that were clearly necessary to con…
Why Einstein Thought Nuclear Weapons Were Impossible
Now that we have nuclear weapons and nuclear power plants, you might think that it was always inevitable that we would be able to harness the energy inside the nucleus of atoms. But that was far from the case. In fact, serious scientists thought the idea …
Adding and subtracting polynomials of degree two | Algebra 1 (TX TEKS) | Khan Academy
So we have two different expressions here, and what I want you to do is pause this video and see if you can rewrite each of these as a simplified polynomial in standard form. So pause the video and have a go with that. All right, now let’s do this togeth…