ArticleslgStudy

mathematics

Heaviside step function

Heaviside step function is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Heaviside step function rather than just read about it. In short: The Heaviside step function, or the unit step function, usually denoted by H or θ (but sometimes u, 1 or 𝟙), is a step function named after Oliver Heaviside, the value of which is zero for negative arguments and one for positive arguments. Different conventions concerning the value H(0) are in use.

Heaviside step function — main illustration
Heaviside step function — illustration

Key takeaways

  • Heaviside step function belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Heaviside step function to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Heaviside step function from memory before moving on to harder problems.

Reference excerpt

The Heaviside step function, or the unit step function, usually denoted by H or θ (but sometimes u, 1 or 𝟙), is a step function named after Oliver Heaviside, the value of which is zero for negative arguments and one for positive arguments. Different conventions concerning the value H(0) are in use. It is an example of the general class of step functions, all of which can be represented as linear combinations of translations of this one. The function was originally developed in operational calculus for the solution of differential 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 as 1.

Formulation Taking the convention that H(0) = 1, the Heaviside function may be defined as:

A piecewise function: H(x):={1,x≥00,x<0 Using the Iverson bracket notation: H(x):=[x≥0] An indicator function: H(x):=𝟏x≥0=𝟏ℝ+(x) For the alternative convention that H(0) = ⁠1/2⁠, it may be expressed as:

A piecewise function: H(x):={1,x>012,x=00,x<0 A linear transformation of the sign function: H(x):=12(sgnx+1) The arithmetic mean of two Iverson brackets: H(x):=[x≥0]+[x>0]2 A one-sided limit of the two-argument arctangent: H(x)=:limϵ→0+atan2(ϵ,−x)π A hyperfunction: H(x)=:(1−12πilog⁡z, −12πilog⁡z) Or equivalently: H(x)=:(−log⁡−z2πi,−log⁡−z2πi), where log z is the principal value of the complex logarithm of z. Other definitions that are undefined at H(0) include:

A piecewise function: H(x):={1,x>00,x<0 The derivative of the ramp function: H(x):=ddxmax⁡{x,0}for x≠0 Expressed in terms of the absolute value function, such as:H(x)=12+|x|2x

Relationship with Dirac delta function The Dirac delta function is the weak derivative of the Heaviside function:δ(x)=ddx H(x),Hence the Heaviside function can be considered to be the integral of the Dirac delta function. This is sometimes written as:H(x):=∫−∞xδ(s)ds,although this expansion may not hold (or even make sense) for x = 0, depending on which formalism one uses to give meaning to integrals involving δ. In this context, the Heaviside function is the cumulative distribution function of a random variable that is almost surely 0. (See Constant random variable.)

Analytic approximations Approximations to the Heaviside step function are of use in biochemistry and neuroscience, where logistic approximations of step functions (such as the Hill and the Michaelis–Menten equations) may be used to approximate binary cellular switches in response to chemical signals. For a smooth approximation to the step function, one can use the logistic function:H(x)≈12+12tanh⁡kx=11+e−2kx,where a larger k corresponds to a sharper transition at x = 0. If we take H(0) = ⁠1/2⁠, equality holds in the limit: H(x)=limk→∞12(1+tanh⁡kx)=limk→∞11+e−2kx.

There are many other smooth, analytic approximations to the step function. Among the possibilities are:H(x)=limk→∞(12+1πarctan⁡kx)H(x)=limk→∞(12+12erf⁡kx)These limits hold pointwise and in the sense of distributions. In general, however, pointwise convergence need not imply distributional convergence, and vice versa distributional convergence need not imply pointwise convergence. (However, if all members of a pointwise convergent sequence of functions are uniformly bounded by some "nice" function, then convergence holds in the sense of distributions too.) One could also use a scaled and shifted Sigmoid function. In general, any cumulative distribution function of a continuous probability distribution that is peaked around zero and has a parameter that controls for variance can serve as an approximation, in the limit as the variance approaches zero. For example, all three of the above approximations are cumulative distribution functions of common probability distributions: the logistic, Cauchy and normal distributions, respectively.

Non-analytic approximations Approximations to the Heaviside step function could be made through Smooth transition function like 1≤m→∞:f(x)={12(1+tanh⁡(m2x1−x2)),|x|<11,x≥10,x≤−1

Integral representations Often an integral representation of the Heaviside step function is useful:H(x)=limε→0+−12πi∫−∞∞1τ+iεe−ixτdτ=limε→0+ 12πi∫−∞∞1τ−iεeixτdτ,where the second representation is easy to deduce from the first, given that the step function is real and thus is its own complex conjugate.

Zero argument Since H is usually used in integration, and the value of a function at a single point does not affect its integral, it rarely matters what particular value is chosen of H(0). Indeed when H is considered as a distribution or an element of L∞ (see Lp space) it does not even make sense to talk of a value at zero, since such objects are only defined almost everywhere. If using some analytic approximation (as in the examples 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 the graph then has rotational symmetry; put another way, H − ⁠1/2⁠ is then an odd function. In this case the following relation with the sign function holds for all x: H(x)=12(1+sgn⁡x).Also, ∀x, H(x)+H(−x)=1. H(0) = 1 is used when H needs to be right-continuous. For instance cumulative distribution functions are usually taken to be right continuous, as are functions integrated against in Lebesgue–Stieltjes integration. In this case H is the indicator function of a closed semi-infinite interval: H(x)=𝟏[0,∞)(x). The corresponding probability distribution is the degenerate distribution. H(0) = 0 is used when H needs to be left-continuous. In this case H is an indicator function of an open semi-infinite interval: H(x)=𝟏(0,∞)(x). In functional-analysis contexts from optimization and game theory, it is often useful to define the Heaviside function as a set-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].

… excerpt ends here. Continue reading the full article.

Illustrations

Heaviside step function illustration
Heaviside step function: 12+12tanh⁡(kx)=11+e−2kxapproaches the step function as k → ∞.
12+12tanh⁡(kx)=11+e−2kxapproaches the step function as k → ∞.

Worked examples

Example 1 — a first encounter with Heaviside step function

Start with the simplest possible case. Write down what Heaviside step function claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Heaviside step function before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Heaviside step function ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Heaviside step function

In research
Heaviside step function appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Heaviside step function in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Heaviside step function is common in secondary-school and first-year university syllabi. It links to neighbouring topics Generalized functions, Schwartz distributions, Special functions, so understanding it makes those chapters shorter.
In everyday life
Look for Heaviside step function outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Heaviside step function” →

How to study Heaviside step function in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Heaviside step function means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Heaviside step function out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Heaviside step function in simple terms?

The Heaviside step function, or the unit step function, usually denoted by H or θ (but sometimes u, 1 or 𝟙), is a step function named after Oliver Heaviside, the value of which is zero for negative arguments and one for positive arguments. Different conventions concerning the value H(0) are in use.

Why does Heaviside step function matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Heaviside step function?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Heaviside step function.

Tags

  • Generalized functions
  • Schwartz distributions
  • Special functions

Keep exploring