Ask your own question, for FREE!
Mathematics 8 Online
OpenStudy (babynini):

Help, what does this even mean?

OpenStudy (babynini):

\[f(x)=\sum_{N}^{n=1}a_n \cos(nx)\], find \[\int\limits_{0}^{\pi}f(x)\cos(mx)dx\] where m,n are integers.

zepdrix (zepdrix):

The bounds on your summation are upside down :) No big deal though, thinking

OpenStudy (babynini):

whoops hehe. thanks.

zepdrix (zepdrix):

\[\large\rm \int\limits_0^{\pi}\color{orangered}{f(x)}\cos(mx)dx\quad=\quad\int\limits_0^{\pi}\color{orangered}{\sum_{n=1}^{N}\cos(nx)}\cos(mx)dx\]And uhhhh, I guess we're allowed to do this, ya?\[\large\rm \sum_{n=1}^{N}~\int\limits_0^{\pi}\cos(nx)\cos(mx)dx\]And then you can apply this weird trig identity,\[\large\rm \sum_{n=1}^{N}~\int\limits\limits_0^{\pi}\frac{1}{2}\left(\cos\left[(m-n)x\right]+\cos\left[(m+n)x\right]\right)dx\]Hmm that's too many brackets..\[\large\rm \frac{1}{2}\sum_{n=1}^{N}~\int\limits\limits\limits_0^{\pi}\cos\left[(m-n)x\right]+\cos\left[(m+n)x\right]~dx\]

zepdrix (zepdrix):

And then ummmm, is this one of those things where all they all work out to zero except the case where m=n or something? mmm thinking...

hartnn (hartnn):

yes :P

hartnn (hartnn):

\(\int \limits_0^\pi \cos mx \cos nx dx = 0 \\ m \ne n\)

OpenStudy (babynini):

so that bound is a constant?

OpenStudy (babynini):

and what happened to the "a_n"?

hartnn (hartnn):

\(\int_0^\pi \cos^2 x = \pi/2 +c\)

zepdrix (zepdrix):

Oh I dropped the A_n's woops :[

hartnn (hartnn):

note: when n = m, the co-efficient is a_m which is anyways a constant \(\int_0^\pi a_m \cos^2 x =a_m \pi/2 +c\)

hartnn (hartnn):

and all the other integral are anyways 0 :)

OpenStudy (babynini):

a_n not a_m o.0

hartnn (hartnn):

n goes from 1 to N when n = 1, its a1 when n = 2, its a2 ... when n = m, its a_m

OpenStudy (babynini):

but..at the same time we don't when n=m ? because we want it to =0 ?

OpenStudy (babynini):

\[\sum_{N}^{n=1}\int\limits_{0}^{\pi}a_ncos(nx)\cos(mx)dx\] is that where the a_n would go? haha I got a bit lost after this point xD

hartnn (hartnn):

yes, thats right. now we separate that out into 2 terms, one with n =m and the other with n NOT = m and we know, all the terms with n NOT = m are 0

hartnn (hartnn):

\(\sum_{n=1}^{N, n \ne m}\int\limits_{0}^{\pi}a_ncos(nx)\cos(mx)dx + \int\limits_{0}^{\pi}a_m\cos^2(mx)dx \\ = 0+\int\limits_{0}^{\pi}a_m\cos^2(mx)dx \\= a_m \pi/2 + c \)

OpenStudy (babynini):

hm probably a silly question, where did you get the second term from? the a_mcos^2(mx) ? and also, then we have to do this whole process twice? (with m=n and n=/=m) why?

hartnn (hartnn):

when n=m, \(a_n = a_m\) \(\cos mx \times \cos mx = \cos^2 mx\) we need to separate it out because the result of 2 integrals are different: \(\int \limits_0^\pi \cos mx \cos nx dx = 0 \\ m \ne n \\ \int_0^\pi a_m \cos^2 x =a_m \pi/2 +c\)

OpenStudy (babynini):

and we don't need that trig identity that zep brought up?

hartnn (hartnn):

ignore that "+c", its definite integral! We would need that to prove that \(\int_0^\pi a_n \cos mx \cos nx =0\)

hartnn (hartnn):

if we can directly not use it

OpenStudy (babynini):

right. o.o we should probably prove that haha

OpenStudy (babynini):

