Section 4.1 · First-order systems
From a scalar ODE to a system
Write a third-order equation as three first-order equations, then multiply one matrix row at a time to see how the system fits into matrix form.
x‴ − 2x″ + x′ = 1 + tet
Third-order ODE and first-order system
| State | Derivative | System equation |
|---|---|---|
| x₁ = x | x₁′ = x′ | x₁′ = x₂ |
| x₂ = x′ | x₂′ = x″ | x₂′ = x₃ |
| x₃ = x″ | x₃′ = x‴ | x₃′ = 2x₃ − x₂ + 1 + tet |
Differentiate the definition of x₁.
Differentiate the definition of x₂.
Use the original ODE to write x‴ in terms of the state variables.
Substitute the original variables back in.
x‴ = x₃′ = 2x″ − x′ + 1 + tet
Matrix–vector product
Matrix A
010
001
0−12
State x
x₁x₂x₃
Product Ax
x₂
x₃
2x₃ − x₂
First entry of Ax
0·x₁ + 1·x₂ + 0·x₃ = x₂
Second entry of Ax
0·x₁ + 0·x₂ + 1·x₃ = x₃
Third entry of Ax
0·x₁ + (−1)·x₂ + 2·x₃ = 2x₃ − x₂
Full ODE system
x′=Ax+
001 + tet