The exercises below focus on the numerical behavior of integration
methods. The physics projects use the same ideas in mechanics, thermal
physics, quantum mechanics, electromagnetism, and optics.
Physics projects
These projects use numerical integration as a tool for exploring physical behavior. They are intended to involve both computation and interpretation rather than only evaluation of an integral.
1. Nonlinear pendulum
Objective: determine how the period of a pendulum changes when the small-angle approximation is no longer valid.
T(θ0) = 4√(L/g) ∫0π/2 dφ / √[1 − sin2(θ0/2) sin2φ].
Calculate T/T0 as a function of the initial angle, where T0 = 2π√(L/g). Compare with the small-angle approximation and investigate the behavior as θ0 approaches π.
Validation: recover T/T0 → 1 for small amplitudes.
Possible extension: compare the numerical result with one or more analytical approximations for the amplitude-dependent period.
2. Blackbody radiation
Objective: investigate the integral underlying the Stefan–Boltzmann law and the distribution of radiated energy over frequency.
∫0∞ x3/(ex − 1) dx = π4/15.
Evaluate the improper integral numerically using an interval transformation or controlled truncation. Then calculate the fraction of the total radiated power lying below or above selected values of the dimensionless frequency x.
Validation: compare the total integral with π4/15.
Possible extension: convert the dimensionless calculation to a physical wavelength or frequency range for a selected temperature.
3. Debye heat capacity of a solid
Objective: use numerical integration to calculate the temperature dependence of the heat capacity in the Debye model.
CV = 9NkB(T/ΘD)3 ∫0ΘD/T x4ex/(ex − 1)2 dx.
Calculate CV over a broad temperature range and plot CV/(NkB) versus T/ΘD.
Validation: demonstrate the T3 behavior at low temperature and recover the Dulong–Petit limit CV → 3NkB at high temperature.
Possible extension: use the Debye temperature of a real solid and compare with experimental heat-capacity data.
4. Quantum tunneling in the WKB approximation
Objective: study how the transmission probability depends on particle energy and barrier shape.
P(E) ≈ exp{−2 ∫x1x2 √[2m(V(x) − E)]/ℏ dx}.
Compare a rectangular barrier with a smooth barrier such as V(x) = V0 exp(−x2/a2). Determine the classical turning points and calculate the transmission probability as a function of E.
Validation: for the rectangular barrier, compare the numerical WKB exponent with the analytic constant-barrier result.
Possible extension: investigate how the result changes when the barrier width or height is varied.
5. Electrostatic potential of a finite charged disk
Objective: calculate a genuinely two-dimensional electrostatic integral and compare an off-axis numerical result with an on-axis analytic benchmark.
V(ρ,z) = (σ/4πε0) ∫0R ∫02π r′ dφ dr′ / √[ρ2 + r′2 − 2ρr′cosφ + z2].
First calculate the potential on the symmetry axis (ρ = 0), then move the observation point off axis and evaluate the full two-dimensional integral.
Validation: for z > 0, compare the on-axis result with V(0,z) = (σ/2ε0)[√(R2 + z2) − z].
Possible extension: calculate equipotential curves in a plane containing the disk axis, or obtain an electric-field component by numerical differentiation of the potential.
6. Fresnel diffraction by a single slit
Objective: calculate a diffraction pattern directly from an oscillatory wave integral and follow the transition toward the far-field limit.
U(x,z) ∝ ∫−a/2a/2 exp[i k(x − x′)2/(2z)] dx′, I(x,z) ∝ |U(x,z)|2.
Evaluate the real and imaginary parts of the amplitude numerically and calculate the intensity for several propagation distances.
Validation: at sufficiently large z, compare with the Fraunhofer single-slit result I(θ) ∝ [sin(β)/β]2, where β = (πa/λ) sinθ.
Possible extension: vary the slit width or wavelength and determine how the diffraction pattern changes.