Related Concepts: 2.01 Systems Classification, LTI Properties & Stability, 2.02 The Continuous Convolution Integral, 2.03 Properties of the Convolution Integral, 2.05 Block-Diagram Representations & System Interconnections


2.04 Systems Described by Differential & Difference Equations

1. The Classical Modeling Paradigm

Alright — today we are diving into the mathematical engine room of LTI systems. Up until now, we’ve treated systems as “black boxes” represented by their impulse response or . But how do we model the physical reality of circuits containing inductors, capacitors, or discrete digital feedback loops?

We use Linear Constant-Coefficient Differential Equations (LCCDEs) for continuous-time systems and Linear Constant-Coefficient Difference Equations for discrete-time systems. These models are the mathematical bedrock of physical engineering.


2. Time-Domain Solutions of Continuous LCCDEs

A general -th order continuous-time system is modeled by the differential equation:

To find the output response for a given input , classical time-domain analysis splits the solution into two distinct parts:

A. The Homogeneous (Complementary) Solution,

The homogeneous solution {the natural response of the system representing its behavior without any external excitation} is found by setting the input :

To solve this, we assume a trial solution of the form . Substituting this trial solution yields the characteristic equation:

Solving this polynomial gives the characteristic roots (or system eigenvalues) . The form of depends entirely on the nature of these roots:

  1. Distinct Real Roots ():
  2. Repeated Real Roots ( with multiplicity ):
  3. Complex Conjugate Pairs ():

Physical Meaning of Roots

The real part of the characteristic roots dictates the damping of the natural response. If , the natural response decays exponentially, representing a stable physical system. The imaginary part dictates the frequency of natural oscillations.


B. The Particular Solution,

The particular solution {the forced response of the system representing its behavior driven entirely by the input signal} satisfies the differential equation for the given input . We find using the Method of Undetermined Coefficients by matching the mathematical form of the input :

Input Shape Assumed Particular Solution
Constant: (Constant)
Exponential: (provided is not a characteristic root)
Polynomial:
Sinusoidal:

3. Step-by-Step Continuous Numerical Solution

Let’s apply this classical pipeline to solve a standard exam-scoring continuous-time system.

Continuous-Time Step and Impulse Responses

Question: Consider the continuous LTI system described by the first-order differential equation: Determine the Step Response and the Impulse Response of this system, assuming the system is initially relaxed ( at ).

Part I: Solving for the Step Response,

For the step response, the input is . We analyze the system for , where .

Step 1: Find the Homogeneous Solution,

Set the right-hand side of the differential equation to zero: Assume . The characteristic equation is: Thus, the homogeneous solution is:

Step 2: Find the Particular Solution,

Since the input for is a constant (), we assume a constant particular solution: Substitute into our governing differential equation: Thus, our particular solution is:

Step 3: Combine and Apply Initial Conditions

The total response is the sum of the homogeneous and particular responses:

Now, we apply the initial condition to find the undetermined constant :

Substituting back into our total response yields our step response:

[GRAPH: Step response curve y(t) rising exponentially from 0 at t=0 and asymptotically flattening toward 1 as t approaches infinity. — governing equation: y(t) = (1 - e^-t)u(t) — source: Rabiul Sir Notes, Lec 6]


Part II: Solving for the Impulse Response,

The impulse response is the system output when the input is a unit impulse . Since a unit impulse is the derivative of a unit step , and the system is linear and time-invariant, the impulse response is the time derivative of the step response:

Applying the product rule of calculus:

Since the term evaluated at the impulse location is exactly zero, the second term vanishes completely:

[GRAPH: Impulse response curve h(t) starting abruptly at a peak of 1 at t=0 and decaying exponentially toward 0 as t approaches infinity. — governing equation: h(t) = e^-t * u(t) — source: Rabiul Sir Notes, Lec 6]


4. Time-Domain Solutions of Discrete Difference Equations

A discrete-time LTI system of order is represented by the difference equation:

Just like its continuous counterpart, we solve this classical recurrence relation by decomposing it:

A. The Discrete Homogeneous Solution,

We set and assume a trial solution of the form . Substituting this trial form gives the discrete characteristic equation:

Solving for the roots determines the shape of :

  1. Distinct Roots:
  2. Repeated Roots:

Discrete Stability Condition

For a discrete system to be stable, the natural response must decay over time as . This requires the magnitude of all characteristic roots to be strictly less than unity (). On the complex z-plane, this means all poles must lie inside the unit circle.

B. The Discrete Particular Solution,

The trial particular solution matches the discrete shape of the input :

Input Shape Assumed Particular Solution
Constant: (Constant)
Exponential: (provided is not a characteristic root)
Polynomial:

5. Step-by-Step Discrete Numerical Solution

Let’s tackle a highly-tested discrete recurrence problem featuring initial conditions.

