Introduction
A higher‑order differential equation involves derivatives of order two or higher. Many physical systems such as oscillations, mechanical vibrations, and electrical circuits are naturally modeled by second‑order or higher‑order equations.
Examples:
- Simple harmonic oscillator (second order)
- Damped oscillator
- Forced oscillator
- Beam deflection problems
- RLC electrical circuits
To use SepalSolver to solve higher‑order ODEs, they have to first be converted into equivalent systems of first‑order equations.
General Form
A general n‑th order ODE can be written as:
To solve with SepalSolver, we introduce variables:
Then the system becomes:
Example 1C#
Examples
Here are examples of converting and solving various higher‑order ODEs using SepalSolver.
.. Admonition:: Example 1 : Simple Harmonic Oscillator (Second Order)
| Equation: y'' + y = 0, | Converted system:
Example 2C#

.. Admonition:: Example 2 : Damped Oscillator
| Equation: y'' + 2β y' + ω^2 y = 0, | Converted system:
Example 3C#

.. Admonition:: Example 3 : Forced Oscillator
| Equation: y'' + y = cos(t), | Converted system:
Example 4C#

.. Admonition:: Example 4 : RLC Circuit
| Equation: L i'' + R i' + (1/C) i = 0, | Converted system:
Example 5C#

.. Admonition:: Example 5 : Third‑Order Example
| Equation: y''' - y = 0, | Converted system:
Example 6C#

.. Admonition:: Example 6 : Pleiades System (Using Higher Order Solvers)
The Pleiades, also known as the Seven Sisters(M45)[1], is a prominent open star cluster located in the constellation Taurus.It's one of the closest and most easily visible star clusters to Earth[2], making it a favorite target for stargazers and a subject of fascination across cultures. The system of equations describing the motion of the stars in the cluster consists of 14 nonstiff second-order differential equations, which produce a system of 28 equations when rewritten in first-order form.
Celestial mechanics is basically an interplay between
Newton's law of gravitation: F_i = \sum_{i \neq j} g \cfrac{m_i m_j}{||p_j - p_i||^2}d_{ij} and
Newton's second law of motion: F_i = m_i\cfrac{ d^2p_i}{ dt^2}.
The positions determine the gravitational forces acting on the bodies, but the net force on each of the bodies determines its acceleration(i.e.changes its position from the second order).
we examine this system in 2D, i.e. p_i = [x_i, y_i], d_{ij} = \cfrac{(p_j - p_i)}{r_{ ij}} and r_{ij} = ||p_j - p_i||
The dynamics of the system can then be modelled as:
Example 7C#
