Finding an inverse Fourier transform using the Laplace transform

4 replies · 3K views · last reply
PainterGuy
Messages
938
Reaction score
73
Hi,

This thread is an extension of this discussion where @DrClaude helped me. I thought that it'd be better to separate this question.

I couldn't find any other way to post my work other than as images so if any of the embedded images are not clear, just click on them. It'd make them clearer. I'd really appreciate if you can help me.

Original expression:
1587417117720.png


Laplace transform of the expression:
Fraction 10 over s(s^2 + 2s + 10), a Laplace-domain rational expression.


The graph of the expression is shown below.
1587417385474.png


Handwritten-style typeset derivation in red: Fourier transform definition, then Laplace transform of f(t) written as a Fourier transform of f(t)e^(-σt), with s = σ + iω.


Typeset notes stating a Laplace convergence condition, the trigonometric Fourier transform with coefficients A(w) and B(w), the exponential Fourier transform F(w), and the relation F(w)/2pi = A(w) - iB(w).


Handwritten-style math worked in red: Y(s) = 10 / (s(s^2+2s+10)), then with 2 replaced by b, and a long expansion of Y(sigma + j omega) into real and imaginary parts, with a denominator simplified using absolute values.

High res image for the above embedded image: https://imagizer.imageshack.com/img924/2191/JaiscO.jpg
Handwritten-style typeset derivation: substituting a fraction with a square root in the denominator, then f(t) = (1/pi) times the integral from 0 to infinity of a cos(wt) term plus a sin(wt) term, with long rational expressions in w and sigma.

High res image for the above embedded image: https://imagizer.imageshack.com/img921/3007/iPI3pi.jpg
Matlab:
clear all; close all; clc;

sig=1;
b=2;
t=linspace(0,30,3000);

for it=1:3000 %index for t varible

f=@(w)(1/pi).*(((10.*(sig.^3-sig.*w.^2+b.*sig.^2+10.*sig-2.*sig.*w.^2-b.*w.^2))/(sqrt(w.^6+w.^4.*(b.^2+2.*b.*sig+3.*sig.^2-20)+w.^2.*(2.*b.^2.*sig.^2+4.*b.*sig.*(sig.^2+5)+3.*sig.^4+100)+(b.^2.*sig.^2+2.*b.*sig.*(sig.^2+10)+sig.^4+20.*sig.^2+100).*sig^2))).*cos(w.*t(it))+(10.*(2.*sig.^2.*w+sig.*b.*w+w.*sig.^2-w.^3+b.*sig.*w+10.*w)/(sqrt(w.^6+w.^4.*(b.^2+2.*b.*sig+3.*sig.^2-20)+w.^2.*(2.*b.^2.*sig.^2+4.*b.*sig.*(sig.^2+5)+3.*sig.^4+100)+(b.^2*sig.^2+2.*b.*sig.*(sig.^2+10)+sig.^4+20.*sig.^2+100).*sig.^2))).*sin(w.*t(it)));
F(it)=integral(f,0,100); %evaluating the integral from w=0 to w=100

endplot(F) % F is inverse Fourier transform of f(t)

Sadly there is something wrong and I'm not getting the original f(t)=1-(1/3)e^(-t)sin(3t)-e^(-t)cos(3t). Please see the plot below. Where am I going wrong?

MATLAB plot of a decaying oscillatory curve: values start near -235 at t=0, oscillate and decay toward zero by about t=500, with x-axis 0 to 3000 and y-axis -250 to 50.
 
Attachments
  • Line plot of a numerically computed function against t from 0 to 3000, with axes labelled from -250 to 50 on the vertical axis. The curve drops sharply to about -230 near zero, oscillates with decaying amplitude, and settles at zero by roughly t = 500.
    laplace_fourier_5.jpg
    9.8 KB · Views: 334
Last edited:
EDIT: I just realized that this was an older post from you. My first sentence is therefore probably wrong - this may be the first thread where you ask this question. Sorry if my reply seems a little impatient!

This is the second thread where you are doing the same thing: taking the Laplace transform of a function, then trying to use the inverse Fourier transform to get that function back.

This time the algebra is much messier than the first time (so I will not even attempt to check it), plus you now have the case where the region of convergence is ##real(s)>0##. To get the Fourier transform ##\hat{F}(\omega)## from the Laplace transform ##F(s)## for this case, it is NOT true that ##\hat{F}(\omega) = F(\sigma + j\omega)## for any ##\sigma>0##. To get the Fourier transform from the Laplace transform for this case, you basically need to do at limit: ##\hat{F}(\omega) = \lim_{\sigma\rightarrow 0^+} F(\sigma + j \omega)##, and that limit needs to be in the sense of generalized functions (distributions). For example, for ##f(t) = u(t)##, (which is part of your original function, of course),
$$ \begin{eqnarray*}
F(s) & = & \frac{1}{s}\\
\hat{F}(\omega) & = & \lim_{\sigma\rightarrow 0^+} F(\sigma + j \omega) \\
& = & \lim_{\sigma\rightarrow 0^+} \frac{1}{\sigma + j \omega} \\
& = & \pi \delta(\omega) + \frac{1}{j \omega}
\end{eqnarray*}
$$

