Signals and Systems

2.4 Causal LTI Systems Described by Differential and Difference Equations

Imron Rosyadi

Signals and Systems

2.4 Causal LTI Systems Described by Differential and Difference Equations

System Description using Equations

  • Continuous-time systems are often described by Linear Constant-Coefficient Differential Equations (LCCDEs).
    • Examples: RC circuits (Figure 1.1), vehicle motion (Figure 1.2), mechanical systems with restoring and damping forces.
  • Discrete-time systems are often described by Linear Constant-Coefficient Difference Equations (LCCDEs).
    • Examples: Bank account accumulation (Example 1.10), digital simulations, signal processing filters (e.g., differencing, averaging filters).

Implicit System Specification

  • Differential and difference equations provide an implicit specification of system behavior.
    • They describe a relationship between the input (\(x(t)\) or \(x[n]\)) and the output (\(y(t)\) or \(y[n]\)), rather than an explicit expression.
  • Example: First-order LCCDE \[ \frac{d y(t)}{d t}+2 y(t)=x(t) \tag{2.95} \]
    • This equation relates the rate of change of \(y(t)\) and \(y(t)\) itself to \(x(t)\).
    • It doesn’t directly tell us what \(y(t)\) is for a given \(x(t)\).

Auxiliary Conditions and Initial Rest

  • To find an explicit expression for the output, we must solve the differential or difference equation.
  • Solving requires more information than the equation alone: auxiliary conditions.
    • E.g., initial speed of a car, initial voltage across a capacitor.
  • Different auxiliary conditions lead to different input-output relationships.
  • For Causal LTI systems, the auxiliary conditions typically take the form of the condition of initial rest.
    • If the input \(x(t)=0\) for \(t < t_0\), then the output \(y(t)\) must also be 0 for \(t < t_0\).
    • This implies specific initial conditions at \(t_0\), e.g., \(y(t_0)=0\) (and its derivatives for higher-order systems).

Solving First-Order LCCDE: Example 2.14

Consider the system described by: \(\frac{d y(t)}{d t}+2 y(t)=x(t)\) Let the input signal be: \(x(t)=K e^{3 t} u(t)\)

  • The complete solution to a differential equation consists of two parts: \[ y(t)=y_{p}(t)+y_{h}(t) \tag{2.97} \]
    • \(y_p(t)\): Particular solution (or forced response). This part satisfies the full differential equation with the given input.
    • \(y_h(t)\): Homogeneous solution (or natural response). This part is a solution to the homogeneous differential equation (with input set to zero): \[ \frac{d y(t)}{d t}+2 y(t)=0 \tag{2.98} \]

Example 2.14: Finding the Particular Solution

  • For \(t>0\), the input is \(x(t)=K e^{3 t}\).
  • We hypothesize that the particular solution \(y_p(t)\) will have the same exponential form as the input for \(t>0\): \[ y_{p}(t)=Y e^{3 t} \tag{2.99} \] where \(Y\) is a coefficient to be determined.
  • Substitute \(y_p(t)\) and \(x(t)\) into the original differential equation (\(\frac{d y(t)}{d t}+2 y(t)=x(t)\)) for \(t>0\): \[ \frac{d}{dt}(Y e^{3 t}) + 2 (Y e^{3 t}) = K e^{3 t} \quad \implies \quad 3 Y e^{3 t}+2 Y e^{3 t}=K e^{3 t} \tag{2.100} \]
  • Cancel \(e^{3 t}\) from both sides, then solve for \(Y\): \[ 5 Y = K \implies Y = \frac{K}{5} \tag{2.101, 2.102} \]
  • Thus, the particular solution for \(t>0\) is: \[ y_{p}(t)=\frac{K}{5} e^{3 t}, \quad t>0 \tag{2.103} \]

Example 2.14: Finding the Homogeneous Solution

  • Now, we need to find the homogeneous solution \(y_h(t)\), which satisfies the homogeneous differential equation: \[ \frac{d y(t)}{d t}+2 y(t)=0 \tag{2.98} \]
  • We hypothesize an exponential form for the homogeneous solution: \[ y_{h}(t)=A e^{s t} \tag{2.104} \] where \(A\) and \(s\) are constants.
  • Substitute \(y_h(t)\) into the homogeneous equation: \[ \frac{d}{dt}(A e^{s t}) + 2 (A e^{s t}) = 0 \quad \implies \quad A s e^{s t}+2 A e^{s t}=0 \tag{2.105} \]
  • Factor out \(A e^{s t}\): \[ A e^{s t}(s+2)=0 \]
  • For this to be true for all \(t\), we must have \(s+2=0\), which implies \(s = -2\).
  • Therefore, the homogeneous solution is: \[ y_{h}(t)=A e^{-2 t} \] where \(A\) is an arbitrary constant determined by auxiliary conditions.

