Documentation Center |
Fourier transform
fourier(f,trans_var,eval_point)
fourier(f,trans_var,eval_point) computes the Fourier transform of f with respect to the transformation variable trans_var at the point eval_point.
Compute the Fourier transform of this expression with respect to the variable x at the evaluation point y:
syms x y f = exp(-x^2); fourier(f, x, y)
ans = pi^(1/2)*exp(-y^2/4)
Compute the Fourier transform of this expression calling the fourier function with one argument. If you do not specify the transformation variable, it is determined by symvar. For this expression, symvar chooses x as the transformation variable.
syms x t y f = exp(-x^2)*exp(-t^2); fourier(f, y)
ans = pi^(1/2)*exp(-t^2)*exp(-y^2/4)
If you also do not specify the evaluation point, fourier uses the variable w:
fourier(f)
ans = pi^(1/2)*exp(-t^2)*exp(-w^2/4)
Compute the following Fourier transforms that involve the Dirac, Heaviside, and piecewise functions:
syms t w fourier(t^3, t, w)
ans = -pi*dirac(w, 3)*2*i
syms t0 fourier(heaviside(t - t0), t, w)
ans = exp(-t0*w*i)*(pi*dirac(w) - i/w)
assume(x,'real') f = exp(-x^2*abs(t))*sin(t)/t; fourier(f, t, w)
ans = piecewise([x ~= 0, atan((w + 1)/x^2) - atan((w - 1)/x^2)])
If fourier cannot find an explicit representation of the transform, it returns an unevaluated call:
syms f(t) w F = fourier(f, t, w)
F(w) = fourier(f(t), t, w)
ifourier returns the original expression:
ifourier(F, w, t)
ans(t) = f(t)
The Fourier transform of a function is related to the Fourier transform of its derivative:
syms f(t) w fourier(diff(f(t), t), t, w)
ans = w*fourier(f(t), t, w)*i
Oberhettinger F., "Tables of Fourier Transforms and Fourier Transforms of Distributions", Springer, 1990.