Fourier series How to integrate SinxCosnx?

Click For Summary
SUMMARY

The discussion focuses on computing the Fourier cosine series for the function f(x) = sin(x) over the interval (0, π). The user initially calculates the coefficient a0 as (2/π) * integral(sin(x)dx) from 0 to π, resulting in 4/π. For the coefficient an, the user seeks guidance on integrating sin(x)cos(nx), which can be simplified using the product-to-sum identity. Additionally, the user inquires about computing the Fourier series for a piecewise function using Euler's formulas, confirming the correct approach of splitting the integral for each segment of the function.

PREREQUISITES
  • Understanding of Fourier series and their applications
  • Familiarity with integral calculus, specifically integration techniques
  • Knowledge of product-to-sum identities in trigonometry
  • Experience with Euler's formulas for complex exponentials
NEXT STEPS
  • Learn how to apply the product-to-sum identities for trigonometric functions
  • Study the derivation and application of Euler's formulas in Fourier analysis
  • Explore the process of calculating Fourier coefficients for piecewise functions
  • Investigate the convergence properties of Fourier series
USEFUL FOR

Mathematicians, physics students, and engineers involved in signal processing or harmonic analysis who need to compute Fourier series for various functions.

hydralisks
Messages
19
Reaction score
0

Homework Statement


Compute the Fourier cosine series for given function:

f(x)=sinx 0<x<pi

Homework Equations



for cosine series of f(x) on [0,T]... use this general equation:
http://mathworld.wolfram.com/FourierCosineSeries.html

The Attempt at a Solution



so I get:

a0 = (2/pi) * integral(sinxdx) with bounds 0 to pi = 4/pi

but then.. when I try to compute an

I get
an=(2/pi) * integral(sinx*cosnx*dx) with bounds 0 to pi
How do I integrate sinxcosnx?
 
Last edited:
Physics news on Phys.org
How did you go from f(x)=e^x to f(x)=sin(x)? Either way use the product-to-sum identity to write sin(x)cos(nx) as a sum of sine functions or express the sine and cosine functions in terms of complex exponentials.
 
Cyosis said:
How did you go from f(x)=e^x to f(x)=sin(x)? Either way use the product-to-sum identity to write sin(x)cos(nx) as a sum of sine functions or express the sine and cosine functions in terms of complex exponentials.

Ah, sorry I'm becoming delusional from doing too much work in one day. It's fixed now.

I do get sin(x)cos(nx) right? Or am I doing something wrong
 
Yes you do get sin(x)cos(nx) with the edited f(x). Now use \sin \theta \cos \varphi = {\sin(\theta + \varphi) + \sin(\theta - \varphi) \over 2}
 
Ah, thanks so much. Sorry I actually have another question though,

I am asked to compute the Fourier series for the following 2 part function:

f(x)=1 -2<x<0
f(x)=x 0<x<2

I'm supposed to do this using the "Euler formulas" not the cos/sin formulas.

However, I'm not sure how this two part thing works. When trying to find an, do I just do the integral of part 1 + integral of part 2?

so...
an = [(1/2)*integral(1*cos(n*pi*x/2)) from -2 to 0] + [(1/2)*integral(x*cos(n*pi*x/2)) from 0 to 2]
 
You're splitting the integral up correctly, but you said you're supposed to use the exponential form of the Fourier-transform after which you use the cosine form instead (confusing). Do it again using the exponential form.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K