




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Signals and Systems Homework 5
Due Date: Thursday, April 9, 2009 at the beginning of class
Problems
1. For the following system models, determine if the model represents a BIBO stable system. If the system is not BIBO stable, give an input x( ) t that
demonstrates this.
a) ( ) ( ( ) 5)
t
−∞
( ) cos ( )
y t x t
c) ( ) ( ) x t y t e − = d) y t( ) = x t( ) +y t x t( ) ( )
2. For LTI systems with the following impulse responses, determine if the system is BIBO stable.
a) h t( ) = e −tu t( ) b) h t( ) = u t( ) c)h t( ) = u t( ) − u t( − 10) d) h t( ) = δ( t−1) e) h t( ) = sin( ) ( )t u t f) (hint: use your answer to a)
2 h t( ) =e −tu t( )
3. In this problem we will determine the trigonometric Fourier Series for a full wave rectified signal.
a. Using Euler’s identity, show that
sin( ) cos( ) sin( ) sin( ) 2 2
and
sin( ) sin( ) cos( ) cos( ) 2 2
α β = α − β − α+ β
b. Show that for sin (^0 ) 2
x t( ) Vm t t T
= , the trigonometric Fourier series
coefficients are given by
0
2
m
m k
a
a
k
bk = 0
4. ( Matlab/Prelab Problem ) Read Appendix A , then
Download Fourier_Sine_Series.m from the class website.
a) If you type (in Matlab’s command line) Fourier_Sine_Series(5) you should get a plot like that shown in Figure 1. As you increase the number of terms in the Fourier series, you should get a better match to the function. Run the code for N=100 and turn in your plot.
b) Copy Fourier_Sine_Series.m to a file named Trig_Fourier_Series.m and implement a full trigonometric Fourier series representation. This means you will have to compute the average value and the , and then use these values in
the final estimate.
a o ak
c) Using the code you wrote in part c , find the trigonometric Fourier series representation for the following functions (defined over a single period)
Half-wave rectifier ( Vm = 100 2 volt s , f 0 = 60 Hz)
0 0 1 0 0
sin(2 ) 0 ( )^2 0 2
V m f t t x t T
t
Full-wave rectifier ( Vm = 100 2 volt s , f 0 = 60 Hz)
(Note that this is not the form of the function we used in problem 3, but this form gives a better idea of what a full-wave rectifier does)
Use N = 11 and turn in your plots for each of these functions. Also, turn in your Matlab program for one of these.
e) Using the code you wrote in part d, find the complex Fourier series representation for the following functions (defined over a single period)
f t = e u t−t ≤ t<
2
t t f t t t
3
t t f t t t
Turn in your code****. Be sure to modify your program so any unnecessary code is eliminated (not just commented out). Note that the values of low and high will be different for each of these functions!
In DE II you learned about representing periodic functions with a Fourier series using trigonometric functions (sines and cosines). In this appendix we will determine how to determine a Fourier sine series series for an odd periodic function using our knowledge of numerical integration in Matlab. The only new thing we will need is the idea of a loop.
Trigonometric Fourier Series If x( ) t
( )
is a periodic function with fundamental
period T , then we can represent x t as a Fourier series
0 1 1
( ) (^) k cos( (^) o ) (^) ksin( ) k k
∞ ∞
= =
where
o T
frequency) value, and
a o
( ) cos( )
2 ( )sin( )
o (^) T
k (^) T o
k o T
a x t dt T
a x t k t T
b x t k t T
dt
dt
Even and Odd Functions Recall that a function (^) x( ) t is even if (^) x ( )t = x( −t )(it is
symmetric about the y-axis) and is odd if x( −t ) = − x( ) t (it is antisymmetric about
the y-axis). If we know in advance that functions are even or odd, we can determine that some of the Fourier series coefficients are zero. Specifically,
If x ( )t is even all of the bk are zero.
If x ( )t is odd all of the ak (including ao ) are zero.
For Loops Let’s assume we want to generate the coefficients (^2) k 1
k b k
for k = 1
to k = 10. One way of doing this in Matlab is by using the following for loop
for k=1: b(k) = k/(1+k^2); end;
% % This routine implements a trigonometric Fourier Sine Series % % Inputs: N is the number of terms to use in the series % function Fourier_Sine_Series(N) % % one period of the function goes from low to high % low = -2; high = 2; % % the difference between low and high is one period % T = high-low; w0 = 2pi/T; % % the periodic function... % x = @(t) 0.(t<-1) + t.((-1<=t)&(t<1)) + 0.(t>=1); % % find b(1) to b(N) % for k = 1:N arg = @(t) x(t).sin(kw0t); b(k) = (2/T)quadl(arg,low,high); end; % % determine a time vector over one period % t = linspace(low,high,1000); % % find the Fourier series representation % est = 0; for k=1:N est = est + b(k)sin(kw0*t); end; % % plot the results % plot(t,x(t),'-',t,est,'--'); grid; xlabel('Time(sec)'); legend('Original','Fourier Series','Location','NorthWest'); title(['Number of Terms = ', num2str(N)]);
In the majority of this course we will be using the complex (or exponential) form of the Fourier series, since it is really easier to do various mathematical things with it once you get used to it.
Exponential Fourier Series If x ( )t
(
is a periodic function with fundamental
period T , then we can represent x t )as a Fourier series
( ) (^) k jk^ ot k
x t c e^ ω
∞
=−∞
where
o (^) T
frequency) value, and
c o
o 0
c (
T x t dt ) T
0
( ) o
T jk t ck (^) T x t e = −^ ω
If x ( )t is a real function, then we have the relationships | ck | =| c− k|(the magnitude
is even) and (the phase is odd). Using these relationships we can
then write
(c (^) − k= −( ck
k 1
( ) (^) o 2 | (^) k | cos( (^) o ) k
∞
=
This is usually a much easier form to deal with, since it lends itself easily to thinking of a phasor representation of x( ) t. This will be particularly useful when
we starting filtering periodic signals