TheHeaviside step function, or theunit step function, usually denoted byH orθ (but sometimesu,1 or𝟙), is astep function named afterOliver Heaviside, the value of which iszero for negative arguments andone for positive arguments. Different conventions concerning the valueH(0) are in use. It is an example of the general class of step functions, all of which can be represented aslinear combinations of translations of this one.
The function was originally developed inoperational calculus for the solution ofdifferential equations, where it represents a signal that switches on at a specified time and stays switched on indefinitely. Heaviside developed the operational calculus as a tool in the analysis of telegraphic communications and represented the function as1.
Approximations to the Heaviside step function are of use inbiochemistry andneuroscience, wherelogistic approximations of step functions (such as theHill and theMichaelis–Menten equations) may be used to approximate binary cellular switches in response to chemical signals.
For asmooth approximation to the step function, one can use thelogistic function:where a largerk corresponds to a sharper transition atx = 0.
If we takeH(0) =1/2, equality holds in the limit:
Often anintegral representation of the Heaviside step function is useful:where the second representation is easy to deduce from the first, given that the step function is real and thus is its owncomplex conjugate.
SinceH is usually used inintegration, and the value of a function at a single point does not affect its integral, it rarely matters what particular value is chosen ofH(0). Indeed whenH is considered as adistribution or an element ofL∞ (seeLp space) it does not even make sense to talk of a value at zero, since such objects are only definedalmost everywhere. If using some analytic approximation (as in theexamples above) then often whatever happens to be the relevant limit at zero is used.
There exist various reasons for choosing a particular value.
H(0) =1/2 is often used since thegraph then hasrotational symmetry; put another way,H −1/2 is then anodd function. In this case the following relation with thesign function holds for allx:Also,.
H(0) = 0 is used whenH needs to beleft-continuous. In this caseH is an indicator function of anopen semi-infinite interval:
In functional-analysis contexts fromoptimization andgame theory, it is often useful to define the Heaviside function as aset-valued function to preserve the continuity of the limiting functions and ensure the existence of certain solutions. In these cases, the Heaviside function returns a whole interval of possible solutions,H(0) = [0,1].
An alternative form of the unit step, defined instead as a function (that is, taking in a discrete variablen), is:Or using the half-maximum convention:[2]wheren is aninteger. Ifn is an integer, thenn < 0 must imply thatn ≤ −1, whilen > 0 must imply that the function attains unity atn = 1. Therefore the "step function" exhibits ramp-like behavior over the domain of[−1, 1], and cannot authentically be a step function, using the half-maximum convention.
Unlike the continuous case, the definition ofH[0] is significant.
The discrete-time unit impulse is the first difference of the discrete-time step:This function is the cumulative summation of theKronecker delta:where is thediscrete unit impulse function.
TheFourier transform of the Heaviside step function is a distribution. Using one choice of constants for the definition of the Fourier transform we haveHerep.v.1/s is thedistribution that takes a test functionφ to theCauchy principal value of. The limit appearing in the integral is also taken in the sense of (tempered) distributions.
TheLaplace transform of the Heaviside step function is ameromorphic function. Using the unilateral Laplace transform we have:When thebilateral transform is used, the integral can be split in two parts and the result will be the same.