Advanced Fourier Eng+Ita
Advanced Fourier Eng+Ita
ADVANCED FOURIER
Leonardo Rubino
April 2024
Contents:
1
1-FOURIER SERIES f (t ) A0 [ An cos nt Bn sin nt ]
2 n 1
1
e
ipt
2-FOURIER TRANSFORM F ( p) f (t )dt
2
FOURIER SINE TRANSFORM FSIN ( p) f (t ) sin ptdt
0
FOURIER COSINE TRANSFORM FCOS ( p) f (t ) cos ptdt
0
3-LAPLACE TRANSFORM F ( s ) f (t )e st dt
0
r i
1
LAPLACE INVERSE TRANSFORM f ( x) e sx F ( s )ds
2i r i
4-Z TRANSFORM X ( z ) xn z n
n 0
N 1
v
Fig. 1.1
u u uˆ u xiˆ u y ˆj u z kˆ , v v vˆ vxiˆ v y ˆj vz kˆ , so: w u v uv cos , or, as well:
w u v (u xiˆ u y ˆj u z kˆ)(vxiˆ v y ˆj vz kˆ) u x vxiˆiˆ u x v y iˆˆj u x vz iˆkˆ u y vx ˆjiˆ u y v y ˆjˆj u y vz ˆjkˆ
u v kˆiˆ u v kˆˆj u v kˆkˆ u v u v u v w ,
z x z y z z x x y y z z (1.1)
as iˆiˆ ˆjˆj kˆkˆ 1 1 cos 0 1 , while the products among versors i, j and k are zero, because they
contain cos 90 0 .
Two vectors are called orthogonal if their scalar product is zero. Now, (1.1) can be written like that:
3
w u v ui vi , ( x bra , x ket). In general:
i 1
n n
u v ui vi ui vi i , (1.2)
i 1 i 1
where i 1 , as “i” makes jumps about 1.
Now, if we see functions as vectors with infinite dimensions (whose components are the values of
the functions themselves), then, as n , the summation in the (1.2) will become an integral and
b
i di dx , and so: g f g ( x) f ( x)dx .
a
---------------------------------------------
x
a=x0 x1 xi b x
Fig. 1.2
x x
If we suppose that all the x are infinitesimal (small x or dx), the surfaces Ai are fi(xi) x and the
surface A under the curve between a and b is: A f i ( xi )x , but if F(x) is the primitive of f(x),
i 1
Fi ( xi ) Fi 1 ( xi 1 )
then, by definition of the derivative, we have: f i ( xi ) (where xi and x(i-1) are
dx
very close, as they are separated just by a dx) and so:
[ F ( x ) Fi 1 ( xi 1 )]
A f i ( xi )x i i dx [ Fi ( xi ) Fi 1 ( xi 1 )]
i 1 i 1 dx i 1
a
-----------------------------------------
If f(x) and g(x) are orthogonal functions in (a,b), then: g f 0 . Now, as well as {iˆ, ˆj , kˆ} are a
system of orthogonal versors (orthonormal), then also {i (x)} is a system of orthogonal functions if
b N
i (x)k (x)dx ik and so, as all the i (x) are linearly independent, we have that (x) c
i 1
i i 0
a
only if all the ci are zero, as if such a summation is zero, then some terms cancel each other and so a
composition of some versors would give a new vector which would cancel with other versors, but
that is not possible, as, for instance, there is no way, by a combination of i and j, to get a vector
which cancels with k; i and j lay over the (xy) plane on which k cannot lay (that is along z, which is
perpendicular to xy). Therefore, the equality to zero will be caused only by all zero coefficients.
n
Then, if {i (x)} is an orthonormal base, we have: f f i i . Of course, f i i f ; in fact:
i 1
f ( x) cii ( x) , (1.3)
i
Orthogonal functions:
The trigonometric system of functions is orthogonal in ( , ) :
(1, sin x, cos x, sin 2 x, cos 2 x,...) ; (1.4)
In fact, sin mx cos nxdx 0
m, n and
sin(m n) xdx
is still with a zero v.m. and gives no contribution even when m=n, when sin 0 is
Out of normalization, we take into account not the (1.4), but the following:
1 sin x cos x
( , , ,...) .
2
1
Therefore: f ( x) a0 [ak cos kx bk sin kx] (1.6)
2 k 1
1 1 1
with ak
f ( x) cos kxdx
and bk
f ( x) sin kxdx
( a0
f ( x)dx )
As a matter of fact, by integrating the (1.6), we get:
1
f ( x)dx 2 a0dx
k 1
[ak cos kxdx bk sin kxdx]
1 1
a0 2 [ak 0 bk 0] a0 , from which: a0 f ( x)dx .
2 k 1
On the contrary, if we integrate the (1.6) after having multiplied both sides by cosnx, we get:
1
f ( x ) cos nxdx
2
a0 cos nxdx
k 1
[ ak cos kx cos nxdx bk sin kx cos nxdx ] 0 ak kn 0 ak kn
1
(all this still in force of the Werner equalities) and then: ak
f ( x) cos kxdx
At last, if we integrate the (1.6) after having multiplied both sides by sinnx, we get:
1
f ( x ) sin nxdx
2
a0 sin nxdx
k 1
[ a k cos kx sin nxdx bk sin kx sin nxdx] 0 0 bk kn bk kn
1
from which bk
f ( x) sin kxdx
.
sin n An
and so: An2 Bn2 Cn2 and tg n . Similarly, we can get the (1.9).
cos n Bn
Exponential form of the Fourier series:
eikx
Also the system of functions ( ) (where k=0,±1, ,±2,…) is orthonormal over ( , ) ; in fact,
2
1 2i e i ( k ' k ) e i ( k ' k ) sin(k 'k )
e e dx e dx ) 2 [ ] 2 kk '
ikx ik ' x ix ( k ' k )
eix ( k ' k ) (
i (k 'k ) i (k 'k ) 2i (k 'k )
as if k’=k, then sin0/0=1, while if k ' k , then k’-k=n and sinnπ is always 0.
1
Therefore: f ( x)
2
C e
k
k
ikx
, (1.10)
1
f ( x)e
ikx
Ck dx , or in the time domain:
2
1
2
f (t )
2
C 'k eikt
k
C e
k
k
ik t
, (
T
) (1.11)
T T
1 1
C k f (t )e ikt dt C k e i k , C k Ck* Ck e i k , C0 f (t )dt .
T 0 T 0
1
By comparing the (1.11) with the (1.9), we get: f (t ) C0 2 Cn cos(nt n ) , where C0 A0 ,
n 1 2
Dn 2 Cn and n n .
-π 0 π x
-VM
Fig. 1.3
Such a function (x) is odd, so all the ai are zero. Because of the (1.6): ( x) bk sin kx ,
k 1
1 2 2VM 2V
x ( , ) , bk
( x) sin kxdx V sin kxdx
M
0
k
cos kx 0 M [(1) k 1] , that is
k
1 4VM
b2l 0 and b2l 1 and finally:
(2l 1)
4V sin( 2l 1) x
( x) M (1.12)
l 0 (2l 1)
-T/2 0 T/2 T t
-VM
Fig. 1.5
T T 72 Tk Tk
T T /2 T
2 2 2 2V
VM sin ktdt
T /2
Bk f (t ) sin ktdt (VM ) sin ktdt M cos kt 0
T0 T 0
T T 72 Tk
2VM T V V 2V
cos kt T / 2 M ( cos k 1) M ( cos 2k cos k ) M (1 cos k ) , that is, if k is
Tk k k k
4V
even, then Bk 0 , while if k is odd (2l+1), then Bk M , so, by the (1.7):
k
1
4V
sin( 2l 1)t
(t ) A0 [ An cos nt Bn sin nt ] M (1.13)
2 n 1 l 0 (2l 1)
C) Exponential form
T T T /2 T
1 1 1 1
C0 f (t )dt 0 , C k f (t )e ikt dt V M e ikt
dt (VM )e ikt dt
T 0 T 0 T 0
T T /2
VM 1 T /2 V 1 T
e ikt M e ikt
T (ik ) 0 T (ik ) T /2
2VM
therefore, if k is even, then Ck 0 , while if k is odd (2l+1), C( 2l 1) i ,
(2l 1)
2VM
C( 2l 1) and k 90 ,
(2l 1)
2VM
(i 2VM ) ikt
f (t ) Ck eikt e i 90eikt e (1.14)
k l ( 2l 1) l (2l 1)
TRIANGULAR WAVE (Fourier series) in ( , )
f(x)
1
2π -π 0 π 2π x
Fig. 1.6
d
Notice that x (x) .
dx
f(x)
1
-4 -2 0 2 4 x
Fig. 1.6b
Even function, so bk 0 . For the (1.6) (given in the form of the (1.17) below proved):
2
nx nx nx
2
2 2 4 4
an x cos dx x( sin ) (1)( 2 2 cos ) 2 2 (cos n 1) , if n 0 ; if n=0:
20 2 n 2 n 2 0 n
2
a0 xdx 2 , so:
0
4 nx 8 x 1 3x 1 5x
f ( x) 1 (cos n 1) cos 1 2 (cos 2 cos cos .....)
k 1 n2 2
2 2 3 2 5 2
SAWTOOTH WAVE (Fourier series) in ( , )
f(x)
1
-2π -π 0 π 2π x
Fig. 1.7
f ( x) x , for x ( , ) ; for the (1.6): x bk sin kx , (odd function, so ak 0 ).
k 1
1 1 x 1 2
bk
x sin kxdx [ k cos kx
k
cos kxdx] (1) k 1 and so:
k
(1) k 1
f ( x) 2 sin kx (1.16)
k 1 k
-4 -2 0 2 4 x
Fig. 1.7b
f(x)=x (0<x<2) and it’s about an odd function, from which an=0. For the (1.6) (given as the (1.17)
below proved):
2
nx nx nx
2
2 2 4 4
bk x sin dx x( cos ) (1)( 2 2 sin ) cos n and so:
20 2 n 2 n 2 0 n
( 4) nx 4 x 1 2x 1 3x
f ( x) cos n sin (sin sin sin .....)
k 1 n 2 2 2 2 3 2
STEP
f(x)
3
x
If now we carry out the substitution y , from which: dy dx , we have:
L L
1
nx nx
f ( x) a0 [an cos bn sin ] (1.17)
2 n 1 L L
nx nx
L L
1 1
( an
L L
f ( x) cos
L
dx , bn f ( x) sin
L L L
dx )
5
nx nx nx nx nx
5 0 5 5
1 1 3 3 5
bn f ( x) sin dx [ 0 sin dx 3 sin dx] sin dx cos
5 5 5 5 5 5 0
5 50 5 5 n 5 0
3(1 cos nx)
. Therefore:
n
3 3(1 cos nx) nx 3 6 x 1 3x 1 5x
f ( x) sin (sin sin sin ......)
2 n 1 n 5 2 5 3 5 5 5
PARABOLA
f(x)
4 2
4 2 0 2 4 x
Fig. 1.9: Parabola
2 2
1 1 cos nx sin nx cos nx 4
bn x sin nxdx ) 2 x( ) 2( 3 )
2
x2( , so:
0
n n 2
n 0 n
4 2
4
4
f ( x) ( 2 cos nx sin nx)
3 n 1 n n
RECTIFIED SINE
f(x)
1
-π 0 π 2π x
f(x) is even, so bn=0, while for an: ( ( , ) 2(0, ) ) for the (1.6):
2 1 cos(n 1) x cos(n 1) x
1
an sin x cos nxdx [sin( x nx) sin( x nx)]dx
0 0 (n 1) (n 1) 0
1 1 cos(n 1) cos(n 1) 1 1 (1 cos n ) (1 cos n ) 2(1 cos n )
[ ] [ ] , if n 1 ,
(n 1) (n 1) (n 1) (n 1) (n 2 1)
2 2 sin 2
while for n=1: a1 sin x cos xdx 0 and for n=0:
0 2 0
2 2 4
a0 sin xdx cos x 0
0
2 2(1 cos n )
2 4 cos 2 x cos 4 x cos 6 x
so: f ( x)
n 2
(n 1)
2
cos nx [ 2
(2 1) (42 1) (62 1)
.....] .
2 4 1
On a time basis: f (t )
n 2, 4,6,... (n 1)
2
cos nt .
At last, in case of a single semi-wave rectification and still on a time basis (t):
f(t)
1
0 π 2π t
1 1 2 1
f (t ) sin t
2
n 2, 4,6,... (n 1)
2
cos nt
PULSE TRAIN
X(t)
VM
-τ/2 τ/2 T t
0
Fig. 1.12: Pulse train
X (t ) VM for -τ/2<t<τ/2 and zero elsewhere. For the (1.7) we have:
T T
1 2 2
X (t ) A0 [ Ak cos kt Bk sin kt ] , with Ak X (t ) cos ktdt ( A0 X (t )dt )
2 k 1 T0 T 0
T
2
T 0
and Bk X (t ) sin ktdt .
The pulse train function is even, so Bk=0 and the Fourier series reduces to:
T /2
A 2
X (t ) 0 Ak cos kt and Ak
T T/ 2
X (t ) cos ktdt (integral with span T, but no more
2 k 1
between 0 and T, rather between –T/2 and T/2, with reference to Fig. 1.12, as in both cases the
surface covered by the function is the same). So:
/2
2 2V 1 /2 2V 2V
Ak VM cos ktdt M
T / 2 T k
sin kt / 2 M [sin k sin( k )] M 2 sin k
kT 2 2 kT 2
2
sin k sin k
4V 2 T k 2V T A ,
M (1.18)
2k T
M
T k
k k
T T
sin x
that is: A0 2VM , as when k tends to zero, function tends to 1. On the contrary, about
T T x
Ak generic, the (1.18) holds, indeed. Therefore:
2VM sin k T
X (t ) VM cos kt (1.19)
T k 1 T
k
T
If now the pulse of Fig. 1.12 gets narrower, so becoming a Dirac Delta function ( VM (t ) ) and as we
know that (t )dx 1 , which means that the surface below the Delta is 1 (A=base x height=(VM τ)
x (1/ τ)= VM), we have in the (1.19), in place of the surface of the rectangular pulse VM τ, only VM
sin x
and moreover the function gets narrower to 1. Then:
x
V 2V
(t ) M M cos kt (1.20)
T k 1 T
PARSEVAL IDENTITY
L
1 a02 2
(an bn2 ) ; in fact, as according to (1.17):
L L
[ f ( x )]2
dx
2 n 1
1
nx nx 1
f ( x) a0 [an cos bn sin ] and after multiplying both sides by f ( x) and finally
2 n 1 L L L
after integrating:
nx nx
L L L L
1 1 1 1 1 a02 2
L L
[ f ( x )]2
dx a0
2 L L
f ( x ) dx
n 1
[ a n
L L
f ( x ) cos
L
dx bn
L L
f ( x ) sin
L
dx ] (an bn2 )
2 n 1
2-FOURIER TRANSFORM
We recall here the (1.10), that is the Fourier series in its exponential form:
1 2
f ( )
2 k
Ck eik and here we carry out the change of variable: t
T
t , from which:
2
1 ik t
f (t )
2
Ck e
k
T
, (2.1)
2
2
T /2
ik t 1
f ( )e
ik
where Ck f (t )e T
dt , as we had: Ck d , but if
T T / 2 2
2 2
2 2
T /2 T /2
T 1 ik t ik t
t and so: Ck
2 2
T / 2
f (t )e T
T
dt
T
T / 2
f (t )e T
dt . Now, let us name:
2k 2 2 2
T /2
( pk k ) from which: pk and so: Ck e
ip k t
pk f (t )dt
T T 2 T T / 2
T /2 T /2
pk 1
e e
ip k t ip k t
f (t )dt pk F ( pk ) , where F ( pk ) f (t )dt .
2 T / 2 2 T / 2
1 ip k t
Therefore, because of the (2.1), we have: f (t ) e F ( pk )pk ; now, when T it
2 k
follows that: pk dpk dp and the summation becomes an integral:
1
f (t ) e
ipt
F ( p )dp (FOURIER INVERSE TRANSFORM) (2.2)
2
1
and F ( p )
2 e ipt f (t )dt which is the (FOURIER TRANSFORM) (2.3)
1
2
If now we join together the exponentials, we get: f (t ) f (t ' )eip ( t t ') dt 'dp (2.5)
Now we see that the (2.5) is the same as the (2.6) which follows:
1
f (t ) f (t ' ) cos p (t t ' )dt ' dp ; (2.6)
p 0 t '
In fact, if we put into the (2.6) the following well known Euler’s Formula:
(eip ( t t ') e ip ( t t ') )
cos p (t t ' ) , we get:
2
1 1
f (t ) f (t ' ) cos p (t t ' )dt ' dp f (t ' )(eip (t t ') e ip (t t ') )dt ' dp ;
p 0 t ' 2 p 0 t '
now, we leave there just the exponential with a positive argument and we change the integration
interval over p, from 0/∞ to -∞/+∞ , so that the -∞ will involve back the exponential with
1
negative argument we just removed; so doing, we get: f ( x)
2
f (t ' )eip (t ' t ) dt ' dp , which is
indeed nothing but the (2.5). Now, because of the subtraction formulas of trigonometry, we know
that: cos cos sin sin cos( ) and we use this into the (2.6), so getting:
1 1
f (t ) f (t ' ) cos p (t t ' )dt ' dp f (t ' )(cos pt cos pt ' sin pt sin pt ' )dt ' dp
p 0 t ' p 0 t '
1
{ [ f (t ' ) cos pt ' cos ptdt ' f (t ' ) sin pt ' sin ptdt ']dp} .
p 0
t ' t '
Now, in case of an odd function f(t’), the product f(t’)cospt’ is odd as well, as the cosine is an even
function and it leaves that product as odd, just like f, so such an odd product is of course removed
from the integral in t’ with symmetric ends (-∞/+∞), as it yields a zero, so:
1 1
f (t )(odd ) [ f (t ' ) sin pt ' sin ptdt ']dp sin ptdp f (t ' ) sin pt ' dt ' and, at last, also the
p 0
t '
p 0
t '
integral in “ t’ ”, going from -∞ to +∞ , for reasons of symmetry, can be halved in its interval,
that is from 0 to +∞, provided that later the whole integral is multiplied by 2, from which, finally:
2
f (t )(odd ) sin ptdp f (t ' ) sin pt ' dt ' (2.7)
0
0
Similarly, for an even f(t’), we have that the product f(t’)sinpt’ is odd (just like sin is), from which
the reduction to zero of the integral in “ t’ ” with symmetric ends, and just a survivor will be left,
from which, finally:
2
f (t )(even) cos ptdp f (t ' ) cos pt ' dt ' (2.8)
0
0
Now, if into the (2.7) we name:
FSIN ( p) f (t ' ) sin pt ' dt ' (FOURIER SINE TRANSFORM) (2.9)
0
then the (2.7) itself becomes:
2
f (t )ODD FSIN ( p ) sin ptdp (FOURIER SINE INVERSE TRANSFORM) (2.10)
0
0 0
equation is the Fourier’s Integral Theorem. Now, we put these a(p) and b(p) , written in x’, into f(x) and get:
1
f ( x) a ( p ) cos px dp b( p ) sin px dp { [ f ( x' ) cos px' cos pxdx' f ( x' ) sin px' sin pxdx' ]dp}
0 0
p 0
x ' x '
1
, but for the subtraction formulas of the trigonometry we know that:
{ [ f ( x' )(cos px' cos px sin px' sin px)dx']dp}
p 0
x '
cos cos sin sin cos( ) , so (cosx=cos(-x)): 1
f ( x) { [ f ( x' )(cos px' cos px sin px' sin px)dx']dp}
p 0
x '
1 1
{ [ f ( x' ) cos p( x' x)dx']dp} f ( x ' ) cos p ( x x' )dx' dp f ( x) , that is equivalent to the (2.6).
p 0
x '
p 0 x '
On Dirac Delta Function
By definition, f ( x' ) ( x x' ) f ( x)dx (2.13)
that is ( x x' ) , in the integral with f(x), makes you get f(x’).
Still in force of the (2.13) we have: f (0) ( x) f ( x)dx . Now, we insert the (2.2) in p’ into the
1 1 1
e ipt [ eip 't F ( p ' )dp ']dt F ( p ' )[ e
it ( p ' p )
(2.3) in p, so getting: F ( p ) dt ]dp ' , but
2 2
2
out of the (2.13), the quantity between square brakets must be:
1
( p ' p )
2
eit ( p ' p ) dt (2.14)
1 1
and when p=0: ( p ' ) eitp ' dt . After renaming the symbols, we get: ( x) e
ikx
dk .
2 2
( ( x) ( x) ) This one is the same as the following:
n
1 sin nx 1 1 1
( x) lim lim (einx e inx ) lim eikx dk e
ikx
dk ( x) qed.
n x n 2ix 2 n n 2
sin nx
All in all, the function , which is bell shaped, as long as n increases, gets narrower till to get
x
a very narrow vertical pulse, that is a Dirac Delta Function indeed.
----------------
1
f (t ) e
ipt
F ( p )dp (2.15)
2
F ( p ) e ipt f (t )dt (2.16)
where the (2.16) has no longer the coefficient it had into the (2.3) and the (2.15) has the coefficient
of the (2.2), but squared. In fact, if we put the (2.15) into the (2.16), we still get the (2.14) as a Dirac
Delta function and it wouldn’t happen if we just redefined the coefficient of the (2.2), but not that of
the (2.3).
Then, we have: F [ (t )] 1 ; in fact, because of the definition of the (2.13) on ( x x' ) , we have:
e
j t
(t t ' ) f ( x)dt e jt ' , but this is nothing but F [ (t t ' )] , so: F [ (t t ' )] e jt '
and, for t’=0: F [ (t )] 1 .
Moreover, F [e j 0 t ] 2 ( 0 ) , and also F [ (t )] e j ,
F [cos 0t ] [ ( 0 ) ( 0 )] ,
F [sin 0t ] j [ ( 0 ) ( 0 )] .
At last:
f(t)
1
2 sin a
F ( )
-a a t
Fig. 2.1 0
a
e j t e ja e ja 2 sin a
a
f (t )e dt (1)e
jt j t
F ( ) dt ( 0 ); for 0
a
j a j
F ( ) 2a .
3-LAPLACE TRANSFORM
It’s got a form which is very similar to that of the Fourier one:
L[ f (t )] F ( s ) f (t )e st dt ( s j ) (3.1)
0
It makes nothing but letting you jump from time to frequency; as an example, in case of a capacitor,
dv(t ) V (s) 1 1
we know that: i (t ) C L[i (t )] I ( s ) CsV ( s )
dt I ( s ) sC jC
Some properties:
L[kf (t )] kF ( s ) , L[ f1 (t ) f 2 (t )] F1 ( s ) F2 ( s ) , L[ f ' (t )] sF ( s ) f (0) ,
F ( s) dF ( s )
L[ f ( n ) (t )] s n F ( s ) s n 1 f (0) s n 2 f ' (0) ... f ( n 1) (0) , L[ f (t )dt ] , L[tf (t )] ,
s ds
L[ f (t )e t ] F ( s ) , L[ f (t t0 )] F ( s )e t 0 s , f (0) lim f (t ) lim sF ( s ) ,
t 0 s
1
-slope r(t)=0 for t<0 and t for t 0 L[r (t )]
s2
1
-exponential f(t)=0, for t<0 and et for t 0 L[et ]
s
2
-parabola p(t)=0 for t<0 and t2 for t 0 L[t 2 ]
s3
-sine f(t)=0, for t<0 and sin t , for t 0 L[sin t ] (for the Euler’s Formula)
s2 2
s
-cosine f(t)=0, for t<0 and cos t , for t 0 L[cos t ]
s2 2
Indirect methods for the L-inverse transform
A B C
... , where A [(s p1 ) F ( s )]s p1 etc. And so:
( s p1 ) ( s p2 ) ( s p3 )
A B C
L1[ F ( s )] L1[ ] L1[ ] L1[ ] ... Ae p1t Be p2 t Ce p3t ...
( s p1 ) ( s p2 ) ( s p3 )
then F(s) is the Fourier T., with respect to p, of the function ( x) 2 e rx f ( x) ( x) , that is:
1 1
FL ( s ) FF [ ( x)] e ( x)dx ( x) e
ipx ipx
F ( s )dp , from which, as: idp=ds
2 2
r i
1
2i r i
(because Re(s)=r=const), we have: f ( x) ( x) sx
e F ( s )ds . Now, provided that f(x)=0 for
k
As an example, we know that if F ( s ) , then f ( x) sinh kx ; in fact:
s k2
2
r i
k e sx
2i r i s 2 k 2
f ( x) ds (Re(s)=r=k). A condition to close the integration path:
for x<0 (Re(s)>r) , for x>0 (Re(s)<r) and we have: f(x)=0, for x<0 and, for x>0
ke sx ke sx ke kx ke kx
f ( x) Re s[ 2 ] sk Re s[ ] sk sinh kx
s k2 s2 k 2 2 k ( 2 k )
Out of convergence reasons, as we have f ( x) Ae pt , then we will have an L-Transform for s>p.
4-Z TRANSFORM
The Z Transform of x(t) is nothing but the Laplace T. of the sampled input signal, with z e sT .
The Z Transform for digital signals is the corresponding of the Laplace T. for continuous signals.
So, if we have a sequence of real values xn (n=0,1,2,…) and zero for n<0, we have, by definition:
Z [ xn ] X ( z ) xn z n (4.1)
n0
Now, in order to prove all that just said, we consider that the input signal x(t) sampled at a
frequency fs=1/T by Dirac pulses is:
x* (t ) x(nT ) (t nT ) (4.2)
n 0
which is written with a * because right for its mathematical structure we understand that it’s about a
discrete convolution ( ) between x(t) and (t ) . By applying the Laplace T. to the (4.2)
(and considering that in x(nT) there is not t), we have:
X * ( s ) L[ x* (t )] x(nT ) L[ (t nT )] x(nT )e nTs . Now, by defining
k 0 k 0
z e sT L[ x* (t )] X * ( s ) x(nT ) z n X ( z ) Z [ x* (t )] .
k 0
We give here the formal Z-inverse transform:
1
j 2 C
x(nT ) X ( z ) z n 1dz , where C is a closed path which keeps in it all poles of X(z), in the
complex plane.
Properties of the Z-Transform
-linearity Z [ax1 (nT ) bx2 (nT )] aZ [ x1 (nT )] bZ [ x2 (nT )]
a n x(nT ) X ( z / a) ( X ( z ) Z [ x(nT )] )
-time shift: ( Z [ x(nT )] X ( z ) )
a) y1 x(nT kT ) Z [ y1 ] z k [ X ( z ) x(0) x(T ) z 1 ... x((k 2)T ) z ( k 2) x((k 1)T ) z ( k 1) ]
b) y2 x(nT kT ) Z [ y2 ] z k X ( z ) , with x(nT)=0 for T<kT.
-initial value theorem: ( Z [ x(nT )] X ( z ) )
If the lim X ( z ) exists, then x(0) lim X ( z )
z z
-final value theorem: lim x(nT ) lim(1 z 1 ) X ( z ) , if the poles of X(z) are inside the unitary circle.
n z 1
6 3
1 1
25 z 2 4 z z2 z
6 3
25 25 1 299 2
25 z 2 z 25 z 1 z .........
6 3 6 36
1 25
z
6 3
1 1 1 1
z z
6 36 18
299 1 1
z
36 18
…………………..
…………………..
DFT (Discrete Fourier Transform) is the Fourier T. for discrete data (series of values). The integral
will be replaced by a summation and we will jump from the ideal integration range ( , ) to a
real range of N values (n=0, n=N-1), so having a sequence of N data (x(0), x(1),…,x(N-1)), got
from a sampling of an input quantity x(t) at instants 0,T,2T,…,(N-1)T; then, the DFT will be the
sequence X(m) of N data X(0), X(1),…,X(N-1) in the domain of frequency, at pulsations:
0,Ω,2 Ω,…,(N-1) Ω, where 2 /( NT ) as first harmonic. So:
N 1
X (m) x(n)e j 2mn / N (5.1)
n 0
In a more concise style, by naming WN e j 2 / N , we have:
N 1
X (m) x(n)WNmn
n 0
About the inverse transform, still out of a parallel treatise on the classic Fourier T. (continuous
case), we have:
N 1
1
x ( n)
N
X ( m) e
m 0
j 2mn / N
we get back to the finite typical values of the DFT. And we have that: (if x(n) x1 (n) x2 (n) )
X (m) X 1 (m) X 2 (m) and out of (usual) duality, we also have that: (if x(n) x1 (n) x2 (n) )
1
X ( m) X 1 ( m ) X 2 ( m) .
N
On the contrary, about the linear convolution, x1 and x2 must have the same length. Therefore, if x1
has N1 samples and x2 has N2, we add (N2-1) zero values to the sequence x1 and (N1-1) zeroes to x2.
In this way, the length will be one and equal to (N1+N2-1). From this point on, what has been
already said about the circular convolution still holds.
-pulse function: if x(n) (nT ) X (m) 1
RADIX-2 FFT ALGORITHM
this method is used for sequences of samples whose number is equal to a power of 2; we can
always get into such a situation by adding zero values. Now, the sequence of N data will be divided
by two: even indexes and odd indexes, that is two sequences of N/2 values. Such two sequences
will be split in two again, as well as before, until we get sequences that cannot be reduced anymore,
about only two values.
Example: N=8; n(0),……,n(7); by the first splitting we get n(0),n(2),n(4),n(6) and
n(1),n(3),n(5),n(7). By splitting again, we get: [n(0),n(4)], [n(2),n(6)], [n(1),n(5)] and [n(3),n(7)].
These pairs are represented by indexes n and n+(N/2); in fact, 0-4 would be the pair with n=0
[0,(0+8/2)]. On a mathematical basis, we have:
N 1 N 1 N 1 N 1
X (m) x(n)e j 2mn / N x(n)WNmn x(n)W mn
N x(n)W mn
N , with WN e j 2 / N ; even
n 0 n 0 n 0 , 2, 4 n 1, 3, 5
numbers can be better expressed by 2p, while the odd ones by 2p+1.
When n is odd, we notice that: WN2 (e j 2 / N ) 2 e j 2 /( N / 2) WN / 2 and so:
N / 2 1 N / 2 1 N / 2 1 N / 2 1
X ( m) x(2 p)W
p 0
2 mp
N x(2 p 1)W
p 0
m ( 2 p 1)
N x(2 p)W
p 0
2 mp
N WNm x(2 p 1)W
p 0
2 mp
N
N / 2 1 N / 2 1
x(2 p)WNmp/ 2 WNm
p 0
x(2 p 1)W
p0
mp
N /2 A(m) WNm B(m) (5.2)
(A is of even indexes and B is of odd ones) A and B are periodic whose period is N/2; in fact:
N / 2 1 N / 2 1 N N / 2 1 N
N (m ) p ( )p
A(m) x(2 p )WNmp/ 2 A(m ) x(2 p )WN / 2 2 x(2 p )WNmp/ 2WN 2/ 2
p 0 2 p 0 p 0
N / 2 1 N j 2 /( N / 2 ) p
( )p N
x(2 p)WNmp/ 2 A(m) , as WN 2/ 2 e
p0 2
) B ( m) .
N /2
1 . Similarly B (m
As an example, if N=8 and we want to calculate X(7), we will get, because of the (5.2):
X (7) A(7) W87 B (7) A(3) W87 B (3) (7=3+4=3+N/2)
Advantages are due to the fact that, as we already said, a DFT with N elements needs approx. 2N2
operations, while for each of the two subsequences with N/2 values, we just need 2(N/2)2, provided
that then one has to reassemble them by N sums, and the total number is: 2(N/2)2+N. Then, with
N=1024, we get from 1.048.576 multiplications (with no splittings) to 525.312; and similar
reasonings stand about sums. By splitting again until it is possible (so getting groups of two values),
as a n. of multiplications we will have: (N/2)log2N, that is, still with N=1024, 5120
multiplications.
Please, also notice that some W coefficients are repeated, so giving further simplifications. Of
course, a SW program will carry out all this heavy job.
---------------------
FOURIER AVANZATO
Leonardo Rubino
Aprile 2024
Indice:
1
1-SVILUPPO IN SERIE DI FOURIER f (t ) A0 [ An cos nt Bn sin nt ]
2 n 1
1
e
ipt
2-TRASFORMATA DI FOURIER F ( p) f (t )dt
2
TRASFORMATA SENO DI FOURIER FSIN ( p) f (t ) sin ptdt
0
TRASFORMATA COSENO DI FOURIER FCOS ( p) f (t ) cos ptdt
0
3-TRASFORMATA DI LAPLACE F ( s ) f (t )e st dt
0
r i
1
ANTITRASFORMATA DI LAPLACE f ( x) e sx F ( s )ds
2i r i
4-TRASFORMATA ZETA X ( z ) xn z n
n 0
N 1
v
Fig. 1.1
u u uˆ u xiˆ u y ˆj u z kˆ , v v vˆ vx iˆ v y ˆj vz kˆ , da cui: w u v uv cos , oppure, ciò
che è lo stesso:
w u v (u xiˆ u y ˆj u z kˆ)(vxiˆ v y ˆj vz kˆ) u x vxiˆiˆ u x v y iˆˆj u x vz iˆkˆ u y vx ˆjiˆ u y v y ˆjˆj u y vz ˆjkˆ
u v kˆiˆ u v kˆˆj u v kˆkˆ u v u v u v w ,
z x z y z z x x y y z z (1.1)
poiché iˆiˆ ˆjˆj kˆkˆ 1 1 cos 0 1 , mentre i prodotti misti tra i versori i, j e k sono nulli, poiché
contengono cos 90 0 .
Due vettori li chiamiamo ortogonali se il loro prodotto scalare è nullo. Ora, la (1.1) possiamo
3
scriverla così: w u v ui vi , ( x bra , x ket). Più in generale:
i 1
n n
u v ui vi ui vi i , (1.2)
i 1 i 1
con i 1 , poiché “i” effettua salti di 1.
A questo punto, se interpretiamo le funzioni come vettori ad infinite dimensioni (le cui componenti
sono i valori assunti dalle funzioni stesse), allora, essendo che n , la sommatoria nella (1.2)
b
diventerà un integrale e i di dx , e dunque: g f g ( x) f ( x)dx .
a
---------------------------------------------
x
a=x0 x1 xi b x
Fig. 1.2
x x
Supponendo i x infinitesimi (piccoli x oppure dx), le aree Ai sono pari ad fi(xi) x e l’area A
sottesa dalla curva tra a e b vale: A f i ( xi )x , ma se F(x) è la primitiva di f(x), allora, per la
i 1
Fi ( xi ) Fi 1 ( xi 1 )
definizione di derivata, si ha: f i ( xi ) (con xi ed x(i-1) “vicinissimi”, in quanto
dx
distanti solo un dx) e allora:
[ F ( x ) Fi 1 ( xi 1 )]
A f i ( xi )x i i dx [ Fi ( xi ) Fi 1 ( xi 1 )]
i 1 i 1 dx i 1
a
-----------------------------------------
Se f(x) e g(x) sono funzioni ortogonali in (a,b), allora: g f 0 . Ora, così come {iˆ, ˆj , kˆ} sono un
sistema di versori ortogonali (ortonormali), parimenti {i (x)} è un sistema di funzioni ortogonali se
b N
f ( x) cii ( x) , (1.3)
i
Funzioni ortogonali:
Il sistema delle funzioni trigonometriche è ortogonale in ( , ) :
(1, sin x, cos x, sin 2 x, cos 2 x,...) ; (1.4)
infatti, sin mx cos nxdx 0
m, n e
sin(m n) xdx è sempre a v.m. nullo e dà contributo nullo anche quando m=n, caso in cui il sin 0
è nullo, a maggior ragione)
Similmente:
cos( m n) x cos(m n) x 1 1
sin mx sin nxdx
2
dx cos(m n) xdx cos( m n) xdx
2 2
1
2
cos(m n) xdx 0 mn .
Prendendo ora, più nello specifico, in esame funzioni dipendenti direttamente dal tempo, avremo
che, genericamente:
1
f (t ) A0 [ An cos nt Bn sin nt ] (1.7)
2 n 1
T T T
2 2 2
con An
T0 f (t ) cos ntdt , ( A0 f (t )dt ) e Bn f (t ) sin ntdt
T0 T0
Infatti, integrando tra 0 e T la (1.7), si ha:
T T T T
1 1
0 f (t ) dt
20 A 0 dt
n 1
[ An cos n tdt Bn sin ntdt ]
2
A0T 0 , in quanto cos e sin hanno v.m.
0 0
T
2
nullo in quell’intervallo, dunque: A0 f (t )dt .
T0
Analogamente, se integriamo la (1.7) dopo aver moltiplicato entrambi i membri per cos kt , si ha:
T T
T 2
0 f (t ) cos ktdt 2 Ak , ( Ak T 0 f (t ) cos ktdt ), poiché, calcoli già fatti nelle pagine
precedenti utilizzando anche le Formule di Werner, l’integrale con A0 è nullo poichè è l’integrale di
un coseno con v.m. nullo in quell’intervallo, e l’integrale con Bk pure è nullo, restando superstite
solo l’integrale con Ak (e k=n).
T T
T 2
Per ultimo, similmente: f (t ) sin ktdt Bk , ( Bk f (t ) sin ktdt )
0
2 T0
Forma polare della Serie di Fourier:
La (1.7) la possiamo esprimere anche nel seguente modo:
1
f (t ) A0 Cn sin( nt n ) (1.8)
2 n 1
T
2 A
con A0
T0 f (t )dt , Cn An2 Bn2 , n arctg n , oppure ancora così:
Bn
1
f (t ) A0 Dn cos(nt n ) (1.9)
2 n 1
T
2 B
con A0
T0 f (t )dt , Dn Cn An2 Bn2 , n arctg n .
An
Infatti, ricordando che in trigonometria si ha:
sin(a b) sin a cos b cos a sin b e cos(a b) cos a cos b sin a sin b , la (1.8) diventa:
1 1
f (t ) A0 Cn sin( n nt ) A0 Cn [sin n cos nt cos n sin nt ]
2 n 1 2 n 1
1
A0 (Cn sin n ) cos nt (Cn cos n ) sin nt , da cui: An Cn sin n e Bn Cn cos n
2 n 1 n 1
sin n An
e dunque: An2 Bn2 Cn2 e tg n . Similmente si giunge anche alla (1.9).
cos n Bn
Forma esponenziale della Serie di Fourier:
eikx
Anche il sistema di funzioni ( ) (con k=0,±1, ,±2,…) è ortonormale su ( , ) ; infatti, si ha:
2
1 2i ei ( k ' k ) e i ( k ' k ) sin(k 'k )
e e dx e dx ) 2 [ ] 2 kk '
ikx ik ' x ix ( k ' k )
eix ( k ' k ) (
i (k 'k ) i (k ' k ) 2i (k ' k )
poiché se k’=k, allora sin0/0=1, mentre se k ' k , allora k’-k=n e sinnπ è sempre 0.
1
Perciò: f ( x)
2
C e
k
k
ikx
, (1.10)
1
f ( x)e
ikx
Ck dx , o, nel dominio del tempo:
2
1
2
f (t )
2
C 'k eikt
k
C e
k
k
ik t
, (
T
) (1.11)
T T
1 1
C k f (t )e ikt dt C k e i k , C k Ck* Ck e i k , C0 f (t ) dt .
T 0 T 0
1
Confrontando la (1.11) con la (1.9), si ha: f (t ) C0 2 Cn cos(nt n ) , con C0 A0 ,
n 1 2
Dn 2 Cn e n n .
-π 0 π x
-VM
Fig. 1.3
Tale funzione (x) è dispari, dunque gli ai sono tutti nulli. Per la (1.6): ( x) bk sin kx ,
k 1
1 2 2VM 2V
x ( , ) , bk
( x) sin kxdx V sin kxdx
M
0
k
cos kx 0 M [(1) k 1] ,
k
ossia
1 4VM
b2l 0 e b2l 1 e infine:
(2l 1)
4V sin( 2l 1) x
( x) M (1.12)
l 0 (2l 1)
-T/2 0 T/2 T t
-VM
Fig. 1.5
T T 72 Tk Tk
T T /2 T
2 2 2 2V
VM sin ktdt
T /2
Bk f (t ) sin ktdt (VM ) sin ktdt M cos kt 0
T0 T 0
T T 72 Tk
2VM T V V 2V
cos kt T / 2 M ( cos k 1) M ( cos 2k cos k ) M (1 cos k ) , cioè, se k è
Tk k k k
4V
pari, allora Bk 0 , mentre se k è dispari (2l+1), allora Bk M , dunque, per la (1.7):
k
1
4V
sin( 2l 1)t
(t ) A0 [ An cos nt Bn sin nt ] M (1.13)
2 n 1 l 0 (2l 1)
C) Forma esponenziale
T T T /2 T
1 1 1 1
C0 f (t )dt 0 , C k f (t )e ikt dt V M e ikt
dt (VM )e ikt dt
T 0 T 0 T 0
T T /2
VM 1 T /2 V 1 T
e ikt M e ikt
T (ik ) 0 T (ik ) T /2
2VM
dunque, se k è pari, allora Ck 0 , mentre se k è dispari (2l+1), C( 2l 1) i ,
(2l 1)
2VM
C( 2l 1) e k 90 ,
(2l 1)
2VM
(i 2VM ) ikt
f (t ) Ck eikt e i 90eikt e (1.14)
k l ( 2l 1) l (2l 1)
ONDA TRIANGOLARE (Sviluppo in serie di Fourier) in ( , )
f(x)
1
2π -π 0 π 2π x
Fig. 1.6
d
Notare che x (x) .
dx
f(x)
1
-4 -2 0 2 4 x
Fig. 1.6b
Funzione pari, dunque bk 0 . Per la (1.6) (espressa nella forma (1.17) più sotto dimostrata):
2
nx nx nx
2
2 2 4 4
an x cos dx x( sin ) (1)( 2 2 cos ) 2 2 (cos n 1) , se n 0 ; se n=0:
20 2 n 2 n 2 0 n
2
a0 xdx 2 , dunque:
0
4 nx 8 x 1 3x 1 5x
f ( x) 1 (cos n 1) cos 1 2 (cos 2 cos cos .....)
k 1 n2 2
2 2 3 2 5 2
DENTE DI SEGA (Sviluppo in serie di Fourier) in ( , )
f(x)
1
-2π -π 0 π 2π x
Fig. 1.7
f ( x) x , per x ( , ) ; per la (1.6): x bk sin kx , (funzione dispari, dunque ak 0 ).
k 1
1 1 x 1 2
bk
x sin kxdx [ k cos kx
k
cos kxdx] (1) k 1 e dunque:
k
(1) k 1
f ( x) 2 sin kx (1.16)
k 1 k
-4 -2 0 2 4 x
Fig. 1.7b
f(x)=x (0<x<2) e trattasi di funzione dispari, da cui an=0. Per la (1.6) (espressa nella forma (1.17)
più sotto dimostrata):
2
nx nx nx
2
2 2 4 4
bk x sin dx x( cos ) (1)( 2 2 sin ) cos n e dunque:
20 2 n 2 n 2 0 n
( 4) nx 4 x 1 2x 1 3x
f ( x) cos n sin (sin sin sin .....)
k 1 n 2 2 2 2 3 2
SCALINO
f(x)
3
x
Se ora effettuiamo la sostituzione y , da cui: dy dx , si avrà:
L L
1
nx nx
f ( x) a0 [an cos bn sin ] (1.17)
2 n 1 L L
nx nx
L L
1 1
( an
L L
f ( x) cos
L
dx , bn f ( x) sin
L L L
dx )
5
nx nx nx nx nx
5 0 5 5
1 1 3 3 5
bn f ( x) sin dx [ 0 sin dx 3 sin dx] sin dx cos
5 5 5 5 5 5 0
5 50 5 5 n 5 0
3(1 cos nx)
. Dunque:
n
3 3(1 cos nx) nx 3 6 x 1 3x 1 5x
f ( x) sin (sin sin sin ......)
2 n 1 n 5 2 5 3 5 5 5
PARABOLA
f(x)
4 2
4 2 0 2 4 x
Fig. 1.9: Parabola
2 2
1 1 cos nx sin nx cos nx 4
bn x sin nxdx ) 2 x( ) 2( 3 )
2
x2( , dunque:
0
n n 2
n 0 n
4 2
4
4
f ( x) ( 2 cos nx sin nx)
3 n 1 n n
SENO RADDRIZZATO
f(x)
1
-π 0 π 2π x
f(x) è pari, dunque bn=0, mentre per an: ( ( , ) 2(0, ) ) Per la (1.6):
2 1 cos(n 1) x cos(n 1) x
1
an sin x cos nxdx [sin( x nx) sin( x nx)]dx
0 0 (n 1) (n 1) 0
1 1 cos(n 1) cos(n 1) 1 1 (1 cos n ) (1 cos n ) 2(1 cos n )
[ ] [ ] , se n 1 ,
(n 1) (n 1) (n 1) (n 1) (n 2 1)
2 2 sin 2 2 2 4
mentre per n=1: a1 sin x cos xdx 0 e per n=0: a0 sin xdx cos x 0
0 2 0 0
2 (1 cos n )
2
2 4 cos 2 x cos 4 x cos 6 x
quindi: f ( x)
n 2
(n 1)
2
cos nx [ 2
(2 1) (42 1) (62 1)
.....] .
2 4 1
In funzione del tempo: f (t )
n 2, 4,6,... (n 1)
2
cos nt .
1 1 2 1
f (t ) sin t
2
n 2, 4,6,... (n 1)
2
cos nt
TRENO DI IMPULSI
X(t)
VM
-τ/2 τ/2 T t
0
Fig. 1.12: Treno di impulsi
X (t ) VM per -τ/2<t<τ/2 e zero altrove. Per la (1.7) si ha:
T T
1 2 2
X (t ) A0 [ Ak cos kt Bk sin kt ] , con Ak X (t ) cos ktdt ( A0 X (t )dt )
2 k 1 T0 T 0
T
2
T 0
e Bk X (t ) sin ktdt .
La nostra funzione treno di impulsi è pari, dunque Bk=0 e la serie di Fourier si reduce a:
T /2
A 2
X (t ) 0 Ak cos kt e Ak
T T/ 2
X (t ) cos ktdt (integrale con span T, ma non più tra 0 e T,
2 k 1
bensì tra –T/2 e T/2, con riferimento alla Fig. 1.12, poichè in entrambi i casi l’area sottesa è la
stessa). Dunque:
/2
2 2V 1 /2 2V 2V
Ak VM cos ktdt M
T / 2 T k
sin kt / 2 M [sin k sin( k )] M 2 sin k
kT 2 2 kT 2
2
sin k sin k
4V 2 T k 2V T A ,
M (1.18)
2k T
M
T k
k k
T T
sin x
ossia: A0 2VM , poichè col tendere a zero di k , la funzione tende ad 1. Riguardo
T T x
invece l’Ak generico, vale appunto la (1.18). In definitiva:
2VM sin k T
X (t ) VM cos kt (1.19)
T k 1 T
k
T
Se ora l’impulso di Fig. 1.12 lo restringiamo, facendolo diventare una Delta di Dirac ( VM (t ) ) e
sapendo che (t )dx 1 , ossia l’area sottesa dalla delta è 1 (A=base x altezza=(VM τ) x (1/ τ)=
VM), si avrà che nella (1.19) in luogo dell’area dell’impulso rettangolare VM τ, si avrà solo VM e
sin x
inoltre la funzione si restringerà all’unità. Allora:
x
V 2V
(t ) M M cos kt (1.20)
T k 1 T
IDENTITA’ DI PARSEVAL
L
1 a02 2
(an bn2 ) ; infatti, essendo che, per la (1.17):
L L
[ f ( x )]2
dx
2 n 1
1
nx nx 1
f ( x) a0 [an cos bn sin ] e moltiplicando entrambi i membri per f ( x) ed
2 n 1 L L L
integrando:
nx nx
L L L L
1 1 1 1 1 a02 2
L L
[ f ( x )]2
dx a0
2 L L
f ( x ) dx
n 1
[ a n
L L
f ( x ) cos
L
dx bn
L L
f ( x ) sin
L
dx ] (an bn2 )
2 n 1
2-TRASFORMATA DI FOURIER
Ricordiamo qui la (1.10), ossia lo sviluppo in serie di Fourier in forma esponenziale:
1 2
f ( )
2 k
Ck eik ed effettuiamo or ail cambio di variabile: t
T
t , da cui:
2
1 ik t
f (t )
2
Ck e
k
T
, (2.1)
2
2
T /2
ik t 1
f ( )e
ik
con Ck f (t )e T
dt , poiché si aveva: Ck d , ma se
T T / 2 2
2 2
2 2
T /2 T /2
T 1 ik t ik t
t e dunque: Ck
2 2
T / 2
f (t )e T
T
dt
T
T / 2
f (t )e T
dt . Denominiamo ora:
2k 2 2 2
T /2
( pk k ) da cui: pk e dunque: Ck e
ip k t
pk f (t )dt
T T 2 T T / 2
T /2 T /2
pk 1
e e
ip k t ip k t
f (t )dt pk F ( pk ) , con F ( pk ) f (t )dt .
2 T / 2 2 T / 2
1 ip k t
Perciò, per la (2.1), si ha: f (t ) e F ( pk )pk ; a questo punto, per T segue che
2 k
pk dpk dp e la sommatoria diviene integrale:
1
f (t ) e
ipt
F ( p )dp (ANTITRASFORMATA DI FOURIER) (2.2)
2
1
con F ( p )
2 e ipt f (t )dt che è la (TRASFORMATA DI FOURIER) (2.3)
1
2
Se ora uniamo gli esponenziali, otteniamo: f (t ) f (t ' )eip ( t t ') dt 'dp (2.5)
Osserviamo ora che la (2.5) è equivalente alla seguente (2.6):
1
f (t ) f (t ' ) cos p (t t ' )dt ' dp ; (2.6)
p 0 t '
infatti, se nella (2.6) utilizziamo la seguente nota Formula di Eulero: cos p(t t ' ) (eip (t t ') e ip (t t ') ) / 2
1 1
otteniamo: f (t ) f (t ' ) cos p (t t ' )dt ' dp f (t ' )(eip ( t t ') e ip (t t ') )dt ' dp ;
p 0 t ' 2 p 0 t '
0 0
equazione è il Teorema dell’Integrale di Fourier. Ora, inseriamo questi a(p) e b(p) , scritti in x’, in f(x) ed otteniamo:
1
f ( x) a ( p ) cos px dp b( p ) sin px dp { [ f ( x' ) cos px' cos pxdx' f ( x' ) sin px' sin pxdx' ]dp}
0 0
p 0
x ' x '
1
, ma per le formule di sottrazione della trigonometria sappiamo che:
{ [ f ( x' )(cos px' cos px sin px' sin px)dx']dp}
p 0
x '
cos cos sin sin cos( ) , dunque (cosx=cos(-x)): 1
f ( x) { [ f ( x' )(cos px' cos px sin px' sin px)dx']dp}
p 0
x '
1 1
{ [ f ( x' ) cos p( x' x)dx']dp} f ( x ' ) cos p ( x x' )dx' dp f ( x) , che è appunto equivalente alla (2.6).
p 0
x '
p 0 x '
Sulla Delta di Dirac
Per definizione, f ( x' ) ( x x' ) f ( x)dx (2.13)
cioè ( x x' ) , nell’integrale con f(x), fa ottenere f(x’).
Sempre per la (2.13) si ha: f (0) ( x) f ( x)dx . Adesso, inserendo la (2.2) in p’ nella (2.3) in p, si
1 1 1
e ipt [ eip 't F ( p ' )dp ']dt F ( p ' )[ e
it ( p ' p )
ottiene: F ( p ) dt ]dp ' , ma per la (2.13)
2 2
2
la quantità tra parentesi quadre deve valere:
1
( p ' p )
2
eit ( p ' p ) dt (2.14)
1 1
e per p=0: ( p ' ) eitp ' dt . Ribattezzando i simboli, si ottiene: ( x) e
ikx
dk .
2 2
( ( x) ( x) ) Quest’ultima è equivalente alla seguente:
n
1 sin nx 1 1 1
( x) lim lim (einx e inx ) lim eikx dk e
ikx
dk ( x) cvd.
n x n 2ix 2 n n 2
sin nx
D’altronde, la funzione , che è a mo’ di campana, col crescere di n si stringe sempre di più
x
fino a diventare un impulso verticale strettissimo, ossia appunto una Delta di Dirac.
----------------
1
f (t ) e
ipt
F ( p )dp (2.15)
2
F ( p ) e ipt f (t )dt (2.16)
dove la (2.16) non ha più il coefficiente che aveva nella (2.3) e la (2.15) ha il coefficiente della
(2.2), ma al quadrato. Infatti, se si pone la (2.15) nella (2.16), si ottiene ancora la (2.14) per la Delta
di Dirac, cosa che non sarebbe stata vera se avessimo solamente ridefinito il coefficiente della (2.2)
e non quello della (2.3).
e
j t
(t t ' ) f ( x)dt e jt ' , ma questa è null’altro che F [ (t t ' )] , dunque: F [ (t t ' )] e jt '
e, per t’=0: F [ (t )] 1 .
Inoltre, F [e j 0 t ] 2 ( 0 ) , nonchè F [ (t )] e j , F [cos 0t ] [ ( 0 ) ( 0 )] ,
F [sin 0t ] j [ ( 0 ) ( 0 )] .
Per ultimo:
f(t)
1
2 sin a
F ( )
-a a t
Fig. 2.1 0
a
e j t e ja e ja 2 sin a
a
f (t )e dt (1)e
jt j t
F ( ) dt ( 0 ); per 0
a
j a j
F ( ) 2a .
3-TRASFORMATA DI LAPLACE
1
-rampa unitaria r(t)=0 per t<0 e t per t 0 L[r (t )]
s2
1
-funzione esponenziale f(t)=0, per t<0 e et per t 0 L[et ]
s
2
-parabola unitaria p(t)=0 per t<0 e t2 per t 0 L[t 2 ]
s3
-funzione sinusoidale f(t)=0, per t<0 e sin t , per t 0 L[sin t ] (applicando la
s2 2
Formula di Eulero)
s
-funzione cosinusoidale f(t)=0, per t<0 e cos t , per t 0 L[cos t ]
s2 2
Metodi indiretti di L-antitrasformazione
Funzione di trasferimento:
N ( s) bm s m bm 1s m 1 ... b1s b0 N (s)
F (s) n 1
D( s ) an s an 1s ... a1s a0 ( s p1 )( s p2 )...( s pn )
n
A B C
... , dove A [(s p1 ) F ( s )]s p1 eccetera. E così:
( s p1 ) ( s p2 ) ( s p3 )
A B C
L1[ F ( s )] L1[ ] L1[ ] L1[ ] ... Ae p1t Be p2 t Ce p3t ...
( s p1 ) ( s p2 ) ( s p3 )
Se invece:
N ( s) N (s) A A1 A2 An B
F ( s) n 1
n2
...
D( s ) ( s p1 ) ( s p2 ) ( s p1 )
n n
( s p1 ) ( s p1 ) ( s p1 ) ( s p2 )
d
con A [(s p1 ) n F ( s )]s p1 , B [(s p2 ) F ( s)]s p 21 e A1 [(s p1 ) n F ( s )]s p1 ,
ds
1 dn
An n
[(s p1 ) n F ( s )]s p1 , allora, riguardo la L-1 trasformata dei nuovi elementi comparsi, si
n! ds
1 1
avrà: L1[ ] t n 1e pt .
( s p1 ) n
(n 1)!
A B
Infine, nel caso in cui F ( s ) A [(s a jb) F ( s )]s a jb e
( s a jb) ( s a jb)
B [(s a jb) F ( s )]s a jb ed L1[ F ( s )] Ae( a jb )t Be( a jb ) t 2 Ae at sin(bt ) , dove:
b
A a 2 b 2 , A arctg e A 90 .
a
r i
1
f ( x) e sx F ( s )ds
2i r i
ANTITRASFORMATA FORMALE DI LAPLACE
k
Come esempio di applicazione, sappiamo che se F ( s ) , allora f ( x) sinh kx ; infatti:
s k2
2
r i
k e sx
2i r i s 2 k 2
f ( x) ds (Re(s)=r=k). Condizione per chiudere il cammino di integrazione:
per x<0 (Re(s)>r) , per x>0 (Re(s)<r) e abbiamo: f(x)=0, per x<0 e, per x>0
ke sx ke sx ke kx ke kx
f ( x) Re s[ 2 ] sk Re s[ ] sk sinh kx
s k2 s2 k 2 2 k ( 2 k )
Per motivi di convergenza, avendosi f ( x) Ae pt , si avrà L-Trasformata per s>p.
4-TRASFORMATA Z
La Trasformata Z di x(t) altro non è che la Trasformata di Laplace del segnale d’ingresso
campionato, con z e sT .
La T. Zeta per i segnali digitali è l’omologa della T. di Laplace per i segnali continui.
Se si ha dunque una sequenza di valori reali xn (n=0,1,2,…) e nulla per n<0, si ha, per definizione:
Z [ xn ] X ( z ) xn z n (4.1)
n0
Ora, per dimostrare tutto quanto appena detto, consideriamo che il segnale d’ingresso x(t)
campionato ad una fs=1/T ad impulsi di Dirac è:
x* (t ) x(nT ) (t nT ) (4.2)
n 0
che è scritto con l’* perché proprio dalla sua forma matematica si evince che è una convoluzione
discreta ( ) tra x(t) e (t ) . Applicando la T. di Laplace alla (4.2) (e considerando che in
x(nT) non compare t), si ha: X * ( s ) L[ x* (t )] x(nT ) L[ (t nT )] x(nT )e nTs . Ora,
k 0 k 0
definendo z e sT L[ x* (t )] X * ( s ) x(nT ) z n X ( z ) Z [ x* (t )] .
k 0
Citiamo l’antitrasformata Z formale:
1
j 2 C
x(nT ) X ( z ) z n 1dz , con C curva chiusa che, nel piano complesso, racchiude tutti i poli di
X(z).
Proprietà della Trasformata Zeta
-linearità Z [ax1 (nT ) bx2 (nT )] aZ [ x1 (nT )] bZ [ x2 (nT )]
a n x(nT ) X ( z / a) ( X ( z ) Z [ x(nT )] )
-traslazione nel tempo: ( Z [ x(nT )] X ( z ) )
a) y1 x(nT kT ) Z [ y1 ] z k [ X ( z ) x(0) x(T ) z 1 ... x((k 2)T ) z ( k 2) x((k 1)T ) z ( k 1) ]
b) y2 x(nT kT ) Z [ y2 ] z k X ( z ) , con x(nT)=0 per T<kT.
-teorema del valore iniziale: ( Z [ x(nT )] X ( z ) )
se esiste il lim X ( z ) , allora x(0) lim X ( z )
z z
-teorema del valore finale lim x(nT ) lim(1 z 1 ) X ( z ) , se i poli di X(z) sono all’interno del
n z 1
cerchio unitario.
-convoluzione: se X 1 ( z ) Z [ x1 (nT )] e X 2 ( z ) Z [ x2 (nT )] , allora:
X 1 ( z ) X 2 ( z ) Z [ x1 (nT ) * x2 (nT )] dimostrazione analoga a quella per la convoluzione sulla T. di
Fourier di pag. 39.
Metodi pratici di inversione della T. Zeta
Se X(z) è espresso tramite serie di potenze di z ( z 0 , z 1 , z 2 , … ), allora i coefficienti rappresentano
già l’antitrasformata.
Se invece X(z) è un rapporto tra polinomi, allora si effettua la divisione, ottenendo i coefficienti
25 z 2 4 z
cercati nel quoziente; esempio: X ( z )
1 1
z2 z
6 3
1 1
25 z 2 4 z z2 z
6 3
25 25 1 299 2
25 z 2 z 25 z 1 z .........
6 3 6 36
1 25
z
6 3
1 1 1 1
z z
6 36 18
299 1 1
z
36 18
…………………..
…………………..
5-DFT ED FFT (Trasformata Discreta di Fourier)
In questo esempio con N=4, per determinare ciascuno dei 4 valori della DFT, sono state effettuate
N moltiplicazioni ed (N-1) somme. Perciò, in generale, per l’intera DFT, occorrono N2
moltiplicazioni ed N(N-1) addizioni. Con N=1024 106 moltiplicazioni e circa 106 addizioni;
troppe! Per ridurre il numero di operazioni, si sfruttano le ridondanze nella DFT, realizzando così la
FFT (Fast Fourier Transform).
Dall’esempio appena illustrato, emergono le seguenti proprietà:
-linearità
- X (m) X * ( N m) (* = complesso coniugato, ossia: j -j ), nonché X (m) X ( N m) ,
arg X (m) arg X ( N m) , Re[ X (m)] Re[ X ( N m)] , Im[ X (m)] Im[ X ( N m)] .
Si ha dunque simmetria dei valori della DFT intorno ad m=N/2; infatti, nell’esempio, i valori, per
m=1 ed m=3, dei moduli sono uguali ( X (1) X (3) 4,24 ), così come lo sono anche le parti reali
( Re[ X (1)] Re[ X (3)] 3 ); le fasi hanno invece simmetria dispari ( arg X (1) 135 , mentre
arg X (3) 135 ), così come anche le parti immaginarie (Im[X(1)]=3 e Im(X(3)=-3).
Dunque, i valori della DFT per m>N/2 sono ridondanti.
-traslazione: x(n) X(m) ; ora, se il punto in cui si inizia il campionamento è traslato di k, ossia se
x(n) è traslato di k intervalli, si otterrà una x’(n), da cui una X ' (m) e j 2km / N X (m) . X ed X’ hanno
dunque lo stesso modulo, ma uno sfasamento di 2πkm/N.
-periodicità: X (m) X * (m N ) ; infatti:
N 1 N 1
X (m N ) x(n)e j 2 ( m N ) n / N e j 2Nn / N x(n)e j 2mn / N X (m) , poiché e j 2Nn / N e j 2n 1
n 0 n 0
-convoluzione:
l
convoluzione lineare x(n) x1 (n) * x2 (n) x (l ) x (n l )
l
1 2 (un po’ come per le convoluzioni delle
sommatoria si torna ai valori finiti tipici della DFT. E si ha che: (se x(n) x1 (n) x2 (n) )
X (m) X 1 (m) X 2 (m) ed a livello di dualità (solita), si ha anche che: (se x(n) x1 (n) x2 (n) )
1
X ( m) X 1 ( m ) X 2 ( m) .
N
Riguardo invece la convoluzione lineare, bisogna che x1 ed x2 abbiano la stessa lunghezza. Se
dunque x1 ha N1 campioni ed x2 ne ha N2, si aggiungono (N2-1) valori zero alla sequenza x1 ed (N1-
1) zeri ad x2. Così la lunghezza sarà unica e pari a (N1+N2-1). Da qui in poi vale quanto detto per la
convoluzione circolare.
-funzione impulso: se x(n) (nT ) X (m) 1
pari possiamo meglio esprimerli con 2p, mentre i dispari con 2p+1.
Quando n è dispari, notiamo che: WN2 (e j 2 / N ) 2 e j 2 /( N / 2) WN / 2 e così:
N / 2 1 N / 2 1 N / 2 1 N / 2 1
X ( m) x(2 p)WN2 mp
p 0
x(2 p 1)WNm( 2 p 1)
p 0
x(2 p)WN2 mp WNm
p 0
x(2 p 1)W
p 0
2 mp
N
N / 2 1 N / 2 1
x(2 p)W
p 0
mp
N /2 WNm x(2 p 1)W
p0
mp
N /2 A(m) WNm B(m) (5.2)
j 2 / 2 1
W21 (e ) 1 , si ha: X (0) x(0) x(1) e X (1) x(0) x(1) ; più in generale:
N N N N
A(0) x(n) x(n ) x(n) WN0 x(n ) A(1) x(n) x(n ) x(n) WNN / 2 x(n ) ,
2 2 2 2
j 2 / N 0 j 2 / N N / 2
con WN (e
0
) 1 e WN (e
N /2
) 1 .
x(0), x(1), x(2), x(3) x(0),x(2) e x(1),x(3) ; per la (1.32): X (k ) A(k ) WNk B (k ) ,
X (0) A(0) W40 B(0) , X (1) A(1) W41B(1) , X (2) A(2) W42 B(2) A(0) W42 B(0) ,
X (3) A(3) W43 B(3) A(1) W43 B(1) .
Esempio: N=4, x(0)=3, x(1)=4, x(2)=6, x(3)=7 (stesso esempio di pag. 43) Determinare la DFT
utilizzando la FFT. A(0) x(0) W40 x(2) 3 1 6 9 , A(1) x(0) W42 x(2) 3 1 6 3 ,
B(0) x(1) W40 x(3) 4 1 7 11 , B(1) x(1) W42 x(3) 4 1 7 3 ,essendo W40 (e j 2 / 4 )0 1
e W42 (e j 2 / 4 ) 2 e j 4 / 4 1 . Segue che: X (0) A(0) W40 B(0) 9 1 11 20 ,
X (1) A(1) W41B(1) 3 j (3) 3 3 j , X (2) A(0) W42 B(0) 9 1 11 2 ,
X (3) A(1) W43 B(1) 3 j (3) 3 3 j , essendo W41 (e j 2 / 4 )1 j e
W43 (e j 2 / 4 )3 e j 3 / 2 j . Stessi risultati di pag. 43.
FFT A OTTO PUNTI (N=8)
n(0),n(1),n(2),n(3),n(4),n(5),n(6),n(7) suddivisione:
n(0),n(2),n(4),n(6) e n(1),n(3),n(5),n(7) seconda suddivisione:
[n(0),n(4)],[ n(2),n(6)],[n(1),n(5)],[n(3),n(7)]
Se, ad esempio, x(0)=3, x(1)=4, x(2)=6, x(3)=7, x(4)=x(5)=x(6)=x(7)=0, allora, dopo aver
preventivamente calcolato i W:
W80 (e j 2 / N )0 (e j 2 / 8 )0 1 , W81 (e j 2 / 8 )1 0,707 j 0,707 , W82 (e j 2 / 8 ) 2 j
W83 (e j 2 / 8 )3 0,707 j 0,707 , W84 (e j 2 / 8 ) 4 1 , W85 (e j 2 / 8 )5 0,707 j 0,707
W86 (e j 2 / 8 )6 j , W87 (e j 2 / 8 )7 0,707 j 0,707 .
e dopo aver effettuato gli altri calcoli parziali:
C (0) x(0) W80 x(4) 3 1 0 3 , C (1) x(0) W84 x(4) 3 (1) 0 3 ,
D(0) x(2) W80 x(6) 6 1 0 6 , D(1) x(2) W84 x(6) 6 (1) 0 6 ,
E (0) x(1) W80 x(5) 4 1 0 4 , E (1) x(1) W84 x(5) 4 (1) 0 4 ,
F (0) x(3) W80 x(7) 7 1 0 7 , F (1) x(3) W84 x(7) 7 (1) 0 7 , si ha:
A(0) C (0) W80 D(0) 3 1 6 9 , A(1) C (1) W82 D(1) 3 j 6 3 j 6
A(2) C (0) W84 D(0) 3 1 6 3 , A(3) C (1) W86 D(1) 3 j 6 3 j 6
B (0) E (0) W80 F (0) 4 1 7 11 , B (1) E (1) W82 F (1) 4 j 7 4 j 7
B (2) E (0) W84 F (0) 4 1 7 3 , B (3) E (1) W86 F (1) 4 j 7 4 j 7 .
Infine:
X (0) A(0) W80 B (0) 9 1 11 20
X (1) A(1) W81B (1) 3 j 6 (0,707 j 0,707)(4 j 7) 0,879 j13,777
X (2) A(2) W82 B (2) 3 ( j )(3) 3 j 3
X (3) A(3) W83 B (3) 3 j 6 (0,707 j 0,707)(4 j 7) 5,121 j1,777
X (4) A(0) W84 B(0) 9 (1)11 2
X (5) A(1) W85 B (1) 3 j 6 (0,707 j 0,707)(4 j 7) 5,121 j1,777
X (6) A(2) W86 B(2) 3 j (3) 3 j 3
X (7) A(3) W87 B (3) 3 j 6 (0,707 j 0,707)(4 j 7) 0,879 j13,777
---------------------