Signal and Systems B. TECH./MBA TECH. – EXTC/IT Sem III AY 2023-2024 Instructor: Dr. Prashant Kharote SNS What is a Signal? • Conveys information • Sound • Image • Video • Biomedical data • Music • Speech SNS How does a Signal look ? Communication signal Electrical signal Speech / Audio signal Biomedical signal Images SNS Signal Representation Signal is a function of an independent variable SNS Signal Modify signal in time domain Analyze Processing Unit 3: Fourier Series Unit 1: Elementary signals and operations on signals (frequency analysis of periodic CT signal) Unit 4: Fourier Transform (frequency analysis Aperiodic CT signal) Unit 5: Laplace Transform (analyze CT signal in complex domain, s) Unit 6: SNSZ Transform (Discrete signals) Unit 2: LTI Systems What is a System : • We need to process the signal for • Analysis • Interpretation • Manipulation • Control of signals such as Sound , Images, Video, Biomedical data, control signals, telecommunication transmission signals, sensor data, time-varying measurements, etc… Processing of the signal helps to estimate the characteristic parameters of the signal and also to transform the signal into desired form. SNS Scope of the subject • To build up the concepts required to analyze and transform signals • To build up the concepts required to analyze , model and design systems System: Filter, Amplifier, mixers , modulators Antenna Unit 1 SNS Basic Classification of Signals Continuous Time Signal Discrete Time Signal π₯(π‘) π₯[π] SNS Continuous Time and Discrete Time signal • Continuous Time (CT) signals are functions whose amplitude continuously varies with time, • They are denoted as x(t) SNS Discrete Time (DT) Signals • Discrete time signals are functions of values taken as discrete instant of time • It is often derived from CT signals by sampling at uniform time (sampling period) • DT signals are represented as x[n] where n denotes discrete time • n = 0, ±1, ±2, ±3, ….. (note no fractional values) π·ππ ππππ‘π π‘πππ π ππππππ πππ ππππππ πππ‘ππ ππ π₯ π π€βπππ, π = 0, ±1, ±2, … SNS Example of CT and DT signal π πππππ πππ‘ππ‘πππ ππ πΆπ ππππππ π πππππ πππ‘ππ‘πππ ππ π·π ππππππ SNS Example of DT signal SNS Elementary Continuous Time (CT) signals / functions (i) Unit step signal, u(t) (ii) Unit impulse signal, δ(t) (iii) Ramp signal, r(t) (iv) Signum function, Sgn(t) (v) Exponential Signal, e-at (vi) Rectangular Signal, rect(t) (vii)Triangular Signal, (viii)Sinusoidal Signal (ix) Sinc Function SNS (i) Unit step function • Unit step function is denoted by u(t). It is defined as SNS (ii) Unit impulse function Unit Impulse function also known as Dirac or delta function is denoted by δ(t). and it is defined as Impulse signal exists only at t = 0 SNS Significance of impulse function βTo convert a continuous time signal to discrete time signal β SAMPLING: to convert CT signal into DT signal βBy multiplying CT signal by a unit impulse and its shifted versions Any signal can be represented as a series of scaled time shifted impulses SNS (iii) Ramp signal • Ramp signal is denoted by r(t), and it is defined as Ramp signal can also be written as • Unit ramp signal has a slope of 1 r (t) = t u(t) SNS (iv) Signum Function • Signum function is denoted as sgn(t). It is defined as SNS (v) Exponential Signal • Exponential signal is in the form of SNS SNS (vi) Triangular signal / function π₯ π‘ = 2 1 − |π‘| |π‘| π₯ π‘ =π΄ 1− π SNS |π‘| π₯ π‘ =9 1− 3 (vii) Rectangular signal π‘ π₯ π‘ = π΄ ππππ‘ π Example: 5 π‘ ππππ‘ βΆ π₯ π‘ = 5 ππππ‘ 4 SNS −4 2 4 2 −π π Example of rectangular signal ππππ‘ βΆ π₯ π‘ = 4 ππππ‘ 4π‘ 4 −1/4 2 −π/π SNS 1/4 2 1/π Example of rectangular signal 2π‘ ππππ‘ βΆ π₯ π‘ = 3 ππππ‘ π 3 SNS −π/2 2 π/2 2 −π»/π π»/π Unit Rectangular Signal 1 π - 1 π + 1 π 2 π= π 1 ππ‘ π₯ π‘ = ππππ‘ π 2 π΄πππ π€ππ‘β ππSNSπ‘βπ ππ’ππ π = 1 1 π₯ π‘ = , π 1 1 − <π< π π (viii) Sinusoidal Signal Wo is fundamental frequency Φ is the phase To is the fundamental period SNS (ix) Sinc Function • It is denoted as sinc(t) and it is defined as Peak Value at origin = 1 and zero crossings at ± n This is a normalized function. SNS (x) Sampling Function • It is denoted as sa(t) and it is defined as Peak value at origin = 1 and zero crossings at ± nπ SNS This is a unnormalized function. Elementary Discrete Time (DT) signals / functions (i) Unit step signal, u[n] (ii) Unit impulse signal, δ[n] (iii) Ramp signal, r[n] (iv) Signum function, Sgn[n] (v) Exponential Signal, ean (vi) Rectangular Signal, rect[n] (vii)Triangular Signal, (viii)Sinusoidal Signal (ix) Sinc Function SNS Discrete time signals 1. Discrete time unit step signal SNS Discrete time signals 2. Discrete time unit impulse signal SNS Relation between DT unit step and unit impulse signal - SNS Discrete time signal • Exponential signal Where, C is the scaling factor α is the shaping factor For simplicity C = 1 SNS (c) -1 < α < 0, Double sided Decaying exponent (d) α < -1 Double sided growing exponent SNS Unit 1 β Signals 1. 2. 3. 4. Signals Elementary signals – analog and discrete signals Basic operation on signals Classification of Signals SNS Basic Operation on Signals SNS Basic Signal Operations • There are two variable parameters in any signal: I. Amplitude II. Time I. The following operation can be performed with amplitude: Amplitude Scaling: a.x(t) Amplitude Reversal : - x(t) Addition of signals: x1(t) + x2(t) II. The following operations can be performed with time: Subtraction of signals : x1(t) - x2(t) Time Shifting: x(t – to) Multiplication of signals : x1(t) . x2(t) Time Scaling: x(at) Convolution of signals : x1(t) * x2(t) Time Reversal : x ( - t ) SNS Amplitude Scaling SNS SNS Addition of Signals Subtraction of signals Y π‘ = π1 π‘ − π2 π‘ SNS Multiplication of signals Y π‘ = π1 π‘ − π2 π‘ SNS Example 2: Plot the signal a. Y(t) = u(t) + 4 u(t) a. Y(t) = u(t) + 4 u(t) SNS Amplitude Reversal • Whenever the amplitude of a signal is multiplied by -1, then it is known as amplitude reversal. • In this case, the signal produces its mirror image about X-axis. Mathematically, this can be written as: π¦ π‘ = −π₯(π‘) SNS • Example : plot a. π₯ π‘ = −3 π’ π‘ b. π₯ π‘ = 3 π’ − π‘ SNS Time reversal of a signal • If X(t) is the original signal • Time reversal results in signal such that : Y(t) = X(- t) π΄πππππ‘π’ππ πππ£πππ ππ βΆ π‘πππ ππππππ πππππ ππππ’π‘ π ππ₯ππ ππππ πππ£πππ ππ βΆ π‘πππ ππππππ πππππ ππππ’π‘ π ππ₯ππ SNS Find x(-t) for each of the example: Example 2 Example 3 Value on amplitude remains same. Fold the signal along ySNSaxis Example 4 Time Scaling of Signals • • • • If x( t ) is a original signal. Then y(t) = x(αt) is time scaled version of the signal x(t), there α is always positive. If | α | > 1 ---- leads to compression of signal on time axis (speeds up the signal) If | α | < 1 ----- leads to expansion of signal on time axis (slows down the signal) πππ‘π: πβπ ππππππ‘π’ππ ππSNSπ‘βπ π πππππ πππππππ π πππ Meaning of time scaling Consider that signal x(t) represents a tape recording X(2t) is same as record played at twice the speed (therefore will run faster in time -hence compressed) X(t/2) is same recording played at half the speed (therefore will run slower in time -hence expanded) SNS Example 2 (Time Scaling of Signals) Find x(2t) Find x(t/2) Expanded Compressed Note : that time is scaled amplitude remains same SNS Example 3 Find x(2t) Find x(t/2) SNS Exercise: Time scaling application • Go to any you tube video • Go to settings • Go to playback speed • Adjust to 0.75 and check what happens • Adjust to 1.25 and check what happens α = 0.75, ππππ¦ππ π πππ€ … π‘βππ‘ ππ π πππππ ππ ππ₯ππππππ π₯ απ‘ π€βπππ α < 1 α = 1.25, ππππ¦ππ πππ π‘ … π‘βππ‘ ππ π πππππ ππ πππππππ π ππ π₯ απ‘ π€βπππ α > 1 SNS Time shifting of signals • Time shifting is mathematically expressed as, Where, X(t) is the original signal, and t0 represents the shift in time. Note: If shift t0 > 0 (+ve)…………the signal is said to be right shifted (delayed) → x(t - t0) If t0 < 0 (-ve) ………….implies the signal is left shifted (advanced) → x(t + t0) Its generally used to fast-forward (jump in time) or delay a signal (go back in time) as is necessary in most practical circumstances. SNS Example Note: If shift t0 > 0 (+ve) x(t- t0 ) → The signal is shifted to right by t0 (delayed) → move the origin of x(t) to to Meaning → the signal is the signal x(t) that was t0 seconds ago If t0 < 0 (-ve) ………….implies the signal is left shifted by t0 (advanced). Find x(t+4) Find x(t-3) SNS Why x(t - to) signal shift to right and x(t + to) signal shift to left Say a signal was launched at x(t) x(t - to) x ( t – (- to)) x ( t + to)) Signal is delayed by to Signal is advanced SNS Basic Signal Operations I. The following operation can be performed with amplitude: Amplitude Scaling: a.x(t) Amplitude Reversal : - x(t) Addition of signals: x1(t) + x2(t) Subtraction of signals : x1(t) - x2(t) Multiplication of signals : x1(t) . x2(t) II. The following operations can be performed with time: Convolution of signals : x1(t) * x2(t) Time Shifting: x(t – to) Time Scaling: x(at) Time Reversal : x ( - t ) SNS Examples : SNS Construction of different signals • Using elementary signals we can construct different kinds of signal • Elementary signals (i) Unit step signal, u(t) (ii) Unit impulse signal, δ(t) (iii) Ramp signal, r(t) SNS y(t) = u (t) - u (t-2) Sketch the signal y(t) = u (t) - u (t-2) y(t) = u (t) - u (t-2) y(t) = u (t) - u (t-2) 3. Plot -u (t-2) 1. Plot u (t) y(t) = u (t) - u (t-2) 2. Plot u (t-2) SNS Sketch the signal y(t) = u (t) . u (t-2) Multiply the two signals 1. Plot u (t) 2. Plot u (t-2) SNS Let is now see the summary of all operations 1. Plot x(t) = u (t) - u (t-2) 2. Plot y(t) = x (2t) SNS Sketch x(t) = u (t) - u (t-2) and plot y(t)=x(t/2) 1. Plot x(t) = u (t) - u (t-2) 2. Plot x(t/2) i.e expand the time scale by 2 SNS Plot y(t) = u (2t) - u (2t-2) a. Do shifting first (not mandatory but easier step) 1. Plot u (2t)) b. Then do scaling 2. - u (2t-2) c. Amplitude reversal SNS Sketch u (t/2) - u (t/2 - 2) 1. Plot u (t) 3. Plot - u (t/2 - 2) a. Plot u (t ) c. Plot u (t/2 - 2 ) b. Plot u (t - 2 ) d. Plot - u (t/2 - 2 ) 2. Plot u (t/2) SNS Plot the following for the given signal Find x(t+2) Find x(t-2) Shift right by 2 units SNS Example πΆππππ’π‘π: π₯(2π‘ + 3) ππ‘ππ 2: π·π π‘πππ π ππππππ π₯(2π‘ + 3) πΆππππππ π π‘βπ π πππππ π₯ π‘ + 3 ππ¦ 2 π’πππ‘π ππ‘ππ 1 βΆ π·π π‘ππππ βππππ‘πππ βΆ π₯(π‘ + 3) πβπππ‘ π πππππ π‘π ππππ‘ ππ¦ 3 π’πππ‘π SNS Example 2. Compress by factor 2 πΆππππ’π‘π: π₯(−2π‘ + 3) π₯(−2π‘ + 3) 3. Time reversal ππ‘ππ 1 βΆ π·π π‘ππππ βππππ‘πππ βΆ π₯(π‘ + 3) πβπππ‘ π πππππ π‘π ππππ‘ ππ¦ 3 π’πππ‘π Order of compression/ expansion/Time reversal does not matter Time shifting always has to be done first SNS Why do we do shift operation first? u (2t-2) 1. If compression x(2t) or expansion x(t/2) is carries prior to the shift operation, then shift also needs to be compressed / expanded by same factor Therefore, to avoid confusion while solving problems, students are advised to carry the shift operation (if it exist) of x(t) first and then proceed with the reversal/compression/expansion etc. This practice will enable to solve questions easily SNS