How Do You Calculate Fourier Series Coefficients for f(t) = sin(pi*t)?

In summary, the Trigonometric Identities can be used to solve for the An and Bn coefficients for the Fourier series f(t) = sin (pi*t) from 0<t<1, period 1. These coefficients can be found by substituting limits of integration and integrating sin([pi]t)sin(nt) and sin([pi]t)cos(nt). Once found, the coefficients can be plugged into the Fourier series equation to get the function f(t).
  • #1
anish
4
0
I am having trouble finding the An and Bn coefficients for the Fourier series f(t) = sin (pi*t) from 0<t<1, period 1

Please help! Thank you!
 
Physics news on Phys.org
  • #2
Newbie wants to bump this query:

I was having trouble with this problem as well until I discovered a simple algebra error; here is how I set it up

[tex]a_0 = \frac{1}{\frac{1}{2}}\int_0^1 Sin(\pi t) \;dt = \frac{4}{\pi}[/tex]

[tex]A_N = \frac{1}{\frac{1}{2}}\int_0^1 Sin(\pi t) Cos(2 n \pi t)\; dt [/tex]

[tex]B_N = \frac{1}{\frac{1}{2}}\int_0^1 Sin(\pi t) Sin (2 n \pi t)\; dt [/tex]


A source advises the Trigonometric Identities:

[tex]2 Sin[A] Cos = Sin [A+B] + Sin[A-B] [/tex]

[tex]2 Sin[A] Sin = Cos[A-B] - Cos[A+B] [/tex]

let [tex] u = \pi t + 2 n\pi t = A + B \mbox{\quad and let\quad} v = \pi t - 2 n \pi t = A -B[/tex]

then

[tex]A_n = 2\; \frac{1}{2}\;\;\frac{ 1}{\pi (1+ 2 n)} \;\;\int_0^{\;\pi(1+2 n)} Sin(u)\; du[/tex]

[tex] \quad\quad\quad+ \quad 2\;\frac{1}{2}\;\;\frac{ 1}{\pi (1- 2 n)} \;\;\int_0^ {\;\pi(1-2 n)} Sin(v)\;dv [/tex]

[tex]B_n = 2\; \frac{1}{2}\;\;\frac{ 1}{\pi (1-2 n)} \;\;\int_0^{\;\pi(1-2 n)} Cos(v)\; dv[/tex]
[tex]\quad\quad + \quad 2 \;\frac{1}{2}\;\;\frac{ 1}{\pi (1+ 2 n)}\;\; \int_0^ {\;\pi(1+2 n)} Cos(u)\;du [/tex]

where the substituted limits of integration, [tex] \pi (1 \pm 2n)=\pi\pm2n\pi [/tex] for [tex] \mbox{integer}\; n\geq1[/tex] are equivalent to [tex]\pi[/tex] due to periodicity of the Sine and Cosine functions.
 
Last edited:
  • #3
anish said:
I am having trouble finding the An and Bn coefficients for the Fourier series f(t) = sin (pi*t) from 0<t<1, period 1

Please help! Thank you!

So, basically, you need to integrate sin([pi]t)sin(nt) and sin([pi]t)cos(nt).

Use the trig identities sin(a)sin(b)= (1/2)(cos(a-b)- cos(a+b)) and
sin(a)sin(b)= (1/2)(sin(a+b)+ sin(a-b)).
 
  • #4
Yes, except for typo--second equation should read [tex]sin(a)cos(b) = 1/2 (sin[a+b] + sin[a-b])[/tex]and with the substitutions suggested these integrals tidy up rather nicely [itex]\mbox{ (hint---} B_n = 0\mbox{ for all integers,\:} n\geq 1)[/itex].
I get a good form for the actual function [itex]sin(\pi t) [/itex] being modeled by Fourier using
[tex] \frac{a_0}{2}+\sum_1^{\infty} A_n\;Cos(2 n \pi t) \quad\mbox{ \quad n is an integer}[/tex]
where
[tex]A_n =\frac{-4}{\pi (4n^2-1)}[/tex]
so
[tex]f(t)=\frac{2}{\pi}-\frac{4}{\pi}\sum_1^{\infty}\frac{Cos(2n\pi t)}{4n^2-1}=Sin(\pi t)[/tex]

