Zahri-Edu University

Equation Solver › Differential and integral equations

solver.zahri-edu.net

Heat equation

uₜ = k uₓₓ

1D heat equation on [0, L] with Dirichlet boundaries: explicit, implicit and Crank–Nicolson schemes.

Equation uₜ = k uₓₓ on [0, L]
Initial and boundary conditions

Variable x; L may be used.

Numerical scheme
Exact solution (optional)

Variables x, t.

Press Solve.

Method

Finite differences with r = kΔt/Δx². Explicit: uᵢⁿ⁺¹ = uᵢⁿ + r(uᵢ₊₁ⁿ − 2uᵢⁿ + uᵢ₋₁ⁿ), stable only for r ≤ ½. Implicit and Crank–Nicolson are unconditionally stable and solve a tridiagonal system each step (Thomas algorithm); Crank–Nicolson is second-order accurate in time.

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

Other solvers