Mathematics / Wave Equation & CFL Stability
FREE TO EXPLORE
LABORATORY 37 · MATHEMATICS

Wave Equation & CFL Stability lab report

A worked wave equation & cfl stability lab report with iteration data tables, logarithmic graphs, calculations, uncertainty and conclusions.

WORKED EXAMPLE · BENCHMARK OBSERVATIONS

A complete example laboratory report.

Simulated demonstration data.

This report illustrates formal numerical analysis, iteration tracking, and convergence rate extraction. Replace its observations with your own computational telemetry when preparing a practical submission.

Student: __________________Student ID: __________________Course: __________________Date: __________________Partner: __________________Instructor: __________________

1. Title and aim

Wave Equation Hyperbolic PDE & Courant-Friedrichs-Lewy (CFL) Stability. Implement the explicit leapfrog finite difference scheme for the one-dimensional hyperbolic wave equation ∂²u/∂t² = c² ∂²u/∂x², evaluate acoustic wave propagation and phase velocity dispersion, and quantitatively verify the Courant-Friedrichs-Lewy (CFL) stability criterion C = c Δt / Δx ≤ 1.000.

2. Abstract

Six computational trials were executed across standardized inputs Step = 1.0 to Step = 6.0 for Wave Equation Hyperbolic PDE & Courant-Friedrichs-Lewy (CFL) Stability. An ordinary least-squares regression yielded an empirical CFL Stability Limit (C_cfl) of 1.000 Courant number (difference from theoretical reference = 0.0000%). The empirical telemetry conclusively validates the theoretical model and complexity scaling with R² = 1.000000.

3. Apparatus and fixed settings

4. Theory and graph choice

From acoustic sound propagation and seismic earthquake waves to electromagnetic radiation and gravitational ripples in spacetime, dynamic non-dissipative transport is governed by hyperbolic partial differential equations. In 1928, Richard Courant, Kurt Friedrichs, and Hans Lewy published their landmark paper establishing the foundational stability principle of computational science: the Courant-Friedrichs-Lewy (CFL) condition. For explicit finite difference schemes, numerical information propagates at grid velocity Δx/Δt; if the physical wave speed c exceeds this numerical speed (Courant number C = c Δt / Δx > 1), physical domain characteristics escape the numerical domain of dependence, triggering instantaneous, violent exponential instability. In this computational laboratory, we implement the explicit leapfrog scheme for the 1D wave equation, simulate d'Alembert pulse splitting, investigate numerical dispersion, and verify the critical CFL stability parameter C = 1.000.

y = C_cfl · k + b

The mathematical regression linearizes the relationship into the form y = mx + b. Here, the independent variable x represents Setting Index k, and the dependent variable y represents Wavefront Metric y = C_cfl · k. The slope m directly extracts CFL Stability Limit (C_cfl), while the intercept b accounts for residual baseline offsets.

5. Method

  1. Set up wave speed c = 1.0 on [0, 2] with fixed boundary conditions u(0, t) = u(2, t) = 0 and initial pulse u(x, 0) = e^{-100(x-1)²}.
  2. Set up standardized Courant parameters C = c Δt / Δx across settings k = 1 to 6 approaching the stability limit C = 1.000.
  3. Compute time level n = 1 using the Taylor expansion u¹ = u⁰ + (C²/2) δ_x² u⁰ satisfying zero initial velocity ∂u/∂t = 0.
  4. Compute u^{n+1} = 2 u^n - u^{n-1} + C² δ_x² u^n, observing pulse splitting into left- and right-propagating d'Alembert wave packets.
  5. Confirm that for C ≤ 1.000 the total wave energy remains bounded and conserved, while for C > 1.000 the solution suffers explosive exponential instability.
  6. Log the standardized wavefront metric across settings k = 1 to 6 and perform linear regression to confirm the critical parameter C_cfl = 1.000.

6. Observations and calculation table

All iterative observations use strictly controlled 64-bit IEEE 754 precision buffers. Residuals are computed relative to the ordinary least-squares regression line.

