Model nonlinear motion using fourth-order numerical integration methods. Adjust parameters, initial conditions, and resolution freely. View graphs, download results, and study evolving system behavior.
| Model | x₀ | xend | h | y₀ | y′₀ | Key coefficients |
|---|---|---|---|---|---|---|
| Duffing Oscillator | 0 | 30 | 0.05 | 1.0 | 0.0 | δ=0.20, α=-1, β=1, γ=0.30, ω=1.20 |
| Van der Pol Oscillator | 0 | 25 | 0.04 | 0.5 | 0.0 | μ=1.20, ω₀=1, A=0.20, k=1 |
| Damped Nonlinear Pendulum | 0 | 20 | 0.03 | 0.8 | 0.0 | c=0.15, g=9.81, L=1, F=0.35, ω=1.30 |
| Custom Nonlinear Form | 0 | 12 | 0.02 | 0.3 | 0.1 | a=0.20, b=-0.10, c=0.05, d=0.40, k=1.50, e=0.30 |
General second-order nonlinear equation
y″ = f(x, y, y′)
State conversion
Let y₁ = y and y₂ = y′.
Then y₁′ = y₂ and y₂′ = f(x, y₁, y₂).
Fourth-order Runge–Kutta update
yn+1 = yn + (k₁ + 2k₂ + 2k₃ + k₄) / 6
vn+1 = vn + (m₁ + 2m₂ + 2m₃ + m₄) / 6
Pseudo-energy indicator
E* = 0.5(y′)² + 0.5y²
The calculator transforms the second-order equation into two first-order equations. It then applies the fourth-order Runge–Kutta method across the chosen x-range. This gives stable, high-quality approximations for many nonlinear systems.
The pseudo-energy is a general indicator only. It helps compare relative motion intensity. It is not the exact physical energy for every model.
It solves several second-order nonlinear differential equations numerically. Included options are Duffing, Van der Pol, damped pendulum, and a custom nonlinear form. It is useful when a simple closed-form solution is unavailable.
Many nonlinear equations cannot be solved exactly with elementary formulas. A numerical method steps through the interval and builds an accurate approximation. This makes the tool practical for realistic oscillation and forcing problems.
The page uses the classical fourth-order Runge–Kutta method. It converts the second-order equation into two first-order equations first. Then it updates displacement and velocity together at each step.
Smaller step sizes usually improve accuracy but increase runtime. Start with a moderate value like 0.02, 0.03, or 0.05. If the graph looks rough or unstable, reduce the step size.
y is the state or displacement. y′ is the first derivative, often interpreted as velocity. y″ is the second derivative, often interpreted as acceleration or system curvature.
No. It is a general comparison measure used to track motion intensity. It is helpful for trend inspection, but model-specific physical energy may require a different expression.
This page does not include a full symbolic parser. It provides advanced preset models and a flexible custom coefficient form. That keeps the interface fast, secure, and easy to validate.
Reduce the step size first. Then check whether the coefficients are too large for the selected interval. Highly nonlinear systems can diverge quickly when forcing or stiffness values are extreme.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.