[tex]f(t)\sim\frac{2}{\pi}\;-\;\frac{4}{\pi}\left(\frac{Cos(2\pi t)}{3}\;+\;\frac{Cos(4\pi t)}{15}\;+\;\frac{Cos(6\pi t)}{35}\;+\;\cdots\right ) [/tex]
 
Last edited:
  • #5
Follows an attempt to display a plot of [itex]Sin(\pi t)[/tex] of period 1 using the initial constant term and 6 iterations of the Cos term. Click on the bitmap file.
 

Attachments

  • foo.bmp
    49.8 KB · Views: 1,771
Last edited:
  • #6
You guys are missing the forest for the trees!

The Fourier series is a sum of sines and cosines, and it's unique. So if you can find one set of coefficients that works, you've got THE Fourier series.

So if

sin(pi*t) = a0 + An*SUM[sin(n*pi*t)] + Bn*SUM[cos(n*pi*t)],

can't you just look at that and see a set of coefficients that will make the left and right hand sides of that equation the same?
 
Last edited:
  • #7
OK, here is the same problem except make the period 2 and let the function to be modeled by Fourier series be:

[itex] f(t) =\left\{\begin{array}{cr}0&\mbox{if\;\;}-1<t<0\\sin(\pi t)&\mbox{if\quad} 0<t<1\end{array}\right [/itex]

Calculations very similar to those pictured earlier above and adjusted only slightly for the period size being doubled lead to the following series

[itex]\frac{1}{\pi} \;+\;\frac{1}{2}\;Sin(\n\pi t)\;-\frac{2}{\pi}\;\sum_{n=2}^{\infty}\;\frac{Cos(n\;\pi\;t)}{n^2-1}=f(t)[/itex]

This series produces a very nice periodic plot modelling f(t) with only 5 iterations of the Cos term .[tex]B_1=\frac{1}{2}[/tex] was calculated separately with its own integral as the general expression for [tex]B_n[/tex] is undefined at n=1 and 0 for [tex]n\geq2[/tex]. For the same reason the Cos terms are iterated starting at n=2 with [tex]A_1 = 0[/tex])

Click on the bitmap to see the plot so generated.
 

Attachments

  • foo2.bmp
    49.8 KB · Views: 1,452
Last edited:

Related to How Do You Calculate Fourier Series Coefficients for f(t) = sin(pi*t)?

1. What is a Fourier Series?

A Fourier Series is a mathematical representation of a periodic function as a sum of sine and cosine functions. It is used to decompose a complex function into simpler components that are easier to analyze.

2. How is a Fourier Series of sin (pi*t) calculated?

The Fourier Series of sin (pi*t) can be calculated using the formula: f(t) = a0 + ∑[n=1 to ∞](ancos(nπt) + bnsin(nπt)), where an and bn are the Fourier coefficients.

3. What is the period of the Fourier Series of sin (pi*t)?

The period of the Fourier Series of sin (pi*t) is 2, meaning that the function repeats itself every 2 units along the x-axis.

4. How is the convergence of the Fourier Series of sin (pi*t) determined?

The convergence of the Fourier Series of sin (pi*t) can be determined using the Dirichlet conditions, which state that the function must be periodic, piecewise continuous, and have a finite number of maxima and minima within a period.

5. What are some applications of the Fourier Series of sin (pi*t)?

The Fourier Series of sin (pi*t) has various applications in signal processing, image and sound compression, and solving differential equations. It is also used in physics, engineering, and other fields to analyze and model periodic phenomena.

Similar threads

  • Differential Equations
Replies
7
Views
465
  • Differential Equations
Replies
4
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
377
Replies
28
Views
5K
  • Differential Equations
Replies
4
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
297
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
392
  • Calculus and Beyond Homework Help
Replies
16
Views
626
  • Calculus and Beyond Homework Help
Replies
1
Views
582
Back
Top