Table 1. Six simulated observations; x and y represent transformed mathematical metrics.
No.Courant Number Setting (k) (step)Empirical Wave Metric Value (metric)Setting Index kWavefront Metric y = C_cfl · kFitted yResidual
11.01.01.00001.00001.00000.0000
22.02.02.00002.00002.00000.0000
33.03.03.00003.00003.00000.0000
44.04.04.00004.00004.00000.0000
55.05.05.00005.00005.00000.0000
66.06.06.00006.00006.00000.0000

Download the sample observations (CSV) ↓

7. Worked calculation for one observation

For step k = 1.0: Current coordinate x = 1.0000. Mathematical model response y = 1.0000. Output reading: 1.0000.

8. Graph, gradient and final calculation

0.250.401.881.953.503.505.125.056.756.60Setting Index kWavefront Metric y = C_cfl · k

Circular markers represent empirical computational observations. The solid line represents the ordinary least-squares linear fit.

x̄ = 3.50000; ȳ = 3.50000
Σ(x − x̄)² = 17.50000
Σ(x − x̄)(y − ȳ) = 17.50000
m = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)² = 1.00000000
b = ȳ − mx̄ = 0.00000000
y = 1.0000 · k + 0.0000 ⟹ Target = 1.000 (theoretical = 1.0)

9. Uncertainty and comparison

Percentage difference = |estimate − theoretical value| / |theoretical value| × 100 = 0.0000%.

For n = 6 observations, Σresidual² = 0.00000; s² = Σresidual²/(n − 2). Gradient standard error = √[s²/Σ(x − x̄)²] = 0.00000. Intercept standard error = √[s²(1/n + x̄²/Σ(x − x̄)²)] = 0.00000.

Propagating the fit parameters yields a fit standard error of 1.0000e-04 Courant number, with an ideal coefficient of determination R² = 1.000000.

In computational mathematics and numerical analysis, errors arise from algorithmic discretization, finite precision IEEE 754 floating-point arithmetic (machine epsilon ε_mach ≈ 2.22 × 10⁻¹⁶ for 64-bit double precision), and condition number propagation. The ordinary least-squares fit across n = 6 standardized observations provides standard errors for the gradient and intercept. Because the mathematical recurrence is evaluated with high numerical precision, the residual sum of squares is vanishingly small, yielding a coefficient of determination R² ≥ 0.999999 and confirming the theoretical mathematical model.

10. Result and discussion

CFL Stability Limit (C_cfl) = 1.000 Courant number
Theoretical reference value: 1.000 Courant number

The empirical benchmark observations provide rigorous quantitative verification of Wave Equation Hyperbolic PDE & Courant-Friedrichs-Lewy (CFL) Stability. In numerical analysis, scientific computing, and computational mathematics, algorithms are characterized by their asymptotic operational scaling, stability, and convergence rates. Across all six observations, the empirical slope m = 1.0000 confirms the theoretical model with near-zero residual variance. Furthermore, comparison with alternative algorithmic paradigms underscores critical trade-offs between memory footprint, condition number sensitivity, and operational throughput. The algorithm's behavior confirms the mathematical predictions established by numerical analysis literature.

11. Precautions and limitations

Explicit leapfrog is strictly conditionally stable; in multi-dimensional domains, the CFL limit tightens to c Δt √(1/Δx² + 1/Δy²) ≤ 1. The simulation executes the explicit leapfrog wave scheme across standardized Courant settings k = 1 to 6. The standardized wave metric scales linearly with step index k, confirming the theoretical CFL stability limit C_cfl = 1.000 with R² = 1.000000.

12. Conclusion

This computational laboratory investigation quantitatively verified the mathematical formulation and asymptotic scaling of Wave Equation Hyperbolic PDE & Courant-Friedrichs-Lewy (CFL) Stability. Through rigorous tracking across six observation points, we confirmed an empirical CFL Stability Limit (C_cfl) of 1.000 Courant number matching the theoretical reference 1.000 Courant number within 0.0000% error. The investigation demonstrates why this method serves as an indispensable tool in modern computational science.