Example 2.14: Total Solution and Initial Rest

  • Combine particular and homogeneous solutions to get the general solution for \(t>0\): \[ y(t)=A e^{-2 t}+\frac{K}{5} e^{3 t}, \quad t>0 \tag{2.106} \]
  • Apply the condition of initial rest:
    • Since the input \(x(t)=K e^{3 t} u(t)\) implies \(x(t)=0\) for \(t<0\), a causal LTI system will have \(y(t)=0\) for \(t<0\).
    • This means the initial condition is \(y(0)=0\).
  • Solve for \(A\) using \(y(0)=0\) in the general solution: \[ 0 = A e^{-2(0)} + \frac{K}{5} e^{3(0)} \implies 0 = A + \frac{K}{5} \implies A = -\frac{K}{5} \]
  • Substitute \(A\) back into the general solution to obtain the final, complete response: \[ y(t)=\frac{K}{5} e^{3 t} - \frac{K}{5} e^{-2 t}, \quad t>0 \]
  • Combining with \(y(t)=0\) for \(t<0\): \[ y(t)=\frac{K}{5}\left[e^{3 t}-e^{-2 t}\right] u(t) \tag{2.108} \]

Example 2.14: Output Signal Plot

Adjust the input amplitude K and observe the output response.

General Nth-Order LCCDE

  • A general \(N\)th-order linear constant-coefficient differential equation is given by: \[ \sum_{k=0}^{N} a_{k} \frac{d^{k} y(t)}{d t^{k}}=\sum_{k=0}^{M} b_{k} \frac{d^{k} x(t)}{d t^{k}} \tag{2.109} \]
    • \(N\) is the order of the system (highest derivative of \(y(t)\)).
    • If \(N=0\), then \(y(t)=\frac{1}{a_{0}} \sum_{k=0}^{M} b_{k} \frac{d^{k} x(t)}{d t^{k}}\), which is an explicit function of \(x(t)\) and its derivatives (no auxiliary conditions needed).
  • Solution approach: Still a sum of particular and homogeneous solutions.
    • Homogeneous equation: \(\sum_{k=0}^{N} a_{k} \frac{d^{k} y(t)}{d t^{k}}=0\).
  • Initial Rest Condition: For \(x(t)=0\) for \(t \leq t_0\), the output \(y(t)=0\) for \(t \leq t_0\). This requires the initial conditions: \[ y\left(t_{0}\right)=\frac{d y\left(t_{0}\right)}{d t}=\ldots=\frac{d^{N-1} y\left(t_{0}\right)}{d t^{N-1}}=0 \tag{2.112} \]

Linear Constant-Coefficient Difference Equations (LCCDEs)

  • The discrete-time counterpart to continuous-time LCCDEs is the \(N\)th-order linear constant-coefficient difference equation: \[ \sum_{k=0}^{N} a_{k} y[n-k]=\sum_{k=0}^{M} b_{k} x[n-k] \tag{2.113} \]
  • Solution approach: Analogous to differential equations – sum of a particular solution and a homogeneous solution.
    • Homogeneous equation: \(\sum_{k=0}^{N} a_{k} y[n-k]=0\).
  • Condition of Initial Rest: If \(x[n]=0\) for \(n<n_0\), then \(y[n]=0\) for \(n<n_0\).
    • Under the condition of initial rest, the system described by the difference equation is LTI and causal.

Recursive vs. Nonrecursive Systems

Recursive Equation (IIR)

  • If \(N \ge 1\) (output depends on past outputs), the equation can be rearranged to directly compute \(y[n]\): \[ y[n]=\frac{1}{a_{0}}\left\{\sum_{k=0}^{M} b_{k} x[n-k]-\sum_{k=1}^{N} a_{k} y[n-k]\right\} \tag{2.115} \]
  • Output \(y[n]\) depends on both current/past inputs and past outputs.
  • Requires auxiliary conditions (e.g., \(y[n_0-1], \ldots, y[n_0-N]\)) to start the recursion.
  • Often leads to Infinite Impulse Response (IIR) systems.

