Differential Equations & Numerical Methods · BE5B01DEN · Topic 7 of 13
Numerical solution of higher order ODEs
Week 7. Rewrite the equation as a first order system, then apply the same one-step formulas to the whole vector.
Key ideas
Rewrite as a first order system
Name the unknown and each derivative up to order n−1. An equation of order n becomes n equations of order 1, and a system whose orders add up to n becomes n first order equations.
Apply Euler or RK to the vector
Each step computes the slopes of all components from the old values, then updates all of them. Euler on a system is Euler with vector slopes; RK4 works the same way.
The Taylor method as an alternative
Differentiate the equation to get y″, y‴, … at the current point, and take the degree-p Taylor polynomial of the solution as the step. The method has order p and also works directly for higher order equations.
In one line: A higher order ODE is never harder numerically: it is the same method on a longer vector.
Formulas
- Rewrite as a first order system
- Apply Euler or RK to the vector
- The Taylor method as an alternative
Practice with worked solutions
Question 1
Rewrite the equation as a first order system with y₁ = y and y₂ = y′.
- y₁′ = y₂, y₂′ = sin x − 2y₁ − 5y₂
- y₁′ = y₂, y₂′ = sin x − 5y₁ − 2y₂ (correct)
- y₁′ = y₂, y₂′ = sin x + 5y₁ + 2y₂
- y₁′ = sin x, y₂′ = y₁ + y₂
Worked solution
Solve for the highest derivative first, then name each lower derivative.
Question 2
Apply the Euler method with h = 1/2 for two steps to the system form and give y₂ ≈ y(1).
Worked solution
Answer: 3/4
Use u = y and v = y′ and update both with the old values.
Question 3
Apply two Euler steps with h = 0.1 to the system form and give the approximation of y′(0.2).
Worked solution
Answer: -0.34
Update u = y and v = y′ together; v′ = −3v − 2u.
More Differential Equations & Numerical Methods practice in Ucenly
Sources
Written by Ucenly. Based on the BE5B01DEN course materials:
- Course card BE5B01DEN (Bílá kniha), p. 1
- Lecture slides: ODE systems of equations (edens_a2sys.pdf), p. 2
- Lecture slides: ODE numerical approach (edens_n3ode.pdf), p. 1, 4, 5
- Habala: Ordinary Differential Equations and Numerical Analysis (dnbook.pdf), p. 133, 136, 194
- Homework 9 (edenhw09.pdf), p. 1