Computing Fourier Series for a Piecewise Function

Click For Summary
SUMMARY

The discussion focuses on computing the Fourier series for the piecewise function defined as y(x)=A sin(2πx/L) for 0 ≤ x ≤ L/2 and y(x)=0 for L/2 < x ≤ L. The coefficients B_n are derived using the integral B_{n}=(2/L)∫[0 to L/2] A sin(2πx/L) sin(nπx/L) dx. The solution reveals that for even n, B_n equals A/2, while for odd n, the final result is B_{n}=(4A(-1)^{(n+1)/2})/(π(n²-4)). The use of trigonometric identities is suggested to simplify the calculations.

PREREQUISITES
  • Understanding of Fourier series and piecewise functions
  • Familiarity with trigonometric identities
  • Knowledge of integral calculus
  • Experience with mathematical notation and functions
NEXT STEPS
  • Study Fourier series derivation techniques for piecewise functions
  • Learn about trigonometric identities, specifically sin(a) sin(b) transformations
  • Explore applications of Fourier series in signal processing
  • Investigate the convergence properties of Fourier series
USEFUL FOR

Students in mathematics or engineering fields, particularly those studying signal processing, applied mathematics, or physics, will benefit from this discussion on Fourier series computation.

Knissp
Messages
72
Reaction score
0

Homework Statement


Find the Fourier series for y(x)=\begin{cases}<br /> A\sin(\frac{2\pi x}{L}) &amp; 0\leq x\leq\frac{L}{2}\\<br /> 0 &amp; \frac{L}{2}\leq x\leq L\end{cases}

Homework Equations


B_{n}=\frac{2}{L}\int_{0}^{L}y(x)\sin(\frac{n\pi x}{L})dx

The Attempt at a Solution



B_{n}=\frac{2}{L}\int_{0}^{L/2}A\sin(\frac{2\pi x}{L})\sin(\frac{n\pi x}{L})dx

=\frac{2}{L}\int_{0}^{\frac{L}{2}}A\sin(\frac{\pi x}{L/2})\sin(\frac{(n/2)\pi x}{L/2})dx

=\frac{1}{p}\int_{0}^{p}A\sin(\frac{\pi x}{p})\sin(\frac{\frac{n}{2}\pi x}{p})dx

=\begin{cases}<br /> 0 &amp; \frac{n}{2}=1\\<br /> \frac{A}{2} &amp; \frac{n}{2}\in\mathbb{Z}\text{ and }\frac{n}{2}\neq1\end{cases}

So this takes care of the even values of n, but I'm not sure what to do when n is odd.

=\frac{1}{p}\int_{0}^{p}A\sin(\frac{\pi x}{p})\sin(\frac{(\frac{2k+1}{2})\pi x}{p})dx

=\frac{1}{p}\int_{0}^{p}A\sin(\frac{\pi x}{p})\sin(\frac{(k\pi x+\frac{1}{2}\pi x}{p})dx

=\frac{1}{p}\int_{0}^{p}A\sin(\frac{\pi x}{p})[\sin(\frac{k\pi x}{p})\cos(\frac{\frac{1}{2}\pi x}{p})+\cos(\frac{k\pi x}{p})\sin(\frac{\frac{1}{2}\pi x}{p})]dx

I'm not really sure if this is going anywhere. The final answer should be B_{n}=\frac{4A(-1)^{\frac{n+1}{2}}}{\pi(n^{2}-4)}, where n is odd.

Any ideas? Thank you.
 
Last edited:
Physics news on Phys.org
Knissp said:
B_{n}=\frac{2}{L}\int_{0}^{L/2}A\sin(\frac{2\pi x}{L})\sin(\frac{n\pi x}{L})dx

Try using a trig identity at this point.

\sin(a) \sin (b) = ?
 
Thanks, that worked perfectly!
 

Similar threads

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