Discrete Second-Order Difference Equation

Question: Solve the second-order recursive discrete system described by: with step input , and initial auxiliary conditions {conditions specifying the starting state of the system’s memory delay buffers} given as and .

Step 1: Establish the Homogeneous Solution,

Set the right-hand side of our difference equation to zero: Assume . The characteristic polynomial equation is: Thus, our homogeneous solution has the form:

Step 2: Establish the Particular Solution,

Our input is the step function , meaning . For , the input is a constant (), so we assume a constant trial particular solution: Substitute into our difference equation for : Thus, our particular solution is:

Step 3: Compute Discrete Boundary States via Recursion

To apply our initial values to find and , we need the system output states at and . We calculate these directly using the system difference equation and the given initial conditions , .

  • For : Since step in negative time:

  • For : Since step :

Step 4: Combine and Solve for Coefficients

Our total response is modeled as:

Now we apply our calculated boundary states and to set up a system of linear equations:

  1. At :

  2. At :

Substitute into the equation:

Since , we find:

Step 5: Final Total Solution

Substituting our solved constants back into our equation yields our final complete response:


6. Natural vs. Forced Response (An Critical Distinction)

In exams, students often confuse the classical homogeneous/particular split with the physical Natural/Forced split. They are not the same!

graph TD
    TR[Total Solution Response] --> HS_PS[Method 1: Homogeneous + Particular]
    TR --> NR_FR[Method 2: Natural + Forced]
    
    HS_PS --> HS[Homogeneous Response]
    HS_PS --> PS[Particular Response]
    
    NR_FR --> NR[Natural/Zero-Input Response]
    NR_FR --> FR[Forced/Zero-State Response]
    
    style TR fill:#f9f,stroke:#333,stroke-width:2px
    style HS_PS fill:#bbf,stroke:#333
    style NR_FR fill:#bfb,stroke:#333
  1. Natural Response (Zero-Input Response, ): The system response due only to initial conditions, setting the input .
  2. Forced Response (Zero-State Response, ): The system response due only to the input , setting all initial conditions to zero.

7. ECE 2108 Laboratory Connection

In Experiment 03 of your lab, you will model these continuous differential equations and discrete systems using MATLAB:

% Continuous system simulation
num = [1]; den = [1, 1];          % Represents dy/dt + y = x
sys = tf(num, den);
step(sys);                       % Plots the step response
 
% Discrete recurrence simulation using filter
b = [0, 1]; a = [1, 0, -1/9];     % Represents y[n] - 1/9 y[n-2] = x[n-1]
x = ones(1, 20);                  % Step input array
y = filter(b, a, x);              % Computes recursive response
stem(y);                         % Plots discrete stems

Common Mistakes That Cost Marks

Exam Pitfall Checklist

  1. Applying Initial Conditions Too Early: This is the #1 source of lost marks in difference/differential equation questions! Students frequently apply initial conditions to the homogeneous solution before adding the particular solution . Always apply initial conditions to the total combined response .
  2. Ignoring the Duplicate Root Trap: If the input signal matches one of your characteristic roots, your standard particular trial solution will fail. For example, if your characteristic root is and your input is , your particular trial solution cannot be (as it is already absorbed by the homogeneous solution). You must multiply the trial solution by the independent variable: .
  3. Using the Wrong Auxiliary Limits: For continuous-time systems, remember that physical variables (like current through an inductor or voltage across a capacitor) cannot change instantaneously. Thus, boundary states at are equated to states at . For discrete systems, compute recursively from the delay terms.

PYQ Bank — Verbatim Questions & Answer Plans

Q1: Continuous System Representation [10 Marks] [PYQ 2024]

Represent the following differential equation in a state model:

  • Answer Plan:
    1. Define state variables based on the phase-variable method: , , .
    2. Write the derivatives of the state variables: , , and .
    3. Express the equations in matrix form and .

Q2: System Realization and Real-World Traps [15 Marks] [PYQ 2018]

Determine the output of the system described by: where , and initial conditions are given as .

  • Answer Plan:
    1. Find the homogeneous solution .
    2. Note that the input is , meaning . For , the input is 1, so particular solution .
    3. Compute boundary outputs and using recursive equations from the difference relation.
    4. Combine homogeneous and particular solutions, and solve for constants and using the boundary states.

Self-Check Before Moving On

  • Can you explain the physical difference between the homogeneous response and the particular response?
  • Do you know how to identify and avoid the “duplicate root particular solution trap”?
  • Can you solve a first-order continuous differential equation step-by-step for a unit step input?
  • Can you recursively calculate discrete output states and given arbitrary past initial conditions and ?

Source: (K. Deergha Rao) Signals and Systems, Chapter 2 & 6; Rabiul Sir class notes, Lecture 7 & 8.