Sorry, my interwebs got ruined for a bit

OpenStudy (babynini):

Also when you read the \[a_m(\pi/2)\] did you forget to distribute the bound thingy? or is that just a bound?

hartnn (hartnn):

its after plugging in upper and lower bounds.

OpenStudy (babynini):

hm ok

hartnn (hartnn):

so we want to prove it = 0 ? \(\large\rm ~\int\limits\limits\limits_0^{\pi}\cos\left[(m-n)x\right]+\cos\left[(m+n)x\right]~dx\) whats the integral of cos?

OpenStudy (babynini):

Right. and in that we already have the a_n distributed? and isn't there a half in front of that?

hartnn (hartnn):

sure sure...but since its anyways going to get 0, it won't matter :P

OpenStudy (babynini):

\[\sum_{N}^{n=1}\int\limits_{0}^{\pi}a_ncos(nx)\cos(mx)dx\]\[\sum_{N}^{n=1}\int\limits_{0}^{\pi}\frac{ 1 }{ 2 }[\cos[(m-n)x]+\cos[(m+n)x]dx\] so the..a_n just sort of disappeared lol

OpenStudy (babynini):

Sorry, I like to make sure all the small things are taken care of xD #perfectionist o_o

hartnn (hartnn):

its there \(\sum_{N}^{n=1}\int\limits_{0}^{\pi}a_n \frac{ 1 }{ 2 }[\cos[(m-n)x]+\cos[(m+n)x]dx\) and thats a good habit actually

OpenStudy (babynini):

haha thanks. It annoys some people :> ok so theen..we would pull out the 1/2 to the front as a constant

hartnn (hartnn):

you can pull out a_n/2 altogether, but don't put it before the sum operator

OpenStudy (babynini):

\[\sum_{N}^{n=1}\frac{ 1 }{ 2 }a_n \int\limits_{0}^{\pi}\cos[(m-n)x]+\cos[(m+n)x]dx\]

hartnn (hartnn):

yes, now whats the integral of cos ax ?

OpenStudy (babynini):

\[\frac{ 1 }{ a }\sin(ax)+C\]

hartnn (hartnn):

good so you you'll get the terms like \(\sin (m-n)\pi , \sin (m+n)\pi, \sin (m-n)0 , \sin (m+n)0 \) which are all 0! wanna give it a try yourself?

OpenStudy (babynini):

and the "1/a" part? o.0

hartnn (hartnn):

1/a(0) = 0 :P

OpenStudy (babynini):

ou xD

OpenStudy (babynini):

let me seee

hartnn (hartnn):

you'll get a m-n in the denominator for one terms. thats why n cannot be = m, otherwise denominator = 0 thats the reason we separate it out!

OpenStudy (babynini):

ok so.. Let me see if I understand correctly lol

OpenStudy (babynini):

\[\int\limits_{0}^{\pi}\cos[(m-n)x]dx\]\[u=mx-nx\]\[du=mdx-ndx => (m-n)dx\]\[dx=\frac{ du }{ (m-n) }\]\[\frac{ 1 }{ (m-n)} \int\limits_{0}^{\pi}\cos(u)du\]\[\frac{ 1 }{ (m-n) }[\sin[(m-n)x]]|^\pi_0\]

hartnn (hartnn):

good going! continue

OpenStudy (babynini):

\[\frac{ 1 }{ (m-n) }[\sin[(m-n)\pi]-\sin[(m-n)0]]\]now sure how to evaluate those?

hartnn (hartnn):

exactly at this step: 1. we say that \(m\ne n\), as denominator can't be 0 2. use the fact that \(\sin a\pi = 0\) for a = 0, \pi, 2pi, ...

OpenStudy (babynini):

hmhm

hartnn (hartnn):

so \(\sin (m-n)\pi = 0 \\ \sin 0 = 0 \)

OpenStudy (babynini):

and the other one is just sin[(m-n)0] = 0 also :P yayay

OpenStudy (babynini):

Then the 1/(m-n) * 0 = 0

hartnn (hartnn):

same thing with m+n :)

OpenStudy (babynini):

the m+n is the entire same process I just have to put a little + instead of - everywhere? xD

hartnn (hartnn):

exactly

OpenStudy (babynini):

\[\sum_{N}^{n=1}\frac{ 1 }{ 2 }a_n[0-0]\]then...in the end we would have something like this?

OpenStudy (babynini):

oops that would be a 0+0 but whatever haha

hartnn (hartnn):

right doesn't make a difference

OpenStudy (babynini):

and then that..just = 0?

hartnn (hartnn):

but remember we said \(m \ne n\) so we have to consider the case when m= n

OpenStudy (babynini):

\[\int\limits_{0}^{\pi}\sum_{N}^{n=1}a_ncos(nx)\cos(mx)dx\]\[\sum_{N}^{n=1}a_n \int\limits_{0}^{\pi}\cos(nx)\cos(mx)dx\]\[\sum_{n=1}^{N, n \neq m}[\int\limits_{0}^{\pi}a_ncos(nx)\cos(mx)dx]+\sum_{n=1}^{N,n=m} \int\limits_{0}^{\pi}a_mcos^2m(x)dx\] see proof \[0+\sum_{n=1}^{N}a_m \int\limits_{0}^{\pi}\cos^2(mx)dx\]

OpenStudy (babynini):

Does writing it like that make sense? xD lol aah so many parts.

hartnn (hartnn):

when n=m we have \(a_m \int\limits_{0}^{\pi}\cos^2(mx)dx\)

hartnn (hartnn):

so your last step should not have the sum sign

OpenStudy (babynini):

to the right of the 0+ ?

hartnn (hartnn):

yeah

hartnn (hartnn):

its just one term, when n=m, so need of addition sign

OpenStudy (babynini):

I see :)