To learn how to figure out those limits for yourself you need to learn a little about generalized functions (also called distribution theory). That would also let you know the proper way to interpret the ##1/j\omega## term (it isn't exactly what you think it is). But that seems way beyond the scope of your exercise. There might be a clever way to enable you to do what you seem to be trying to do, but I will leave that up to you and others to figure it out. I suspect it won't be a fruitful exercise.

Why don't you just find the Fourier transform of your signal in the first place? Then you will see that it has a delta function in it.

jason
 
Last edited:
  • Like
Likes   Reactions: PainterGuy
jasonRF said:
EDIT: I just realized that this was an older post from you. My first sentence is therefore probably wrong - this may be the first thread where you ask this question. Sorry if my reply seems a little impatient!

No problem, Sir!

jasonRF said:
This is the second thread where you are doing the same thing: taking the Laplace transform of a function, then trying to use the inverse Fourier transform to get that function back.

Yes, I have been trying to understand Laplace transform, and how it relates to physical systems.

jasonRF said:
To get the Fourier transform from the Laplace transform for this case, you basically need to do at limit: ##\hat{F}(\omega) = \lim_{\sigma\rightarrow 0^+} F(\sigma + j \omega)##, and that limit needs to be in the sense of generalized functions (distributions). For example, for ##f(t) = u(t)##, (which is part of your original function, of course),
$$ \begin{eqnarray*}
F(s) & = & \frac{1}{s}\\
\hat{F}(\omega) & = & \lim_{\sigma\rightarrow 0^+} F(\sigma + j \omega) \\
& = & \lim_{\sigma\rightarrow 0^+} \frac{1}{\sigma + j \omega} \\
& = & \pi \delta(\omega) + \frac{1}{j \omega}
\end{eqnarray*}
$$

To learn how to figure out those limits for yourself you need to learn a little about generalized functions (also called distribution theory). That would also let you know the proper way to interpret the ##1/j\omega## term (it isn't exactly what you think it is). But that seems way beyond the scope of your exercise. There might be a clever way to enable you to do what you seem to be trying to do, but I will leave that up to you and others to figure it out. I suspect it won't be a fruitful exercise.

Actually I was working on this limit problem last night but couldn't make any sense of it.

\begin{eqnarray*}
& & \lim_{\sigma\rightarrow 0^+} \frac{1}{\sigma + j \omega} \\
\end{eqnarray*}

Anyway, the following expression which I mentioned in my first post in this thread:
1588558850538.png

is a solution to the differential equation y′′(t)+2y′(t)+10y(t)=10. The Laplace transform of expression is Y(s)=(4s+8) / (s²+2s+10). Later I was able to see that the expression, y(t)=1-(1/3)e^-t*sin(3t)-e^-t*cos(3t), doesn't have Fourier transform since the expression does not converge.

To resolve the issue, I instead used the differential equation, y′′(t)+2y′(t)+10y(t)=0. Its solution is y(t)=4e^-tcos(3t)+1.333e^-t*sin(3t). In this case y(t) converges and has Fourier transform. The laplace transform is Y(s)=(4s+8) / (s²+2s+10)

I was able to solve it and code it successfully. I didn't share the solution here because I had to change the original differential equation to a new one whose solution, y(t), converges, as stated above.

Thank you!
 
PainterGuy said:
Actually I was working on this limit problem last night but couldn't make any sense of it.

\begin{eqnarray*}
& & \lim_{\sigma\rightarrow 0^+} \frac{1}{\sigma + j \omega} \\
\end{eqnarray*}
It is not easy. What that relation means is that for any "nice" function ##\phi(\omega)##,
$$
\lim_{\sigma\rightarrow 0^+} \int_{-\infty}^{\infty} \frac{\phi(\omega)}{\sigma + j\omega} d\omega = \pi \phi(0) + \lim_{\epsilon\rightarrow 0^+}\left[ \int_{-\infty}^{-\epsilon} \frac{\phi(\omega)}{j\omega} d\omega + \int_{\epsilon}^\infty \frac{\phi(\omega)}{j\omega} d\omega \right]
$$

There are two standard ways of proving this. Perhaps the most common one for physicists and engineers uses contour integration from the theory of complex variables. A second way to prove it uses the theory of generalized functions, also called distribution theory. The different proofs will require different properties of the function ##\phi(\omega)## (that is, different definitions for what "nice" means).

Unless you are really familiar with complex variables and/or distribution theory, cases like ##u(t)## are better solved by directly computing the Fourier transform, since you should be able to just look up the answer in a table. That is why I think your approach of taking the Laplace transform then trying to transform it to a Fourier transform is not a good one in general. If you want the Fourier transform, just take Fourier transform. Why mess with the Laplace transform at all?

Jason
 
  • Like
Likes   Reactions: PainterGuy
jasonRF said:
That is why I think your approach of taking the Laplace transform then trying to transform it to a Fourier transform is not a good one in general. If you want the Fourier transform, just take Fourier transform. Why mess with the Laplace transform at all?

Thank you for the advice. I was making it more complicated. I'm not familiar with complex variables and/or distribution theory but I understand it now.