Zahri-Edu University

Equation Solver › Differential and integral equations

solver.zahri-edu.net

Wave equation

uₜₜ = c² uₓₓ

1D wave equation on [0, L] with fixed ends, solved by the leapfrog scheme with a CFL check.

Equation uₜₜ = c² uₓₓ on [0, L]
Initial conditions (fixed ends)
Numerical scheme
Exact solution (optional)
Press Solve.

Method

Central differences in space and time (leapfrog): uᵢⁿ⁺¹ = 2uᵢⁿ − uᵢⁿ⁻¹ + (cΔt/Δx)²(uᵢ₊₁ⁿ − 2uᵢⁿ + uᵢ₋₁ⁿ). It is stable when the Courant number cΔt/Δx ≤ 1. The first step uses the initial velocity: u¹ = u⁰ + Δt·v₀ + ½(cΔt/Δx)²δ²u⁰. With Courant number 1 the scheme is exact for the 1D wave equation.

Computed in your browser with double-precision arithmetic; nothing is sent to a server. Check results by substituting them back.

Other solvers