Fourier cosine series of cos(x) from x=0 to Pi

Click For Summary
SUMMARY

The Fourier cosine series for the function f(x) = cos(x) over the interval (0, π) results in a series that evaluates to zero. The calculations for the coefficients a0 and an yield a0 = 0 and an = 0, indicating that the series does not contribute any terms. This conclusion is supported by the observation that the area under the curve of cos(x) from -π to π is zero, confirming that the Fourier cosine series for cos(x) with a period of π is effectively zero.

PREREQUISITES
  • Understanding of Fourier series and their applications
  • Familiarity with integration techniques, particularly integration by parts (IBP)
  • Knowledge of trigonometric identities, specifically the product-to-sum identities
  • Basic calculus, including definite integrals
NEXT STEPS
  • Learn about Fourier series convergence and its implications for periodic functions
  • Study the derivation and application of product-to-sum identities in trigonometric integrals
  • Explore the differences between Fourier cosine series and exponential Fourier series
  • Investigate the implications of half-range extensions in Fourier analysis
USEFUL FOR

Mathematicians, physics students, and engineers interested in signal processing or harmonic analysis will benefit from this discussion on Fourier cosine series.

alias99
Messages
6
Reaction score
0

Homework Statement


Find the Fourier cosine series for f(x) = cos x, 0 < x < Pi

EDIT: I believe we are talking about a half-range extension..


Homework Equations


Fourier cosine series:
f(x) = a0/2 + Sum(n = 1 to infinity) (an * cos (nx))

where a0 = 2/L * integral (x = 0, x = L) (f(x) dx)

and an = 2/L * integral (x = 0, x = L) (f(x) * cos (n*Pi*x/L) dx)

Sorry if that's hard to understand...


The Attempt at a Solution



I graphed the function and extended the period to - Pi, i.e. -Pi < x < Pi

I found a0 = 2/Pi * integral (x = 0, x = L) (cos x dx) = 0
an = 2/Pi * integral (x = 0, x = L) (cos x * cos (nx) dx)
and evaluated the integral using IBP...

an = 2/Pi * (ncos(x)*sin (nx) - sin(x)cos(nx))*1/(n2-1)| x = 0, x = Pi
which gives me an = 0!

So the Fourier cosine series would be:
f(x) = 0

I would really appreciate any clarification as getting 0 for the series doesn't sound right..

Thank you in advance
 
Last edited:
Physics news on Phys.org
Hi alias99! :smile:
alias99 said:
I found a0 = 2/Pi * integral (x = 0, x = L) (cos x dx) = 0
an = 2/Pi * integral (x = 0, x = L) (cos x * cos (nx) dx)
and evaluated the integral using IBP...

an = 2/Pi * (ncos(x)*sin (nx) - sin(x)cos(nx))*1/(n2-1)| x = 0, x = Pi
which gives me an = 0!

Nooo … no need for IBP here (and it doesn't help anyway :redface:) …

learn your https://www.physicsforums.com/library.php?do=view_item&itemid=18"

cosx cos(nx) = … ? :smile:
 
Last edited by a moderator:
Hi tiny-tim! :smile: (reminds me of the Nudie juices..hmm)
Thanks for your response ;)

You're right, I do need to learn my identities :-p

I can now evaluate the integral much easier (Lol... funny thing is I did manage to get a result by IBP.. it looked like it would have continued indefinetely but I got the original integral on the RHS, took it over to the LHS and made it the subject)

so now..

cosx cos(nx) = 1/2 (cos (x-nx) + cos (x+nx)) :smile: which can be integrated fairly easily

I still get 0! hehe.. I guess it is 0 after all. probably has something to do with cos(x) having an area under the curve of 0 between x = -Pi and x = Pi (or even x = 0 to Pi)

I'm probably going to state that the Fourier cosine series of cos (x) with a period of Pi is cos(x) .. or is it 0.. lol :-p

I'd appreciate just a word of confirmation, if you don't mind :)
 
Hi alias99! :smile:
alias99 said:
cosx cos(nx) = 1/2 (cos (x-nx) + cos (x+nx)) :smile: which can be integrated fairly easily

I still get 0! hehe.. I guess it is 0 after all. probably has something to do with cos(x) having an area under the curve of 0 between x = -Pi and x = Pi (or even x = 0 to Pi)

I'm probably going to state that the Fourier cosine series of cos (x) with a period of Pi is cos(x) .. or is it 0.. lol :-p

I'd appreciate just a word of confirmation, if you don't mind :)

Well, it seemed a strange question …
alias99 said:
Find the Fourier cosine series for f(x) = cos x, 0 < x < Pi
… if f is 2π-periodic, then yes obviously the only term in its Fourier cosine series is the first one, cosx.
 
Great! Thanks a lot tiny-tim :biggrin:
 
I also just tried to do this and it looks like this is pretty trivial if you try to get the exponential Fourier series instead? Because cosx can be written as e^jwt+e^-jwt
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K