Message Boards Message Boards

0
|
6471 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:
GROUPS:

How to solve this Fourier transform

Posted 9 years ago

Function is: v(t)=4 for 0<t<pi/2 v(t)=-4 for -pi/2<t<0 v(t)=0 for -pi<t<-pi/2 and pi/2<t<pi

I solved this and got : v(t)=8/pi( sin(t) + sin(2t) + 1/3sin(3t) + 1/5sin(5t) + 1/3sin(6t) + 1/7sin(7t)+...) and it is correct.

but then it asks me for this:

It can be shown that the fourier transform of v(t) is given by: v(u)=(-4i/(u pi)) (1-cos(u pi^2))

a) By representig v(u) as a complex number of the form p-iq, evaluate p and q and at q values of u=n/2pi, for integer values of n in the range 0 to 7. hence sketch q over the interval from u=0 to u=7/2pi

b) By comparing p and q found in part a) with the values of the coefficients (am and bm) (the ones I find at the beginning!) explain the relationship between fourier transform of a periodic function and the coefficients of its fourier series.

ave no IDEAAAAAAA :( pls help!

POSTED BY: Pamela Vilela
2 Replies

It can be shown that the fourier transform of v(t) is given by: v(u)=(-4i/(u pi)) (1-cos(u pi^2))

Mathematica gives that directly

In[3]:= Clear[v]
v[t_] := Piecewise[{{0, -\[Pi] < t < -\[Pi]/2}, {-4 , -\[Pi]/2 < t < 0}, {4 , 0 < t < \[Pi]/2 }, {0, \[Pi]/2 < t < \[Pi]}}]

In[49]:= FourierTransform[v[t], t, u, FourierParameters -> {0, -2 \[Pi]}] // ExpToTrig // TrigReduce
Out[49]= (4 I (-1 + Cos[\[Pi]^2 u]))/(\[Pi] u)

The task a) is utterly easy with Mathematica (Why don't you use it?):

In[50]:= Clear[v]
v[u_] := (-4 I/(u \[Pi])) (1 - Cos[u \[Pi]^2])

In[52]:= ReIm /@ Join[{Limit[v[u], u -> 0]}, Table[v[u], {u, 1/(2 \[Pi]), 7/(2 \[Pi]), 1/(2 \[Pi])}]]
Out[52]= {{0, 0}, {0, -8}, {0, -8}, {0, -(8/3)}, {0, 0}, {0, -(8/5)}, {0, -(8/3)}, {0, -(8/7)}}

For task b) you explain how the formula for the fourier transform of v[t] (which is not a periodic function (because it is only defined for $-\pi \leq t \leq \pi$), but an odd function) coincides with the formulae for the computation of the fourier series coefficients $a_m, b_m$. To do that you use the identiy Exp[i x]=Cos[x]+ I Sin[x] as well as the fact that v[t] is odd and has finite support ( $-\pi \leq t \leq \pi$).

What you see is: all $a_m$ for the cosine fourier series are zero (the function is odd), also all real parts in part a) are zero. The $b_m$ you computed agree with the imaginary parts in part a) and represent the sine fourier series. This is the evidence to guide you through part b).

POSTED BY: Udo Krause
Posted 9 years ago

I'm sorry but I am new in this forum :(, I didn't know about mathematica so I don't know how to use it, and I was looking for a more step by step solution to the problem, but many thanks for your answer anyways:)

POSTED BY: Pamela Vilela

Group Abstract Group Abstract