Unit-2 Time Response Analysis1
Unit-2 Time Response Analysis1
1. Introduction of Unit
Time response analysis is a method used to study how a system reacts to external changes over
time. This analysis is particularly relevant in control systems, signal processing, and
engineering to understand the dynamics of a system.
1. Step Response:
o The output of a system when subjected to a step input (a sudden change from 0
to a certain value).
o Used to determine the stability and transient behavior of the system.
2. Impulse Response:
o The output when subjected to an impulse input (a very short duration input with
an infinitely high peak).
o Represents the system's response in the time domain and is the inverse Fourier
transform of the frequency response.
3. Transient Response:
o The part of the response that dies out over time, usually characterized by
oscillations, overshoot, and settling time.
4. Steady-State Response:
o The part of the response that remains after the transient response has died out.
o Indicates the long-term behavior of the system.
5. Rise Time:
o The time taken for the response to rise from a specified low value to a high value
(usually from 10% to 90% of its final value).
6. Settling Time:
o The time taken for the response to remain within a certain percentage
(commonly 2% or 5%) of its final value.
7. Overshoot:
o The amount by which the response exceeds its final steady-state value.
DETAILED LECTURE MOTES
8. Damping Ratio:
o A measure of how oscillations in a system decay after a disturbance.
o Determines whether the system is underdamped, overdamped, or critically
damped.
1. First-Order Systems:
o Characterized by a single energy storage element.
o Response can be described by a first-order differential equation.
2. Second-Order Systems:
o Characterized by two energy storage elements.
o Response is governed by a second-order differential equation and can exhibit
oscillatory behavior.
1. Time-Domain Analysis:
o Direct observation of the system's response to a given input.
o Useful for understanding transient and steady-state behaviors.
2. Frequency-Domain Analysis:
o Involves transforming the system's differential equations to algebraic equations
using tools like the Laplace transform.
o Provides insights into the system's stability and frequency response.
3. Simulation:
o Using software tools (e.g., MATLAB, Simulink) to model and simulate the
system’s response to various inputs.
o Helps visualize and analyze the behavior of complex systems.
1.4 Applications
System Description
An RC circuit consists of a resistor (R) and a capacitor (C) connected in series with a voltage
source. The output voltage is measured across the capacitor.
Differential Equation
The voltage V (t) across the capacitor in response to a step input Vin (t) can be described by
the following first-order linear differential equation:
𝑑𝑉 (𝑡)
𝑅𝐶 + 𝑉 (𝑡) = 𝑉𝑖𝑛 (𝑡)
𝑑𝑡
Interpretation
✓ Initial Rise: The voltage starts at 0 and rises towards \( V_0 \).
✓ Exponential Behaviour: The rise follows an exponential curve, reaching
approximately 63.2% of \ (V_0 \) at \( t = \tau \).
✓ Steady State: After about \( 5\tau \), the voltage is very close to \( V_0 \).
This example demonstrates how to analyse and understand the time response of
a first-order system using both theoretical and simulation approaches. If you have
any specific aspects you want to delve deeper into or another example you'd like
to explore, feel free to let me know!
Simulation in Python: Let's simulate this in Python to visualize the step response.
DETAILED LECTURE MOTES
python
python
import numpy as np
import matplotlib.pyplot as plt
# Parameters
R = 1e3 # Resistance in ohms
C = 1e-6 # Capacitance in farads
V0 = 5 # Step input voltage in volts
tau = R * C # Time constant
# Time vector
t = np.linspace(0, 5 * tau, 1000) # Simulate for 5 time constants
# Step response
V_t = V0 * (1 - np.exp(-t / tau))
# Plotting
plt.figure(figsize=(10, 6))
plt.plot(t, V_t, label='V(t)')
plt.axhline(y=V0, color='r', linestyle='--', label='Final Value (V0)')
plt.axvline(x=tau, color='g', linestyle='--', label='Time Constant (τ)')
plt.title('Step Response of RC Circuit')
plt.xlabel('Time (s)')
plt.ylabel('Voltage (V)')
plt.legend()
plt.grid(True)
plt.show()
This script simulates and plots the step response of an RC circuit. The key features like the
time constant \ (\tau \) and final value \ (V_0 \) are highlighted.
Interpretation
Initial Rise: The voltage starts at 0 and rises towards \ (V_0 \).
Exponential Behaviour: The rise follows an exponential curve, reaching approximately 63.2%
of \ (V_0 \) at \ (t = \tau \).
Steady State: After about \ (5\tau \), the voltage is very close to \ (V_0 \). plot this code
DETAILED LECTURE MOTES
• Initial Rise: The voltage starts at 0 and begins to rise towards the step input voltage V0
• Exponential Behaviour: The voltage rise follows an exponential curve, reaching
approximately 63.2% of V0 at t = τ, the time constant.
• Final Value: The voltage eventually approaches V0 as time increases.
• Steady State: After about 5τ, the voltage is very close to V0, indicating that the system
has reached its steady state.
The green vertical line marks the time constant τ, and the red horizontal dashed line indicates
the final value V0. This visualization helps in understanding the dynamics of the RC circuit's
step response.
DETAILED LECTURE MOTES
3. Unit Area: Despite its infinite amplitude and zero duration, the area under the impulse
signal is 1. Mathematically:
4. Sifting Property: When the impulse signal is multiplied by another function f (t), it
"sifts" out the value of f (t) at t=0:
Mathematical Representation: The impulse signal δ(t) is not a function in the traditional
sense but rather a generalized function or distribution. It's often represented as the limit of a
sequence of functions that approximate the impulse:
1. System Analysis: Used to analyze the impulse response of LTI systems. The impulse
response characterizes the system completely in the time domain.
2. Convolution: The output of an LTI system can be determined by convolving the input
signal with the system's impulse response.
3. Fourier Transform: The Fourier transform of an impulse signal is a constant (unity),
indicating that the impulse contains all frequencies equally.
In discrete-time systems, the impulse signal is represented as δ[n], which is 1 when n = 0 and
0 otherwise:
2.2 Unit Step Signal (u(t)): The unit step signal, denoted as u(t), is a fundamental
piecewise function that starts at zero for t < 0 and rises to one for t ≥ 0. This signal is
also known as the Heaviside step function, named after Oliver Heaviside. It is used
extensively in signal processing, control systems, and various branches of engineering
to model abrupt changes or transitions in systems. The unit step signal is valuable for
analyzing system response to sudden inputs or for evaluating steady-state behaviour .
Its straightforward form makes it a critical tool for understanding and predicting the
behaviour of systems under conditions where there are step changes or constant inputs,
providing insights into system stability, response time, and transient behaviour .
DETAILED LECTURE MOTES
Sinusoidal signals are prevalent in various fields of science and engineering due to their simple
and predictable nature. They are particularly useful for analyzing linear systems' response to
periodic inputs, understanding resonance phenomena, and characterizing the frequency content
of signals through Fourier analysis. Sinusoidal signals play a crucial role in fields such as
telecommunications, audio engineering, control systems, and signal processing, forming the
basis for understanding harmonic relationships, modulation techniques, and frequency
response characteristics in systems.
2.4 Square Wave Signal: A square wave signal is a periodic waveform characterized by
abrupt transitions between two levels, typically a high level (amplitude +A) and a low
level (amplitude -A), with each level being constant for equal durations. The waveform
alternates between these two levels in a square-like fashion, hence the name "square
wave." Key features of a square wave signal include:
DETAILED LECTURE MOTES
▪ Duty Cycle: The ratio of the duration for which the signal is at the high level to the
total period of the waveform.
▪ Harmonics: Square waves contain odd harmonics (3rd, 5th, 7th, etc.), which are
multiples of the fundamental frequency.
▪ Periodicity: The waveform repeats itself periodically with a period T.
Square wave signals are widely used in electronics, telecommunications, digital signal
processing, and control systems for various purposes:
• Testing and Calibration: They are used to test systems for their response to abrupt
changes, transient behavior, and frequency response characteristics.
• Digital Communication: In digital systems, square waves represent binary signals
(0s and 1s), making them essential for data transmission and modulation techniques.
• Waveform Generation: They serve as a basis for synthesizing other waveforms and
for generating clock signals in digital circuits.
In practical applications, the characteristics of square waves, such as their sharp transitions and
well-defined periodicity, make them valuable tools for both analysis and synthesis of signals
in engineering contexts.
▪ Alternates regularly between two levels (high and low).
▪ Used to test linearity and transient response of systems.
▪ Contains both odd and even harmonics, useful for evaluating frequency-dependent
effects.
2.5 Ramp Signal (t): A ramp signal is a type of input signal that increases linearly over
time. In the context of time response analysis, a ramp signal is often used to test how a
system responds to a steadily increasing input. The ramp function can be
mathematically defined as:
System Description
System Description: Consider the same RC circuit as before, with a resistor R and a capacitor
C connected in series. The output voltage is measured across the capacitor.
Differential Equation
The voltage V(t) across the capacitor in response to a ramp input R(t) can be described by the
following first-order linear differential equation:
To solve this differential equation, we again use the method for first-order linear differential
equations with constant coefficients.
DETAILED LECTURE MOTES
Key Parameters:
▪ Time Constant (τ): τ = RC. This affects how quickly the system responds to the ramp
input.
▪ Initial Condition: For V (0) = 0, the capacitor is initially uncharged.
DETAILED LECTURE MOTES
Simulation in Python
Let's run the code to visualize the response. Here is the plot of the ramp response of an RC
circuit.
DETAILED LECTURE MOTES
• Ramp Signal: The dashed line represents the ramp signal k⋅t, which increases linearly
with time.
• Voltage Response V(t): The solid line shows the voltage across the capacitor in
response to the ramp input.
• Initial Behaviour: The voltage starts from a negative value and gradually increases.
• Time Constant τ: The green vertical line marks the time constant τ. The system's
response speed is influenced by this time constant.
• Asymptotic Behaviour: As time progresses, the voltage V(t) asymptotically
approaches the ramp signal.
DETAILED LECTURE MOTES
2.6 White Noise: White noise is a type of random signal that contains all frequencies within a
given range at equal intensity. It is characterized by a flat spectral density, meaning that its
power is uniformly distributed across the entire frequency spectrum. White noise is often
used in various fields such as engineering, physics, and audio processing.
▪ Random signal with equal intensity at all frequencies.
▪ Used to test system response to stochastic inputs.
▪ Helps in analyzing frequency response, coherence, and noise rejection
capabilities.
1. Signal Processing:
o Used for testing and analyzing systems by providing a broad range of
frequencies simultaneously.
o Employed in dithering to reduce quantization errors in digital signal processing.
2. Communication Systems:
DETAILED LECTURE MOTES
White noise can be represented mathematically as a stochastic process W(t) with the following
properties:
Example in Python
Here's a simple example of generating and plotting white noise using Python:
DETAILED LECTURE MOTES
This visualization demonstrates the characteristics of white noise, making it clear why it is used
in various applications for testing and analysis due to its broad frequency content and
randomness.
1. Deterministic Generation:
o Generated using shift registers and feedback mechanisms, ensuring
reproducibility.
2. Random-like Properties:
o Although deterministic, PRBS has properties similar to random sequences,
such as a balance between 0s and 1s and a high autocorrelation for non-zero
shifts.
3. Length of Sequence:
o The length of a PRBS is 2n−12^n - 12n−1, where nnn is the number of stages
in the shift register.
4. Autocorrelation:
DETAILED LECTURE MOTES
1. System Identification:
o Used as an input signal to identify the dynamic characteristics of systems due
to its rich frequency content.
2. Digital Communications:
o Employed in spread spectrum techniques and for testing communication
channels.
3. Control Systems:
o Utilized in the design and analysis of control systems to test their response to
random-like inputs.
4. Error Detection and Correction:
o Used in generating test patterns for error detection and correction algorithms.
2.7.3 Generating PRBS: PRBS is typically generated using Linear Feedback Shift Registers
(LFSRs). An LFSR consists of a shift register and a feedback function that determines the
next state based on the current state.
Example in Python
1. Function Definition:
o The generate_prbs function takes length (the desired length of the PRBS) and n
(the number of stages in the LFSR) as inputs.
2. Initialization:
DETAILED LECTURE MOTES
dtype=int)).
This code generates a binary sequence that appears random but is determined by the initial state
of the shift register and the feedback function. The resulting sequence has properties similar to
random noise, making it useful for system testing and analysis.
2.8 Chirp Signal: A chirp signal is a type of signal in which the frequency increases or
decreases over time. Chirp signals are widely used in radar, sonar, communications, and
signal processing applications because of their unique properties, such as the ability to
cover a broad frequency range.
1. Frequency Modulation:
o The frequency of the chirp signal varies linearly or non-linearly over time.
o Linear chirps have a frequency that increases or decreases linearly with time.
2. Broadband Nature:
o Chirp signals can cover a wide range of frequencies, making them useful for
system identification and testing.
3. Autocorrelation Properties:
o Chirps have good autocorrelation properties, meaning they can be used for
precise timing and distance measurements in radar and sonar systems.
We can run this code in a Python environment to see the chirp signal.
2.9 Gaussian Pulse: A Gaussian pulse is a type of waveform where the amplitude of the signal
follows a Gaussian function. Gaussian pulses are widely used in various fields such as
telecommunications, radar, and signal processing due to their advantageous properties,
including minimal bandwidth and efficient time-frequency localization.
1. Gaussian Shape:
o The amplitude envelope of the pulse follows a Gaussian function, resulting in a
bell-shaped curve.
2. Time-Frequency Localization:
o Gaussian pulses are well localized in both time and frequency domains,
meaning they have minimal spread in both domains.
3. Fourier Transform:
o The Fourier transform of a Gaussian pulse is also a Gaussian function, which
makes it ideal for applications requiring minimal bandwidth and high spectral
efficiency.
Mathematical Representation
1. Optical Communications:
o Used in optical fiber communications due to their minimal dispersion.
2. Radar and Lidar:
o Employed in radar and lidar systems for precise range and velocity
measurements.
3. Ultrasound Imaging:
o Utilized in medical ultrasound imaging to generate high-resolution images.
4. Signal Processing:
o Applied in various signal processing tasks, including filtering and time-
frequency analysis.
We can run this code in a Python environment to see the Gaussian pulse.
2.10 Sine Sweep Signal: A sine sweep signal, also known as a frequency sweep or chirp signal,
is a sinusoidal signal whose frequency changes continuously over time. The frequency can
increase (up-chirp) or decrease (down-chirp) linearly or non-linearly. Sine sweep signals are
commonly used in system identification, testing, and analysis of audio and communication
systems due to their ability to excite a wide range of frequencies.
1. Frequency Modulation:
o The frequency of the sine wave changes over time. This can be a linear or
exponential change.
2. Broadband Excitation:
o Sine sweep signals cover a wide frequency range, making them useful for
testing system responses across different frequencies.
DETAILED LECTURE MOTES
3. Controlled Parameters:
o The start and end frequencies, duration, and type of sweep (linear or
exponential) can be precisely controlled.
Mathematical Representation
1. System Identification:
o Used to characterize the frequency response of systems, such as filters,
amplifiers, and speakers.
2. Audio Testing:
o Employed in testing the acoustic properties of audio equipment and rooms.
3. Modal Analysis:
o Utilized in mechanical and structural testing to identify natural frequencies and
mode shapes.
DETAILED LECTURE MOTES
4. Communication Systems:
o Applied in spread spectrum communications and testing of channel
characteristics.
Here's an example of generating and plotting a linear sine sweep signal in Python:
We can run this code in a Python environment to see the sine sweep signal.
These standard test signals are crucial tools in engineering and scientific disciplines for
simulating real-world conditions, verifying theoretical models, and evaluating system
performance under controlled inputs. Understanding their properties and applications helps in
designing and testing systems effectively.