Skip to content
Oakfield Operator Calculus Function Reference Site

Smooth Saturation Functions

A representative smooth saturation is

s(x)=smaxtanh ⁣(xsmax)s(x) = s_{\max}\,\tanh\!\left(\frac{x}{s_{\max}}\right)

where smax>0s_{\max} > 0 sets the asymptotic magnitude.

For real inputs, s:R(smax,smax)s:\mathbb{R}\to(-s_{\max},s_{\max}).


ss is CC^\infty, odd, and strictly increasing.

s(x)=sech2 ⁣(xsmax)s'(x) = \operatorname{sech}^2\!\left(\frac{x}{s_{\max}}\right)

peaks at the origin and decays as x|x| grows. Approaches ±smax\pm s_{\max} exponentially for large ±x\pm x.


  • As smaxs_{\max}\to\infty, s(x)s(x) approaches the identity map.
  • Scaling smaxs_{\max} rescales the saturation plateau and the transition width.
  • Other smooth saturations (e.g. arctangent or rational forms) share the same bounded, differentiable character.

Hyperbolic tangent is the unit-plateau case; soft clamping introduces asymmetric bounds and logistic transitions.


Oakfield primarily uses tanh-shaped saturations as simple, robust nonlinearities:

  • Analytic warp (TANH profile) provides a smooth bounded warp option intended to avoid singularities/poles present in other analytic profiles.
  • Remainder (TANH nonlinearity) uses tanh as a pre-difference transform to reduce sensitivity to outliers and large spikes.
  • Visualization and diagnostics often apply tanh-like compression to keep displays stable under wide dynamic range.

Smooth saturation functions are modern numerical modeling primitives that replace hard clamps with differentiable alternatives, often built from classical special functions like tanh\tanh.

They are commonly used to preserve differentiability while enforcing boundedness, improving robustness in optimization and PDE simulations.


  • NIST Digital Library of Mathematical Functions (DLMF), §4
  • Hairer, Nørsett, Wanner, Solving Ordinary Differential Equations I