Nonrecursive Equation (FIR)

  • In the special case when \(N = 0\): \[ y[n]=\sum_{k=0}^{M}\left(\frac{b_{k}}{a_{0}}\right) x[n-k] \tag{2.116} \]
  • Output \(y[n]\) depends only on present and past inputs.
  • No auxiliary conditions are directly needed, as output is explicit.
  • Always a Finite Impulse Response (FIR) system.
    • Its impulse response \(h[n]\) has finite duration: \[ h[n]= \begin{cases}\frac{b_{n}}{a_{0}}, & 0 \leq n \leq M \\ 0, & \text { otherwise }\end{cases} \tag{2.117} \]

Solving First-Order LCCDE: Example 2.15

Consider the difference equation: \(y[n]-\frac{1}{2} y[n-1]=x[n]\)
Rearranging for recursive computation: \(y[n]=x[n]+\frac{1}{2} y[n-1]\)
Let the input be an impulse: \(x[n]=K \delta[n]\)

  • Apply initial rest condition:
    • Since \(x[n]=0\) for \(n<-1\), initial rest implies \(y[n]=0\) for \(n<-1\).
    • Therefore, \(y[-1]=0\).
  • Iterative Solution for \(n \ge 0\):
    • \(y[0] = x[0] + \frac{1}{2} y[-1] = K \delta[0] + \frac{1}{2}(0) = K\)
    • \(y[1] = x[1] + \frac{1}{2} y[0] = K \delta[1] + \frac{1}{2} K = 0 + \frac{1}{2} K = \frac{1}{2} K\)
    • \(y[2] = x[2] + \frac{1}{2} y[1] = K \delta[2] + \frac{1}{2} \left(\frac{1}{2} K\right) = 0 + \left(\frac{1}{2}\right)^2 K = \left(\frac{1}{2}\right)^2 K\)
    • \(\vdots\)
    • In general, for \(n \ge 0\): \(y[n] = \left(\frac{1}{2}\right)^n K\).
  • Impulse Response (\(K=1\)): \[ h[n]=\left(\frac{1}{2}\right)^{n} u[n] \tag{2.125} \] This is an Infinite Impulse Response (IIR) system.

Example 2.15: Impulse Response of an IIR System

Observe the decaying impulse response for different coefficients.

Block Diagram Representations

  • Representing systems using block diagrams offers several advantages:
    • Provides a pictorial representation for better intuitive understanding of system structure.
    • Useful for simulation (analog or digital computers).
    • Guides hardware implementation for physical systems.
  • Basic Operations for Discrete-Time Systems:
    • Adder: Sums multiple input signals.
    • Multiplier: Scales a signal by a constant coefficient.
    • Unit Delay: Outputs the input from the previous time step. This is the memory element.

Discrete-Time First-Order System Block Diagram

System equation: \(y[n]+a y[n-1]=b x[n]\)
Rearranged for direct computation: \(y[n] = -a y[n-1] + b x[n]\)

graph LR
    x_n("x[n]") --> mult_b{b}
    mult_b --> sum1("$$+$$")
    delay("$$z^{-1}$$") -- y[n-1] --> mult_a{-a}
    mult_a --> sum1
    sum1 -- y[n] --> delay
    sum1 -- y[n] --> y_n("y[n]")

    subgraph Operations
        sum1
        mult_b
        mult_a
        delay
    end

  • The delay element (\(z^{-1}\)) represents the system’s memory. Its initial state corresponds to the auxiliary condition \(y[-1]\).
  • This diagram clearly shows feedback, characteristic of recursive (IIR) systems.

Basic Elements of Block Diagram

For equation \(y[n] = -a*y[n-1] + b*x[n]\) : (a) an adder; (b) multiplication by a coefficient; (c) a unit delay; (d) overall representation.

Basic Operations for Continuous-Time Systems

  • Similar basic elements found in continuous-time block diagrams:
    • Adder: Sums multiple input signals.
    • Multiplier: Scales a signal by a constant coefficient.
  • Crucially, for continuous-time, instead of a differentiator (which is difficult to implement and sensitive to noise), we use an integrator.
    • Integrator: \(\int_{-\infty}^{t} (\cdot) d\tau\). This is the memory storage element for continuous-time systems.

