






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of elementary signal processing, focusing on mathematical preliminaries, integral transforms, and the fourier transform. It covers the definition, inverse fourier transform, properties, and convolution of fourier transforms. Additionally, it discusses the discrete fourier transform, trigonometric interpolation, and the fast fourier transform. The document also introduces the fourier sine and cosine transforms and their inversion formulas.
Typology: Study notes
1 / 12
This page cannot be seen from the preview
Don't miss anything!







Integral transforms, such as the Fourier transform and the Laplace trans- form, play a key role in the solution of differential equations and serve as the foundation for signal processing. Both Matlab and Maple provide an array of functions for working with these and other transforms.
The Fourier transform of a function f (x), defined for all real values of x, by the integral formula
fˆ(ω) = √^1 2 π
−∞
e−iωxf (x) dx, −∞ < ω < ∞. (5.1)
The Fourier transform of f (x), fˆ(ω), can be viewed as a function of ω, the frequency.
Thus f (x) is regarded as a superposition of waves of all frequencies ω, each with amplitude | fˆ (ω)| and phase shift arg fˆ(ω), where for any complex number z, arg z is the angle that z makes in the complex plane with the real axis.
The Inverse Fourier Transform
The inverse Fourier transform of fˆ(ω) is given by the similar integral formula
f (x) =
2 π
−∞
eiωx^ fˆ(ω) dω, −∞ < x < ∞. (5.2)
Properties of Fourier Tranforms
One of the most useful properties of the Fourier transform is the fact that given the Fourier transform fˆ (ω) of a function f (x), computing the Fourier transform of f ′(x) is very simple:
fˆ ′(ω) = √^1 2 π
−∞
e−iωxf ′(x) dx
2 π
−∞
(−iω)e−iωxf (x) dx (5.3)
= (iω) fˆ (ω).
In general, we have the property that the Fourier transform of dnf /dxn is (iω)n^ fˆ(ω). This provides a means of transforming a differential equation into a much simpler algebraic equation. It follows from the fact that the exponential function is an eigenfunction of the differentiation operator, with the eigenvalue based on the frequency.
Convolution
Often, it is desirable to compute the inverse transform h(x) of the product of two known Fourier transforms, ˆh(ω) = fˆ(ω)ˆg(ω). For instance, fˆ(ω) may be a signal and ˆg(ω) may be a filter that damps or even removes certain frequencies. Fortunately, this inverse transform is simple to compute in terms of the inverse transforms of fˆ(ω) and ˆg(ω), namely f (x) and g(x):
h(x) =
2 π
−∞
eiωx^ fˆ(ω)ˆg(ω) dω
2 π
−∞
eiωx^ fˆ(ω)
−∞
e−iωy^ g(y) dy dω (5.4)
2 π
−∞
g(y)
−∞
eiω(x−y)^ fˆ(ω) dω dy
2 π
−∞
g(y)f (x − y) dy.
Trigonometric Interpolation
Often, a function f (x) is a grid function, represented by a list of function values, often obtained experimentally, at specified points, called grid points. In this case, the Fourier series coefficients can be computed by approximating the integral defining fˆ (ω) with a sum. In the case of (N +1) equally spaced points, with spacing h = 2π/(N +1), we have
f˜(ω) = √h 2 π
j=
e−iωjhf (jh), ω = −N/ 2 ,... , N/ 2. (5.7)
The approximate coefficients f˜(ω) are the exact Fourier coefficients of the Fourier interpolant of f (x), which agrees with f (x) at the grid points.
The Fast Fourier Transform
The formula for computing each Fourier series coefficient f˜ (ω) of f (x) re- quires O(N ) operations, where N is the number of grid points. Since there are O(N ) coefficients in the Fourier interpolant, the process of computing all of them requires O(N 2 ) operations. The Fast Fourier Transform is a method that allows all of the coefficients to be computed in O(N log N ) time, a huge difference for large values of N.
Partial differential equations with various boundary conditions have given rise to variations on the Fourier transform. For Dirichlet boundary conditions, where the solution to a PDE vanishes on the boundary of the problem’s domain, the Fourier sine transform is useful:
fˆs(ω) =
π
0
f (x) sin ωx ds, (5.8)
with corresponding inversion formula
f (x) =
π
0
f^ ˆs(ω) sin ωx dω. (5.9)
For Neumann boundary conditions, where the deriviative of the solution to the PDE vanishes on the boundary of the problem’s domain, the Fourier
cosine transform is useful:
fˆs(ω) =
π
0
f (x) cos ωx ds, (5.10)
with corresponding inversion formula
f (x) =
π
0
f^ ˆs(ω) cos ωx dω. (5.11)
The Fourier transform generalizes directly to higher dimensions. If f (x) is a function of an n-vector x, then the Fourier coefficient fˆ(ω), where ω is a frequency represented by an n-vector, can be computed as follows:
fˆ (ω) = 1 (2π)n/^2
Rn
e−iω·xf (x) dx, (5.12)
where · represents the inner product of two vectors. A similar formula yields the inverse transform.
While the Fourier transform is used to represent a function of spatial vari- ables as a collection of waves, the Laplace transform is used to construct such a representation for a function of time. Given a function y(t) defined for t ≥ 0, the Laplace transform L[y(t)] is defined by
L[y(t)] = Y (s) =
0
e−sty(t) dt. (5.13)
The Inverse Laplace Transform
The inverse Laplace transform of Y (s) is the function y(t) such that L[y(t)] = Y (s). Like the Fourier transform, there is an integral formula for the inverse transform, but it requires complex integration theory to evaluate. Instead, y(t) is determined by expressing Y (s) as a combination of functions whose inverse transforms are already known.
The Hankel Transform of a function f (t) is
Fν (s) =
0
stf (t)Jν (st) dt, (5.17)
where Jν is the Bessel function of the ν-th kind.
The Signal Processing toolbox is a collection of functions for working with signals. It allows users to transform signals, design and use various filters, perform statistical analysis on signals, and perform various other operations concerning signals. It also provides audio support. For a complete list of functions, type help signal at the Matlab prompt.
Basic Signal Processing Functions
Maple offers a package, inttrans, for computing integral transforms of ex- pressions.
Matlab’s Symbolic Toolbox
Write a function that accepts a vector, corresponding to function val- ues, as input and returns as output the discrete Fourier transform, using (5.19) above. The function should have the form function [g] = dft(f) Hint: use the exp function, which takes the exponential of every ele- ment of its argument. For example:
exp(0), exp(1) ans =
1
ans =
exp([ 0 1 2 ])
ans =
1.0000 2.7183 7.
Also, the constant i represents the imaginary unit,
−1. You may use i as a variable, but this is not recommended since then you are no longer able to use i as the imaginary unit.
(fe)j = f 2 j , j = 0, 1 ,... , N/ 2 − 1. (5.20)
Similarly, fo is a gridfuction defined using the odd-numbered grid- points and grid values of f , i.e.
(fo)j = f 2 j+1, j = 0, 1 ,... , N/ 2 − 1. (5.21)
Then we have:
fˆ(ω) = √h 2 π
j=
e−iωjhfj
h √ 2 π
j=
e−iω^2 jhf 2 j +
h √ 2 π
j=
e−iω(2j+1)hf 2 j+1 (5.22)
2 h √ 2 π
j=
e−iωj(2h)(fe)j +
e−iωh^ 2 h √ 2 π
j=
e−iωj(2h)(fo)j
First, assume that ω < N/2. Then we obtain
fˆ (ω) =^1 2 fˆe(ω) +^1 2 e−iωh^ fˆo(ω). (5.23)
Otherwise, we let ˜ω = ω − N/2 and obtain
fˆ(ω) = 1 2
2 h √ 2 π
j=
e−i(˜ω−N/2)j(2h)(fe)j +
e−iωh^ 2 h √ 2 π
j=
e−i(˜ω−N/2)j(2h)(fo)j
2 h √ 2 π
j=
eijN he−iωj˜(2h)(fe)j +
e−iωh^
2 h √ 2 π
j=
eijN he−iωj˜(2h)(fo)j
2 h √ 2 π
j=
ei^2 πj^ e−iωj˜(2h)(fe)j +
e−iωh^ 2 h √ 2 π
j=
ei^2 πj^ e−i˜ωj(2h)(f(5.24)o)j
2 h √ 2 π
j=
e−iωj˜(2h)(fe)j +
e−iωh^
2 h √ 2 π
j=
e−iωj˜(2h)(fo)j
fˆe(˜ω) +^1 2 e−iωh^ fˆo(˜ω)
Thus, the discrete Fourier transform of a function can be computed by splitting the set of function values into two sets, the even-numbered and odd-numbered points, computing the discrete Fourier transforms of those functions, and then combining them appropriately. Of course, this decomposition stops when N is already 1, in which case computing the Fourier transform is quite trivial.
Write a function that performs the Fast Fourier transform. This func- tion may call itself. Make sure that under the appropriate conditions,