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.