Skip to article frontmatterSkip to article content

7.5 Inhomogeneous Systems

Matrix exponential solves the initial value problem

Dept. of Electrical and Systems Engineering
University of Pennsylvania

Binder

Lecture notes

1Reading

Material related to this page, as well as additional exercises, can be found in ALA 10.4 and ALA 10.6.

2Learning Objectives

By the end of this page, you should know:

  • the equation of an inhomogeneous system
  • the solution of a scalar inhomogeneous system
  • the solution of a vector inhomogeneous system

3Definition

Many systems of interest can be modeled by first-order inhomogeneous linear systems of ordinary differential equations of the form:

x˙=Ax+f,(SYS)\dot{\vv x} = A\vv x + \vv f, \quad (\text{SYS})

where ARn×nA \in \mathbb{R}^{n \times n}, x(t)Rn\vv x(t) \in \mathbb{R}^n is the solution, and f(t)Rn\vv f(t) \in \mathbb{R}^n is a known vector-valued function of tt acting as an external force on the system.

4Solution for the Scalar

We rely on our work on general linear systems to know that the solution to (SYS) will have the general form given by the superposition:

x(t)=x(t)+z(t),\vv x(t) = \vv x^*(t) + \vv z(t),

where x(t)\vv x^*(t) is a particular solution representing a response to the forcing, and z(t)\vv z(t) is a solution to the corresponding homogeneous system z˙=Az\dot{\vv z} = A\vv z.

Since we already know that z(t)=eAtz(0)\vv z(t) = e^{At}\vv z(0), all that’s left to work out is the particular solution x(t)\vv x^*(t) in response to the forcing f(t)\vv f(t).

We’ll start, as before, by recalling the scalar case. To solve x˙=ax+f\dot{ x} = a x + f, we set x(t)=eatv(t)x(t) = e^{at}v(t), where v(t)v(t) is a function to be determined. Differentiating, we compute

x˙=aeatv(t)+eatv˙=ax+eatv˙,\dot{x} = ae^{at}v(t) + e^{at}\dot{v} = ax + e^{at}\dot{v},

from which we conclude x(t)x(t) satisfies x˙=ax+f\dot{x} = ax + f if and only if v˙=etaf\dot{v} = e^{-ta}f, i.e., if and only if v(t)=t0teτaf(τ)dτ+v(t0)v(t) = \int_{t_0}^t e^{-\tau a}f(\tau)d\tau + v(t_0), where v(0)=et0ax(t0)v(0) = e^{-t_0a}x(t_0).

5Solution for the Vector

Perhaps unsurprisingly, we can extend this method to the vector setting via the matrix exponential.

We replace our initial guess with x(t)=eAtv(t)\vv x(t) = e^{At}\vv v(t), where v(t)\vv v(t) is a vector-valued function to be determined. We compute the derivative x˙\dot{\vv x} as:

x˙=ddt(eAtv)=ddt(eAt)v+eAtdvdt=AeAtv+eAtv˙=Ax+eAtv˙\dot{\vv x} = \frac{d}{dt}(e^{At}\vv v) = \frac{d}{dt}(e^{At})\vv v + e^{At}\frac{d\vv v}{dt} = Ae^{At}\vv v + e^{At}\dot{\vv v} = A\vv x + e^{At}\dot{\vv v}

from which we conclude that v˙=eAtf\dot{\vv v} = e^{-At}\vv f. We can integrate both sides to obtain, via the Fundamental Theorem of Calculus, that:

v(t)=v(t0)+t0teAτf(τ)dτ,where v(t0)=et0Ax(t0)\vv v(t) = \vv v(t_0) + \int_{t_0}^t e^{-A \tau}f(\tau)d\tau, \quad \text{where } \vv v(t_0) = e^{-t_0A}x(t_0)

This is the last piece we needed to write the general solution to the inhomogeneous initial value problem.

Binder