Time-stepping method 2026-10-31
A time-stepping method approximates the evolution of an ordinary differential equation by successive updates at discrete times. It can be applied after a spatial finite element method has converted a time-dependent partial differential equation into an ordinary differential equation system. The implicit time-stepping method is one class of such methods.
Trapezoidal rule Created 2026-09-24 Updated 2026-10-14
As a quadrature rule, the trapezoidal rule replaces an integrand by the linear interpolation joining its two endpoint values:
For nonnegative endpoint values, this is the area of a trapezoid; in general it is a signed area. The quadrature nodes are , each with quadrature weight . Unlike the midpoint quadrature rule, it uses endpoint samples, which can be reused between adjacent panels.
Every affine function agrees with its linear interpolation, so the trapezoidal rule integrates it exactly. On , gives . On , the polynomial instead gives , exceeding by . Its degree of precision of a quadrature rule is exactly one.
If , its signed approximation error satisfies
A convex function lies below its endpoint chord, so the trapezoidal rule overestimates its integral; a concave function gives the reverse inequality. The error formula assumes that the second derivative exists and is a continuous function throughout the closed interval.[ref] A short derivation is the identity
obtained by two integrations by parts. The nonnegative Peano kernel has integral , and the weighted mean value theorem for integrals gives the formula.
This time-stepping use applies the same trapezoidal rule to the integral of the derivative in an ordinary differential equation. That connection explains its place under implicit Runge-Kutta methods; its quadrature behavior and the nonlinear issue in trapezoidal rule fails B-stability concern different uses of the same endpoint averaging.
For a planar turbulent mixing layer, let , , , , and . The stream function enforces mean incompressibility. Substitution into gives the displayed ordinary differential equation, with . When is small, its linear approximation is , so is a Gaussian function and an error function.
Two-state ion-channel gating Created 2026-10-14 Updated 2026-10-14
Two-state ion-channel gating models an individual gate as a random switch between closed and open states. Write for its open probability; this is the in the header equation. An individual gate's state is always closed or open, rather than partly open. A population of identical gates can have a fraction open near , and averaging repeated identically prepared trials estimates the same probability. A finite population's observed fraction fluctuates. See Purves and colleagues, Neuroscience, 2nd edition (2001): Ion Channels Underlying Action Potentials for single-channel steps and their population averages.
At fixed membrane potential , let constant rates govern closed-to-open and open-to-closed transitions respectively, in . This is a two-state continuous-time Markov chain. Over a short interval , an initially closed gate opens with probability , and an initially open gate closes with probability . Gain minus loss gives the deterministic ordinary differential equation for the probability:
Here is the fixed-voltage limiting open probability, and is a time constant. The ratio of the rates fixes the limit, while their sum fixes the speed. With initial probability ,
For a short derivation, subtract : the deviation obeys , yielding the exponential function. After one time constant, of the initial deviation remains. The solution stays between and , so it remains a valid probability. The rate and time constant formulations are described in Gerstner and colleagues, Neuronal Dynamics, §2.2.2: transition rates and channel kinetics.
For a worked toy condition A, choose and . Then , , and
In a separately prepared condition B, choose , and the same . Now , , and . Condition B approaches a higher limit more quickly. These are two stipulated constant-rate conditions with held fixed in each experiment, not an empirical function relating rates to voltage or a sequential switch between conditions. The initial need not be the limiting probability at the newly imposed voltage.
Figure 1.
Two-state ion-channel gating: two constant-rate relaxation conditions
. Original computed probability curves, both starting at . Dashed lines show the limiting open probabilities and ; dotted lines mark time constants and . The dot marks condition A at , where . Smooth curves represent open probability or population averages, not an individual gate's random state trace or an ionic electric current. Details.
In the Hodgkin-Huxley model, the rates depend on membrane potential: and . Its is the limit for voltage held at that . During an action potential, changing changes the rates and gates feed back onto through ionic electric currents; substituting the present voltage into the constant-rate solution does not solve that coupled system. Gating describes availability of a conducting pathway. Even an open ion channel carries zero net ionic electric current at its reversal potential.
The useful bridge is from abrupt random molecular events to a smooth population prediction. A channel requiring several independent permissive gates in an ion channel has an open probability equal to their product; this can make channel availability much smaller than each gate's availability. The Hodgkin-Huxley model uses and for sodium and potassium electrical conductances, respectively.
Universal limit theorem 2026-10-14
For sufficiently regular vector fields, for example bounded fields with bounded derivatives through order three when , the solution map of a rough differential equation exists uniquely and is locally continuous in the rough path metric. Ordinary differential equations driven by smooth approximations therefore converge whenever their enhanced drivers converge. The theorem makes the enhancement, rather than just the original path, the correct input for a continuous solution map.
Velocity Verlet method 2026-10-18
For an ordinary differential equation with acceleration independent of velocity, the velocity Verlet method advances position and velocity by
Here is the time step and . For sufficiently smooth , the global error on a fixed time interval is , so halving reduces the leading global error by a factor of four once the asymptotic regime is reached.
A travelling wave of the viscous Burgers equation can connect constant states through a smooth decreasing layer. Require , , , , and at both ends. Substitution and one integration give
The speed follows by evaluating the integration constant at both end states. It is precisely the Rankine-Hugoniot condition for conservation law flux . Choosing the center gives the displayed hyperbolic tangent profile. Its characteristic width scales as ; a smaller positive makes a thinner smooth layer.
For an original worked example in dimensionless quantities, take , and :
This is an exact classical solution on with its own smooth initial condition and limiting states . It is a family of moving profiles, not the finite- solution starting from an exact discontinuous step. For that different initial condition, the Cole-Hopf transformation supplies the evolution. At , this front starts from the same profile as the Burgers characteristic breaking example: positive diffusion maintains a smooth moving layer while the inviscid profile breaks at .
To check the partial differential equation explicitly, set and . Then
The independent Rankine-Hugoniot condition check gives , using and . At fixed , the vanishing viscosity approximation tends to the entropy shock for and for . At the center the smooth profiles stay at ; changing the value on the discontinuity does not change the limiting weak solution.
Figure 1.
Exact viscous fronts from 2 to 0: the speed stays 1 while the layer narrows with viscosity
. Details.
For , the same integrated ordinary differential equation has between the two states when , so it cannot supply an increasing connecting front. The inviscid admissible expansion is the rarefaction wave of the Burgers Riemann problem with positive flux.
X-ray attenuation 2026-10-18
For a narrow beam of monoenergetic photons crossing homogeneous material of thickness , the uncollided wave intensity obeys . Here is the linear attenuation coefficient, counting removal from the incident beam by photon absorption and scattering of light. It depends on photon energy and material; it is not universally independent of energy.[ref]
An original derivation makes the model explicit. If each thin layer removes fraction of the surviving beam, with the same throughout, then
Thus equal added thicknesses multiply transmission by the same factor. The ordinary differential equation describes uncollided beam survival. To test it with a detector, keep source output, distance, selected photon energy band and detector response fixed. Use a collimator and suitable detector acceptance to exclude scattering of light into the detector. Subtract background, measure an empty-path reference, and keep the detector in its linear operating range. A changing source distance adds geometric dilution and is not an attenuation measurement at fixed geometry.
For a stipulated example, take and . Transmission is . If the empty-path detector rate is , including background , the model predicts sample rate . Recover transmission as ; the raw ratio is biased. These chosen values are a calculation, not measurements of a particular material or a historical apparatus.
Figure 1.
When X-ray transmission is exponential, and when spectral mixing bends it
. Original calculated examples, with stipulated linear attenuation coefficients in inverse millimetres. The left panel uses one photon energy and marks and the half-value layer. The right panel compares an equal-weight mixture of two photon energies with the exponential having the same initial slope. A logarithmic vertical axis turns a single exponential into a straight line. Neither curve is fitted to measured material data. Details.
Zero-dimensional planetary energy balance Created 2026-10-13 Updated 2026-10-20
Consider an idealized planet that is a sphere of radius , illuminated by parallel sunlight of irradiance , measured on a plane perpendicular to the rays. Its intercepting projected area is , whereas its total surface area is . Therefore the incoming power averaged per unit total surface area is
where is the broadband Bond albedo. The factor four is a sphere geometry result, not an atmospheric transmission factor. Local sunlight still varies over the illuminated hemisphere and vanishes on the dark side.
Now stipulate a single spatially uniform temperature , no atmosphere, no internal heating, and emissivity one for outgoing thermal radiation. This is a thermal blackbody model using the Stefan–Boltzmann law; the prescribed solar-band reflection is treated separately, so the body is not a perfect absorber at all wavelengths. Let be the effective heat capacity per unit surface area, in . Conservation of energy gives the ordinary differential equation
Here is net heating per unit surface area, in , and is the Stefan-Boltzmann constant. Use , rounded from the exact constant reported by NIST. [ref] The uniform temperature is a model assumption: generally the surface average of differs from the fourth power of the surface-average temperature.
For fixed Bond albedo , radiative equilibrium requires , giving
With the illustrative solar constant , the global incoming average is :
Fixed Bond albedoReflected average ()Absorbed average ()Equilibrium temperature ()
Doubling albedo here lowers the equilibrium temperature by , rather than halving it: the absorbed fraction changes from to , and thermal radiation scales as . These stipulated Bond albedos are whole-planet examples, not measurements of bare water and ice. The model predicts neither Earth's modern surface temperature nor its response to actual climate change; it omits the greenhouse effect, spatial heat transfer and seasons.
Figure 1.
From a sunlit disk to a whole sphere: geometry and fixed-albedo energy budgets
. The disk intercepts sunlight over area pi R squared; a uniform emitting sphere has four times that area. Both fixed-albedo examples use the same 1360 watts per square metre illumination and thermal emissivity one. Details.
Each fixed-albedo equilibrium is a stable equilibrium: for , the derivative is . A small temperature increase produces net cooling, and a small decrease produces net heating. This is the simplest expression of the stabilizing Planck feedback. Allowing albedo to fall with temperature adds a competing term, as in ice-ocean albedo feedback.