4.6.31 · D2Ordinary Differential Equations

Visual walkthrough — Heaviside step function and Dirac delta function

2,015 words9 min readBack to topic

Prerequisites you may want open: Laplace Transform — Definition and Existence, First and Second Shifting Theorems.


Step 1 — Draw the switch (the step function)

WHAT. We draw the Heaviside step : a graph that is glued to the floor (height ) for all time before , then jumps up to height and stays there forever.

WHY. Everything on this page is about change. Before we can talk about "how fast it changes", we must first see the thing that changes. The step is the simplest possible change: nothing, then click, then a flat plateau.

PICTURE.

Figure — Heaviside step function and Dirac delta function

Reading the figure term by term:

  • The horizontal axis is time. Left is early, right is late.
  • The vertical axis is the height of the signal (its value).
  • The red mark at is the one instant where the whole story happens: the jump.
  • To the left of the curve sits at (switch off). To the right it sits at (switch on).

Step 2 — The jump is too sharp to differentiate, so we widen it

WHAT. We replace the instant jump by a ramp that climbs from to smoothly over a small width (the Greek letter "epsilon", just a name for a tiny positive number). Call this widened switch .

WHY. A derivative measures slope . On the true step the rise is but the run is , and is not a number. We cannot measure the slope of a vertical cliff. The cure: give the cliff a tiny but nonzero run . Now the slope is an honest fraction. Later we shrink and watch what the slope does.

PICTURE.

Figure — Heaviside step function and Dirac delta function
  • The red ramp rises over the interval .
  • Its total rise is (bottom of the step to top).
  • Its horizontal run is (the tiny width, marked with the double arrow).

Step 3 — Measure the slope of the ramp

WHAT. On the ramp, everywhere outside the graph is flat, so its slope is . On the ramp itself the slope is constant:

WHY. This is the derivative of the widened switch. We are literally computing . Where the graph is flat, the rate of change is nothing. Where it climbs, the rate of change is a single tall value .

PICTURE.

Figure — Heaviside step function and Dirac delta function
  • appears each term as: numerator = the total height climbed; denominator = the time taken to climb it.
  • The red block is the slope graph: a rectangle of height sitting over , zero elsewhere.

Step 4 — Notice the box always has area 1

WHAT. The slope-box is a rectangle. Its area is height width:

WHY. This is the pivot of the whole page. No matter how thin we make the ramp, the area under its slope-graph is locked at . Thin box tall box, but the product never changes. Area = the total amount the switch climbed = . That "" is the strength of the impulse we are about to build.

PICTURE.

Figure — Heaviside step function and Dirac delta function
  • Three boxes shown for shrinking : wide-and-short, medium, thin-and-tall (the thinnest is red).
  • Each is labelled with its own : same area, different shape.

Step 5 — Squeeze the box to zero width

WHAT. Let (epsilon shrinks toward zero from the positive side). The box becomes infinitely thin and infinitely tall, yet its area is still exactly . The limiting object is the Dirac delta:

WHY. This is the honest meaning of "the delta is the slope of the step." The true step (Step 1) is the limit of the ramps (Step 2); therefore its slope is the limit of the ramp-slopes (Step 3), and that limit is this infinite spike of area .

PICTURE.

Figure — Heaviside step function and Dirac delta function
  • The red spike (drawn as an arrow, because it is taller than any page) sits at .
  • The label "area " beside it reminds you: the height is meaningless (), only the area counts.

Step 6 — Feed a function through the box (the sifting property)

WHAT. Multiply any smooth function by the box and integrate:

WHY. Outside the box is , so it deletes all of except the sliver over that tiny interval. The right side is exactly the average value of on that sliver (total area of there, divided by the width ). As the sliver shrinks onto the single point , the average of over it becomes just .

PICTURE.

Figure — Heaviside step function and Dirac delta function
  • The black curve is .
  • The red strip is where the box lives; only the piece of inside it survives.
  • The arrow shows the strip collapsing onto , where takes the single value (red dot).

Term-by-term of the limit:

  • — the "" and the "width- integral" cancel in size, leaving an average.
  • As , the average of over a vanishing interval is the value at the point: .

Step 7 — The same trick gives the Laplace transform

WHAT. Choose the special function (the ingredient inside every Laplace transform) and sift:

WHY. The Laplace transform of anything is . When the "" is the delta, sifting just reads off the value of at . No new work — the same picture from Step 6 with a specific curve.

PICTURE.

Figure — Heaviside step function and Dirac delta function
  • The black curve is , sliding downward as grows.
  • The red spike at picks off its height there: (red dot on the curve).

Reading : the "" says how long we waited (the delay), the "" is the transform variable. Together is the delay stamp — the same stamp that appears in the First and Second Shifting Theorems.

Recall Check the special case

Set . Then — the delta is the input whose transform is exactly , which is why its response is the system's impulse response.


Step 8 — Edge case: what if or the kick lands off-screen?

WHAT. Two degenerate situations:

  1. — the spike sits at the very start of the Laplace window .
  2. — the spike would land before , outside the window.

WHY. The Laplace integral starts at . If the whole spike lives at or after it is captured; if it lives strictly before the integral over never sees it, and the transform is . This is the boundary case a solver must never trip over.

PICTURE.

Figure — Heaviside step function and Dirac delta function
  • Left: spike exactly at (red) — half-caught by convention, transform (we take ).
  • Right: spike at (red, greyed window) — the integration window starts at , so nothing is collected, transform .

The one-picture summary

Figure — Heaviside step function and Dirac delta function

One image, the whole chain:

  • Top row: the step softened into a ramp of width (red), then sharpened back to a cliff.
  • Bottom row: its slope — a box of height and area — squeezed into the red spike .
  • The vertical arrow between rows is the operation "" going down, and "" going up. Differentiate the switch, get the kick; integrate the kick, rebuild the switch.
Recall Feynman retelling (explain the whole walkthrough in plain words)

Picture a light switch. Off, then click, then on — that jump from dark to bright is the step function, and it happens at one exact moment, . Now, "how fast did it brighten?" is a fair question, but the honest answer for a real switch is: super fast, over a tiny sliver of time . During that sliver the brightness climbs from to , so the speed of brightening is divided by that tiny time — a big number, . Draw that speed and you get a thin tall box. Here's the magic: the box is tall and wide, so its area is always , no matter how quick the click. Make the switch flip faster () and the box gets taller and thinner but its area stays glued at . In the limit it's an infinitely tall, infinitely thin needle of area — the delta function, the "click" itself. Because it's a needle, asking for its height is silly (it's infinite). Instead you ask what it does: slide it under any curve and it grabs exactly one value, , ignoring everything else — that's sifting. Slide it under the Laplace ingredient and it grabs , the delay stamp. And the one sentence that ties it together: the kick is the speed of the switch flipping — the delta is the derivative of the step.


See also: Solving IVPs with Laplace Transforms, Piecewise and Periodic Forcing Functions, Distributions and Generalized Functions.