OpenStudy (babynini):

so now..we just need to calculate \[0+a_m \int\limits_{0}^{\pi}\cos^2(mx)dx\]

OpenStudy (babynini):

which is an identity! yay ehhe

hartnn (hartnn):

thank god lol

hartnn (hartnn):

any more doubts? :)

OpenStudy (babynini):

Ikr. ok so because the mx is there would it be? \[\int\limits_{0}^{\pi}\frac{ 1+\cos(2mx) }{ 2 }dx\]

hartnn (hartnn):

correct

hartnn (hartnn):

also there is an a_m

hartnn (hartnn):

but its outside the integral, so nevermind

OpenStudy (babynini):

\[a_m \frac{ 1 }{ 2 }[x-\frac{ \sin(2mx) }{ 2m }]|^\pi_0\]...is that right? lol

hartnn (hartnn):

why negative in between?

OpenStudy (babynini):

...I..felt like it xP yeah that should be a +

hartnn (hartnn):

then good, continue with + in between

OpenStudy (babynini):

\[a_m[\frac{ x }{ 2 }+\frac{ \sin(2mx) }{ 4m }]|^\pi_0\]\[a_m[(\frac{ \pi }{ 2 }+\frac{ \sin(2m \pi) }{ 4m })-(\frac{ 0 }{ 2 }+\frac{ \sin(2m0) }{ 4m })]\]

hartnn (hartnn):

you know whats sin 2mpi = ... ?

OpenStudy (babynini):

er..no o.0

OpenStudy (babynini):

0?

hartnn (hartnn):

m is an integer, so 2m is also an integer sin 0 = sin 0pi = 0 sin 1pi = 0 sin 2 pi = 0 sin 3pi = 0 ... sin (integer)pi = 0 sin (2m pi) = 0 makes sense?

OpenStudy (babynini):

oh yes, because sin(pi) always equals 0 I see i se

OpenStudy (babynini):

that makes so much sense haha

OpenStudy (babynini):

\[a_m[\frac{ \pi }{ 2 }+0-0-0]\]\[0+a_m(\pi/2)\]\[=a_m(\frac{ \pi }{ 2 })\]wooo!!

hartnn (hartnn):

yay! :D

OpenStudy (babynini):

You, sir, are a genius.

hartnn (hartnn):

I just have a practice of these type of problems, but thanks anyways ^_^

OpenStudy (babynini):

:) it's a bunch of tiny steps o.o

OpenStudy (babynini):

What exactly is that trig identity that we used to get the 1/2 with the cos thing?

hartnn (hartnn):

\(\Large \cos(A+B) + \cos(A-B) = 2 \cos A \cos B\)

OpenStudy (babynini):

aah glorious. ok:) So I think this is all done!! thanks!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!