Calculating the Inverse Discrete time Fourier transform

In summary: How do I get rid of it?Thanks again for the help!In summary, to find the inverse DTFT of a signal with a DTFT defined as Y(f)={1, 0≤|f|<fs/8}, and y(k) defined as y(k)=\frac{1}{f_{s}}\int_{-f_s/2}^{f_s/2} Y(f)e^{jk2\pi fT}df, you must first determine the boundaries for which Y(f) is equal to 1, which in this case is -fs/8 to fs/8. Then, you can integrate y(k) with these boundaries, resulting in \frac{1}{f_{s
  • #1
Evo8
169
0

Homework Statement


Let the DTFT (Discrete time Fourier transform) of a signal beY(f)=
{1 0≤lfl< [itex]\frac{fs}{8}[/itex]
{0 OtherwiseCalc y(k)

Homework Equations


[itex]
y(k)=\frac{1}{f_{s}}[/itex][itex]\int Y(f) e^{jk2\pi fT}df lkl≥0 [/itex]

The Attempt at a Solution


So what I understand from this is that my Y(f) is basically 1 when f is between the boundaries of 0 and [itex]\frac{f_{s}}{8}[/itex]

So I basically get just the exponential in my inverse formula right?

So [itex] y(k)= \frac{1}{f_{s}}\int e^{jk2/pi ft}
[/itex]

Which leads to be

[itex]
\frac{1}{f_{s}} e^{jk2 \pi ft}
[/itex]


However i feel this is incorrect as I don't know what to really do with my limit of fs/8?

Thanks for any hlep..
 
Physics news on Phys.org
  • #2
Hi Evo8! :smile:

Evo8 said:

Homework Statement


Let the DTFT (Discrete time Fourier transform) of a signal be


Y(f)=
{1 0≤lfl< [itex]\frac{fs}{8}[/itex]
{0 Otherwise


Calc y(k)

Homework Equations


[itex]
y(k)=\frac{1}{f_{s}}[/itex][itex]\int Y(f) e^{jk2\pi fT}df \quad |k|≥0 [/itex]

Didn't you say you were doing a "discrete" Fourier transform?
In that case you should have a summation instead of an integral.

Furthermore, your exponential does not look quite right.
It shouldn't have a "k" as well as a "T" in it - one or the other.

What are the boundaries of this integral?

And what is the point of including |k|≥0?
This would always be true.


Evo8 said:

The Attempt at a Solution


So what I understand from this is that my Y(f) is basically 1 when f is between the boundaries of 0 and [itex]\frac{f_{s}}{8}[/itex]

So I basically get just the exponential in my inverse formula right?

So [itex] y(k)= \frac{1}{f_{s}}\int e^{jk2/pi ft}
[/itex]

Which leads to be

[itex]
\frac{1}{f_{s}} e^{jk2 \pi ft}
[/itex]


However i feel this is incorrect as I don't know what to really do with my limit of fs/8?

Thanks for any hlep..

Yes, the limit of fs/8 should be used as a boundary to the integral.
 
  • #3
Hi I Like Serena!

Correct I did say Discrete time FT. However I am given the DTFT and need to calculate the inverse. To find just plain y(k). That is why I have the integral instead. I am using the equation i listed under relevant equations.

Good point on the |k|≥0. This was just how it was defined in my book.

Both of my definitions for DTFT and IDTFT have k AND T in the exponential? Why do you say it should be one or the other? Am I missing something?

The boundaries to this integral from my book are -fs/2 and fs/2... Maybe I dot fully understand what fs is in this case?

As always thanks for the replies and help! Much appreciated!

P.s. What are the tags for absolute value? I haven't been able to find them?
 
  • #4
Evo8 said:
Hi I Like Serena!

Correct I did say Discrete time FT. However I am given the DTFT and need to calculate the inverse. To find just plain y(k). That is why I have the integral instead. I am using the equation i listed under relevant equations.

Good point on the |k|≥0. This was just how it was defined in my book.

Both of my definitions for DTFT and IDTFT have k AND T in the exponential? Why do you say it should be one or the other? Am I missing something?

The boundaries to this integral from my book are -fs/2 and fs/2... Maybe I dot fully understand what fs is in this case?

No, sorry, I mixed up your IDTFT with the DFT.

I didn't realize before but fs is the sampling frequency and T is the sampling time interval.
So fs=1/T.
Evo8 said:
As always thanks for the replies and help! Much appreciated!

P.s. What are the tags for absolute value? I haven't been able to find them?

On your keyboard.
It's the vertical line | that is on the same key as the backslash \.
Evo8 said:

The Attempt at a Solution


So what I understand from this is that my Y(f) is basically 1 when f is between the boundaries of 0 and [itex]\frac{f_{s}}{8}[/itex]

It's also 1 when f is between [itex]-\frac{f_{s}}{8}[/itex] and 0, due to the absolute value of f.
Evo8 said:
So I basically get just the exponential in my inverse formula right?

So [itex] y(k)= \frac{1}{f_{s}}\int e^{jk2\pi fT}
[/itex]

Can you include the boundaries to your integrals?
Those are rather important for stuff like this.
So it should be:
[tex] y(k)= \frac{1}{f_{s}}\int_{-f_s \over 2}^{f_s \over 2} Y(f) e^{jk2\pi fT} df[/tex]

Since Y(f) is 1 or 0, you can replace the boundaries by the appropriate boundaries where Y(f) is 1.
Evo8 said:
Which leads to be

[itex]
\frac{1}{f_{s}} e^{jk2 \pi ft}
[/itex]

Not quite. You didn't integrate integrate properly.
 
  • #5
Can you include the boundaries to your integrals?
Those are rather important for stuff like this.
So it should be:

Sorry about that I wasnt sure how to add the limits. I have figure it out though. Ill be sure to do so in the future.

It's also 1 when f is between −fs8 and 0, due to the absolute value of f.

So really my Y(f) is 1 between

[itex]-\frac{f_{s}}{8} and \frac{f_{s}}{8}[/itex]?

So my formula should look like this

[itex]y(k)=\int_{-\frac{f_{s}}{8}}^{\frac{f_{s}}{8}}Y(f) e^{jk2 pi fT}df[/itex]


But if my Y(f) is either 1 or 0 what happens when it is 0? Wont it wipe out the e altogether? If its 1 I get just the exponential integrated at the shown limits. Which IIRC the integral of an exponential is the exponential plus a constant C?

So I would get


[itex] \frac{1}{f_{s}} e^{jk2 pi fT} +C? [/itex]


I don't think I integrated this properly because I did not included any limits into my work. hmmm. I have to go back and review on how to integrate with a limit?

So below I've integrated with limits so i think anyway. Its been a while.


[itex] y(k)= \frac{1}{f_{s}} (e^{j2 pi fT \frac{f_{s}}{8}}-e^{-j2 pi fT \frac{f_{s}}{8}} +C)[/itex]


Im not sure about that +C though...
 
  • #6
Evo8 said:
Sorry about that I wasnt sure how to add the limits. I have figure it out though. Ill be sure to do so in the future.



So really my Y(f) is 1 between

[itex]-\frac{f_{s}}{8} and \frac{f_{s}}{8}[/itex]?

So my formula should look like this

[itex]y(k)=\int_{-\frac{f_{s}}{8}}^{\frac{f_{s}}{8}}Y(f) e^{jk2 pi fT}df[/itex]

But if my Y(f) is either 1 or 0 what happens when it is 0? Wont it wipe out the e altogether?

Yep! :smile:

That's why the boundaries are adjusted.
Where Y(f) is 0 everything is wiped out, so we bring that outside the boundaries.


Evo8 said:
If its 1 I get just the exponential integrated at the shown limits. Which IIRC the integral of an exponential is the exponential plus a constant C?

So I would get


[itex] \frac{1}{f_{s}} e^{jk2 pi fT} +C? [/itex]

The integral of an exponential is indeed an exponential.
But you appear to forget the chain rule.
What would you get if you calculate the derivative of what you have?

The constant C is the integration constant for indeterminate integrals, that is, integrals for which you do not know the boundaries.
Since you do have the boundaries, you should leave the constant C out.


Evo8 said:
I don't think I integrated this properly because I did not included any limits into my work. hmmm. I have to go back and review on how to integrate with a limit?

So below I've integrated with limits so i think anyway. Its been a while.


[itex] y(k)= \frac{1}{f_{s}} (e^{j2 pi fT \frac{f_{s}}{8}}-e^{-j2 pi fT \frac{f_{s}}{8}} +C)[/itex]


Im not sure about that +C though...

You still left "f" in the expression.
You're supposed to replace "f" with each boundary.
 
  • #7
Ah yes the chain rule. I have looked up this rule and remember it vaguely.

So I would have the integral of Y(f)*the integral of the exponential's with the limits

The integral of Y(f) in the limits would just be f correct?

The integral of the exponential in the limits and my integral of the function Y(f) would be?

[itex] y(k)=\frac{f}{f_{s}}(e^{jk2 \pi t \frac{fs}{8}}-e^{jk2 \pi t \frac{-fs}{8}})
[/itex]


EDIT: Origionally I thought the boundaires replaced the k's in the expression but now I see that it replaces the f's because the integral variable is f. Denoted by the df. So I added the k's back in. Now where does that leave me as I have k's in the exponential?
 
Last edited:
  • #8
The chain rule says that if you have a function like:
[tex]f(x)=e^{Ax}[/tex]
then the integral is:
[tex]\int_a^b e^{Ax} dx = {1\over A} e^{Ax} \big|_a^b = {1 \over A}(e^{Ab} - e^{Aa})[/tex]

Can you map this on your integral?
Basically I'm missing the 1/A factor.


Btw, your t should be a T, since it's not a time variable, but a sampling interval.
 
Last edited:
  • #9
Right i sometimes put that lower case t there even though I realize that it should be T. I will include the upper case from now on. Thanks for pointing it out.

So if I've done things correctly this is what I have


[itex]y(k)=\frac{1}{f_{s}jk2 \pi T}(e^{j \frac{k2 \pi T f_{s}}{8}}-e^{-j \frac{k2 \pi Tf_{s}}{8}})[/itex]


Now should that first term be [itex]\frac{f}{f_{s}jk2 \pi T}[/itex] ?

From taking the integral of my Y(f)? Or is what I have written above for y(k) more correct?

Thanks again
 
  • #10
What you have written for y(k) is correct now! :)

It should definitely not include f.
The integral is calculated with respect to f, eliminating f.
The resulting function y(k) is dependent on k only and not on f.


Btw, your formula for y(k) can be simplified using Euler's formula.
Are you aware of that?
 
  • #11
That was my next thought was weather or not i could simplify with euler formula.

I just gave it a try and everything basically cancels out? So I'm left with simply


[itex]y(k)= \frac{1}{f_{s}jk2 \pi T}[/itex]?


This makes sense when i think about it as the operator between the cos and j*sin is either +/- depending on the exponential sign. Since once is + and the other is - and the two exponential's are subtracted then all the terms have an opposite sign copy that get canceled. Did I make a mistake in my algebra?
 
  • #12
Apparently you made a mistake in your algebra.
The exponentials do not cancel out since they have a different power (different by a minus sign).
(And even if they did cancel, then you wouldn't be left with your result, because it would be zero.)

Perhaps you can reread how you can express the sine in exponentials?
 
  • #13
hmm good point. It would be 0 not 1 like i thought.

Ok well I think I am lost. If I replace all that is in the power of my exponential with [itex]\Theta[/itex]

Then I would get

[itex]\frac{1}{f_{s}jk2 \pi T} [(cos (\theta) + j sin (\theta) - cos(\theta) - j sin(\theta))][/itex]


??
 
  • #14
Evo8 said:
hmm good point. It would be 0 not 1 like i thought.

Ok well I think I am lost. If I replace all that is in the power of my exponential with [itex]\Theta[/itex]

Then I would get

[itex]\frac{1}{f_{s}jk2 \pi T} [(cos (\theta) + j sin (\theta) - cos(\theta) - j sin(\theta))][/itex]


??

Perhaps you could try the following (carefull with parentheses and minus signs!)?
[tex]\frac{1}{f_{s}jk2 \pi T} [(cos (\theta) + j sin (\theta)) - (cos(-\theta) + j sin(-\theta))][/tex]
 
  • #15
I like Serena said:
Perhaps you could try the following (carefull with parentheses and minus signs!)?
[tex]\frac{1}{f_{s}jk2 \pi T} [(cos (\theta) + j sin (\theta)) - (cos(-\theta) + j sin(-\theta))][/tex]

Please push Ronald Mcdonald down the stairs. Right. Order of operations is something I apparently didnt think to apply to this last night. I apologize for such a novice mistake. I am working long overnight shifts and i was a bit fatigued last night.

So I undersand [tex]\frac{1}{f_{s}jk2 \pi T} [(cos (\theta) + j sin (\theta)) - (cos(-\theta) + j sin(-\theta))][/tex] is in correct form.

Im assuming it could also be
[tex]\frac{1}{f_{s}jk2 \pi T} [(cos (\theta) + j sin (\theta)) - (cos(\theta) - j sin(\theta))][/tex] as well correct?

Im not sure I understand how to simplify this more. However i realize that its possible. When I use my calculator to simplify I get
[itex] 2 sin(\theta)j[/itex]

So I would then get
[itex] \frac{2 sin(\theta)j}{f_{s}jk2 \pi T}[/itex]
 
  • #16
Yes!
And you can simplify it further since you have common factors in the nominator and denominator that cancel against each other.
 
  • #17
Evo8 said:
Please push Ronald Mcdonald down the stairs.

Now why would you want me to do that?
Did he make a mistake too? :wink:
 
  • #18
I like Serena said:
Now why would you want me to do that?
Did he make a mistake too? :wink:

Ha!

Thanks again for the assistance! You break things down in a way that makes sense when something seems unclear. I really appreciate it!
 
  • #19
You're welcome! :)
 

FAQ: Calculating the Inverse Discrete time Fourier transform

1. What is the purpose of calculating the inverse discrete time Fourier transform (IDTFT)?

The IDTFT is used to convert a signal from the frequency domain to the time domain. This allows for the analysis of a signal's behavior over time, which is useful in many scientific and engineering applications.

2. How is the IDTFT different from the inverse Fourier transform?

The IDTFT is specifically used for discrete-time signals, while the inverse Fourier transform is used for continuous-time signals. The IDTFT also produces a discrete signal in the time domain, while the inverse Fourier transform produces a continuous signal.

3. What is the formula for calculating the IDTFT?

The formula for calculating the IDTFT is:

x[n] = (1/N) * Σk=0 to N-1 (X[k] * e^(j2πnk/N)), where N is the number of samples in the discrete signal and X[k] is the frequency-domain representation of the signal.

4. What is the significance of the IDTFT in signal processing?

The IDTFT is a fundamental tool in signal processing as it allows for the analysis and manipulation of signals in the time domain, which is essential for tasks such as filtering, noise reduction, and compression.

5. Are there any real-world applications of the IDTFT?

Yes, the IDTFT has many real-world applications, including speech and audio processing, digital communication, image processing, and control systems. It is also used in scientific fields such as physics and biology for analyzing experimental data.

Similar threads

Replies
3
Views
848
Replies
2
Views
2K
Replies
4
Views
2K
Replies
6
Views
2K
Replies
6
Views
2K
Back
Top