Continuous-Time First-Order System Block Diagram

System equation: \(\frac{d y(t)}{d t}+a y(t)=b x(t)\)
Rearranged for integration: \(\frac{d y(t)}{d t}=b x(t)-a y(t)\)
Integrate from \(-\infty\) to \(t\): \(y(t)=\int_{-\varkappa}^{t}[b x(\tau)-a y(\tau)] d \tau\)

graph LR
    x_t("x(t)") --> mult_b{b}
    mult_b --> sum1("$$+$$")
    y_t("y(t)") --> mult_a{-a}
    mult_a --> sum1
    sum1 --> intg("∫dτ")
    intg --> y_t

  • The integrator is the memory element, storing the accumulated signal.
  • The value \(y(t_0)\) represents the initial condition stored by the integrator.
  • This representation is the basis for analog computer simulations.

Basic Elements of Block Diagram

  1. an adder; (b) multiplication by a coefficient; (c) a differentiator; (d) overall representation using differentiator; (d) overall representation using integrator

Continous System in Differential Equations

Mass–Spring System (Oscillator)

A mass attached to a spring (ignoring friction first).

  • Hooke’s law: restoring force \(F = -kx\)
  • Newton’s second law: \(F = m \dfrac{d^2x}{dt^2}\)

So:

\[ m \frac{d^2x}{dt^2} + kx = 0 \]

This second-order ODE governs the oscillation. Its solution is sinusoidal:

\[ x(t) = A \cos(\omega t) + B \sin(\omega t), \quad \omega = \sqrt{\tfrac{k}{m}} \]

Continous System in Differential Equations

RC Circuit (Charging a Capacitor)

A resistor \(R\) and capacitor \(C\) in series with a voltage source \(V\). Kirchhoff’s law:

\[ V = V_R + V_C = Ri(t) + \frac{q(t)}{C} \]

Since \(i(t) = \dfrac{dq}{dt}\):

\[ R \frac{dq}{dt} + \frac{q}{C} = V \]

This first-order ODE models how charge (and voltage across capacitor) evolves. The solution is exponential:

\[ q(t) = CV \left(1 - e^{-t/RC}\right) \]

Pendulum (Nonlinear System)

For a pendulum of length \(L\), angle \(\theta(t)\):

\[ \frac{d^2 \theta}{dt^2} + \frac{g}{L}\sin(\theta) = 0 \]

This is a nonlinear ODE (due to \(\sin\theta\)).

Discrete System in Difference Equations

Digital RC Circuit (Discrete Approximation)

If you sample the continuous RC circuit at time steps of length \(\Delta t\), the capacitor voltage \(v[n]\) satisfies a first-order difference equation:

\[ v[n+1] = \left(1 - \frac{\Delta t}{RC}\right) v[n] + \frac{\Delta t}{RC} V \]

This models how the voltage changes step by step in a digital simulation.

Spring-Mass System with Numerical Integration

Discretizing Newton’s second law for a spring–mass:

\[ m \frac{d^2x}{dt^2} = -kx \]

Using finite differences (\(x_{n+1} - 2x_n + x_{n-1}\)/\(\Delta t^2\)):

\[ x_{n+1} = 2x_n - x_{n-1} - \frac{k}{m} \Delta t^2 \, x_n \]

This is a second-order difference equation that simulates oscillations step by step.

Control Systems (Z-Domain Models)

Digital controllers (like in robotics or motor drives) are governed by difference equations. Example: A discrete-time first-order system:

\[ y[n+1] = a y[n] + b u[n] \]

where \(y[n]\) is system output and \(u[n]\) is input at time step \(n\).

Conclusion

  • LCCDEs are fundamental for describing causal LTI systems in both continuous and discrete domains.
  • Solving involves finding a particular solution (forced response) and a homogeneous solution (natural response).
  • Auxiliary conditions, particularly the condition of initial rest, are crucial for unique, causal, and LTI solutions.
  • Discrete-time systems are categorized as Recursive (IIR) or Nonrecursive (FIR) based on output dependence.
  • Block diagrams (using adders, multipliers, delays/integrators) provide valuable visual understanding and aid implementation.
  • Ahead: We will develop more powerful frequency-domain tools (e.g., Laplace and Z-transforms) to simplify solving these equations and further analyze complex system properties.