1 Reading ¶ Material related to this page, as well as additional exercises, can be found in ALA 10.4 and ALA 10.6.
2 Learning 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 3 Definition ¶ Many systems of interest can be modeled by first-order inhomogeneous linear systems of ordinary differential equations of the form:
x ˙ = A x + f , ( SYS ) \dot{\vv x} = A\vv x + \vv f, \quad (\text{SYS}) x ˙ = A x + f , ( SYS ) where A ∈ R n × n A \in \mathbb{R}^{n \times n} A ∈ R n × n , x ( t ) ∈ R n \vv x(t) \in \mathbb{R}^n x ( t ) ∈ R n is the solution, and f ( t ) ∈ R n \vv f(t) \in \mathbb{R}^n f ( t ) ∈ R n is a known vector-valued function of t t t acting as an external force on the system.
4 Solution 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), x ( t ) = x ∗ ( t ) + z ( t ) , where x ∗ ( t ) \vv x^*(t) x ∗ ( t ) is a particular solution representing a response to the forcing, and z ( t ) \vv z(t) z ( t ) is a solution to the corresponding homogeneous system z ˙ = A z \dot{\vv z} = A\vv z z ˙ = A z .
Since we already know that z ( t ) = e A t z ( 0 ) \vv z(t) = e^{At}\vv z(0) z ( t ) = e A t z ( 0 ) , all that’s left to work out is the particular solution x ∗ ( t ) \vv x^*(t) x ∗ ( t ) in response to the forcing f ( t ) \vv f(t) f ( t ) .
We’ll start, as before, by recalling the scalar case. To solve x ˙ = a x + f \dot{ x} = a x + f x ˙ = a x + f , we set x ( t ) = e a t v ( t ) x(t) = e^{at}v(t) x ( t ) = e a t v ( t ) , where v ( t ) v(t) v ( t ) is a function to be determined. Differentiating, we compute
x ˙ = a e a t v ( t ) + e a t v ˙ = a x + e a t v ˙ , \dot{x} = ae^{at}v(t) + e^{at}\dot{v} = ax + e^{at}\dot{v}, x ˙ = a e a t v ( t ) + e a t v ˙ = a x + e a t v ˙ , from which we conclude x ( t ) x(t) x ( t ) satisfies x ˙ = a x + f \dot{x} = ax + f x ˙ = a x + f if and only if v ˙ = e − t a f \dot{v} = e^{-ta}f v ˙ = e − t a f , i.e.,
if and only if v ( t ) = ∫ t 0 t e − τ a f ( τ ) d τ + v ( t 0 ) v(t) = \int_{t_0}^t e^{-\tau a}f(\tau)d\tau + v(t_0) v ( t ) = ∫ t 0 t e − τ a f ( τ ) d τ + v ( t 0 ) , where v ( 0 ) = e − t 0 a x ( t 0 ) v(0) = e^{-t_0a}x(t_0) v ( 0 ) = e − t 0 a x ( t 0 ) .
5 Solution 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 ) = e A t v ( t ) \vv x(t) = e^{At}\vv v(t) x ( t ) = e A t v ( t ) , where v ( t ) \vv v(t) v ( t ) is a vector-valued function to be determined. We compute the derivative x ˙ \dot{\vv x} x ˙ as:
x ˙ = d d t ( e A t v ) = d d t ( e A t ) v + e A t d v d t = A e A t v + e A t v ˙ = A x + e A t v ˙ \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} x ˙ = d t d ( e A t v ) = d t d ( e A t ) v + e A t d t d v = A e A t v + e A t v ˙ = A x + e A t v ˙ from which we conclude that v ˙ = e − A t f \dot{\vv v} = e^{-At}\vv f v ˙ = e − A t f . We can integrate both sides to obtain, via the Fundamental Theorem of Calculus , that:
v ( t ) = v ( t 0 ) + ∫ t 0 t e − A τ f ( τ ) d τ , where v ( t 0 ) = e − t 0 A x ( t 0 ) \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) v ( t ) = v ( t 0 ) + ∫ t 0 t e − A τ f ( τ ) d τ , where v ( t 0 ) = e − t 0 A x ( t 0 ) This is the last piece we needed to write the general solution to the inhomogeneous initial value problem.
Theorem 1 (The solution to an inhomogeneous linear ODE)
The solution to the initial value problem x ˙ = A x + f \dot{\vv x} = A\vv x + \vv f x ˙ = A x + f with initial conditions x ( t 0 ) = b \vv x(t_0) = \vv b x ( t 0 ) = b is
x ( t ) = e ( t − t 0 ) A b + ∫ t 0 t e ( t − τ ) A f ( τ ) d τ . \vv x(t) = e^{(t-t_0)A}\vv b + \int_{t_0}^t e^{(t-\tau)A}f(\tau)d\tau. x ( t ) = e ( t − t 0 ) A b + ∫ t 0 t e ( t − τ ) A f ( τ ) d τ . Here, e ( t − t 0 ) A b e^{(t - t_0) A}\vv b e ( t − t 0 ) A b is the solution to the homogeneous system x ˙ = A x \dot{\vv x} = A \vv x x ˙ = A x with the initial conditions x ( t 0 ) = b \vv x(t_0) = \vv b x ( t 0 ) = b ; and ∫ t 0 t e ( t − τ ) A f ( τ ) d τ \int_{t_0}^t e^{(t-\tau)A}f(\tau)d\tau ∫ t 0 t e ( t − τ ) A f ( τ ) d τ is the solution to the inhomogeneous system x ˙ = A x + f \dot{\vv x} = A\vv x + \vv f x ˙ = A x + f with initial conditions x ( t 0 ) = 0 \vv x(t_0) = \vv 0 x ( t 0 ) = 0 (we proved this above). Adding the two will yield a solution satisfying both the initial conditions x ( t 0 ) = b \vv x(t_0) = \vv b x ( t 0 ) = b as well as the equality x ˙ = A x + f \dot{\vv x} = A \vv x + \vv f x ˙ = A x + f .