DIFFERENTIAL EQUATIONS • LAPLACE TRANSFORMS

Heaviside Step Functions

Model sudden switches and shifts in systems using a single elegant function.

Historical Context & Motivation

In the real world, things don't always change smoothly. A light switch flips on, a motor starts, or a voltage suddenly appears in a circuit. Engineers and scientists needed a precise mathematical way to describe these abrupt changes. Before the late 1800s, there was no clean function that could represent a signal that is "off" and then instantly turns "on." The mathematics of the time focused on smooth, continuous functions, leaving a gap when it came to modeling sudden jumps.

The breakthrough came from Oliver Heaviside, a self-taught English electrical engineer and mathematician. Heaviside developed a collection of powerful techniques — including what we now call the Heaviside step function — that made it possible to handle discontinuous signals with the same rigor used for smooth ones. His work laid foundations for modern electrical engineering and control theory.

1850
Oliver Heaviside Born
Born in London, Heaviside largely educated himself in mathematics and physics after leaving school at age 16. He would go on to reshape how engineers think about electrical circuits.
1880s
Step Function Developed
Heaviside introduced his step function as a practical tool for representing signals that switch on or off at a specific moment. This gave engineers a precise, algebraic way to describe on/off behavior in circuits and mechanical systems.
1893
Electromagnetic Theory Published
Heaviside published his major work, which reformulated Maxwell's equations into the four compact vector equations we use today and popularized the step function notation.
1930s–40s
Laplace Transform Connection
Mathematicians formalized the connection between Heaviside's step function and the Laplace transform, making it a standard tool in differential equations courses and engineering practice worldwide.

The central question Heaviside's work addressed is: How can we mathematically represent a force, voltage, or input that suddenly turns on or off at a specific moment in time? The answer — the step function — turns out to be one of the most useful tools in the entire Laplace transform toolkit. Building on the improper integrals and series you studied in Calculus II, this section develops the notation and reasoning you will use throughout the rest of this course.

Core Principles & Definitions

The Heaviside step function, often written as u(t) or u(t − c), is a function that equals 0 before a certain time and 1 from that time onward. Think of it as a mathematical on/off switch. Before understanding how it works with Laplace transforms, you need to grasp a few foundational ideas.

1

The Basic Step Function u(t)

The simplest version: u(t) = 0 when t < 0 and u(t) = 1 when t ≥ 0. It "turns on" at time t = 0. This is the foundation for all shifted versions.
2

Shifting in Time: u(t − c)

By replacing t with (t − c), we delay the switch to time t = c. The function u(t − 3) stays off until t = 3, then turns on. The constant c controls when the switch flips.
3

Piecewise Representation

Any piecewise-defined function — one that has different formulas on different intervals — can be rewritten using step functions. This is what makes them so powerful for modeling real-world signals.
4

Multiplication as a Window

Multiplying any function f(t) by u(t − c) "silences" f(t) before time c and "activates" it from time c onward. Combining step functions creates windows — intervals where a function is active.
KEY TAKEAWAY
Think of the Heaviside step function like a light switch with a timer. The function u(t − 5) is a switch set to flip on exactly at t = 5. Before that moment, everything it controls is off (multiplied by 0). After that moment, everything is on (multiplied by 1). You can combine multiple switches to create any pattern of on-off behavior — like programming a series of timed lights.

Visual Explanation

The best way to understand the Heaviside step function is to see it. The diagram below shows three versions of the step function: the basic u(t), a shifted version u(t − 2), and a "window" created by combining two step functions.

Three variations of the Heaviside step function. Left: the basic u(t) turning on at t = 0. Center: a shifted version u(t − 2) turning on at t = 2. Right: a window function created by subtracting two shifted steps, active only between t = 1 and t = 4.

Notice a few important features in the diagram. First, the step function has a discontinuity — a sudden jump — at the switching point. The open circle at the bottom of the jump indicates that the function does not equal 0 at that exact moment; instead it equals 1 (shown by the solid dot). Second, shifting the input from t to (t − c) moves the entire jump to the right by c units. Finally, by subtracting one shifted step from another, you can create a rectangular pulse — a function that is "on" only during a specific interval. This technique is essential for modeling forces or inputs that last for a limited duration.

Mathematical Framework

Now let's formalize the step function and connect it to the Laplace transform. The Laplace transform converts a function of time t into a new function F(s) of a transform variable s, using the improper integral defined below. This conversion turns complicated differential equations into more manageable algebra problems. The power of the Heaviside function in this context comes from two key formulas: its Laplace transform and the Second Shifting Theorem (also called the t-shifting theorem).

LAPLACE TRANSFORM — DEFINITION
ℒ{f(t)} = F(s) = ∫₀^∞ e^(−st) f(t) dt, s > 0
This improper integral converts a function of time t into a new function F(s). Because f is defined for t ≥ 0, the integral runs from 0 to ∞; formally it is the limit of ∫₀ᴺ e−stf(t) dt as N → ∞, and it converges for sufficiently large s whenever f(t) does not grow faster than an exponential. This is the same kind of improper integral you evaluated in Calculus II — here we apply that technique to build a new tool for solving differential equations.
HEAVISIDE STEP FUNCTION DEFINITION
u(t − c) = { 0, if t < c; 1, if t ≥ c }
Here c is a non-negative constant that determines when the function switches on. When c = 0, we simply write u(t).
LAPLACE TRANSFORM OF u(t − c)
ℒ{ u(t − c) } = e^(−cs) / s, s > 0
We can derive this directly from the integral definition above: since u(t − c) = 0 for t < c, the integral collapses to ∫_c^∞ e−st dt = [−e−st/s]_c^∞ = e−cs/s for s > 0. The variable s is the Laplace transform variable — think of it as a parameter used to encode information about the original time-domain function. The exponential factor e−cs encodes the time delay c. When c = 0, this simplifies to ℒ{u(t)} = 1/s.
SECOND SHIFTING THEOREM (t-SHIFTING)
ℒ{ f(t − c) · u(t − c) } = e^(−cs) · F(s)
Where F(s) = ℒ{f(t)} is the Laplace transform of the original (unshifted) function f(t). This theorem says: delaying a function by c units in time multiplies its Laplace transform by e−cs. In other words, a time shift in the t-domain becomes a multiplication by an exponential in the s-domain.

The Second Shifting Theorem is the workhorse formula. It tells us that whenever we see an exponential factor e^(−cs) in the s-domain, it corresponds to a time delay of c units in the t-domain, accompanied by a Heaviside step function that "turns on" the delayed function. This connection between time shifts and exponential multipliers is what makes Laplace transforms so effective for solving differential equations with sudden inputs.

INVERSE FORM (s-DOMAIN TO t-DOMAIN)
ℒ⁻¹{ e^(−cs) · F(s) } = f(t − c) · u(t − c)
This is the reverse direction — going from the s-domain back to the t-domain. When you see e−cs multiplying a transform F(s), the inverse transform is the original function f shifted right by c and multiplied by the step function u(t − c).

Writing Piecewise Functions with Step Functions

One of the most important skills with Heaviside step functions is converting a piecewise-defined function into a single expression using step functions. A piecewise function is simply one that has different rules on different intervals — you have likely seen these in algebra and calculus. This conversion is necessary before you can apply the Laplace transform, because the standard transform formulas and the Second Shifting Theorem require step-function notation.

The general strategy is straightforward. Suppose a function g(t) equals f₁(t) on the interval [0, a), then switches to f₂(t) on [a, b), and finally becomes f₃(t) for t ≥ b. You can write this as: g(t) = f₁(t) + [f₂(t) − f₁(t)] · u(t − a) + [f₃(t) − f₂(t)] · u(t − b). Each step function "adds" the change that occurs at its switching time.

A piecewise constant function with values 1, 3, and 5 on successive intervals is decomposed into step-function form: g(t) = 1 + 2·u(t − 2) + 2·u(t − 5). Each step function adds the change that occurs at its switching time.

The diagram above illustrates the key idea. The original piecewise function jumps from 1 to 3 at t = 2 (an increase of 2), and from 3 to 5 at t = 5 (another increase of 2). In step-function form, you start with the initial value 1, then add 2 × u(t − 2) to capture the first jump, and add 2 × u(t − 5) to capture the second jump. This method works for any number of intervals. For non-constant pieces — say, when a function switches from t² to sin(t) at time t = 3 — you write the change as [sin(t) − t²] · u(t − 3) added to the original.

IMPORTANT PATTERN
When applying the Second Shifting Theorem, the function multiplying u(t − c) must be written in terms of (t − c), not just t. For example, if you want t² to turn on at t = 3, you cannot simply write t² · u(t − 3). You need to rewrite t² as a polynomial in (t − 3). Using the substitution t = (t − 3) + 3, you can expand: t² = [(t − 3) + 3]² = (t − 3)² + 6(t − 3) + 9. Then each piece — (t − 3)² · u(t − 3), 6(t − 3) · u(t − 3), and 9 · u(t − 3) — matches the required form for applying the theorem. This algebraic rewriting step is a key skill in working with shifted functions.

Worked Example

Let's work through a complete example that ties together piecewise functions, step functions, and Laplace transforms.

Finding the Laplace Transform of a Piecewise Function
1
Step 1 — State the ProblemFind the Laplace transform of the piecewise function: f(t) = 0 for 0 ≤ t < 3, and f(t) = (t − 3)² for t ≥ 3. In other words, a parabola turns on at time t = 3.
2
Step 2 — Rewrite Using Step FunctionsThe function is zero before t = 3, so we can express this as f(t) = (t − 3)² · u(t − 3). The step function u(t − 3) keeps everything zero for t < 3 and activates (t − 3)² at t = 3.
f(t) = (t − 3)² · u(t − 3)
3
Step 3 — Identify the Components for the Shifting TheoremWe need to match the form f(t − c) · u(t − c), where c = 3. The inner function is f(t − 3) = (t − 3)², so the unshifted function is f(t) = t². Its Laplace transform is F(s) = ℒ{t²} = 2/s³.
F(s) = ℒ{t²} = 2/s³
4
Step 4 — Apply the Second Shifting TheoremThe Second Shifting Theorem states: ℒ{f(t − c) · u(t − c)} = e^(−cs) · F(s). Substituting c = 3 and F(s) = 2/s³, we get:
ℒ{(t − 3)² · u(t − 3)} = e^(−3s) · (2/s³) = 2e^(−3s) / s³
5
Step 5 — Verify and InterpretThe answer 2e^(−3s)/s³ makes sense: the 2/s³ part is the transform of t², and the e^(−3s) factor encodes the 3-unit time delay. If we needed the inverse Laplace transform, we would reverse this process: see e^(−3s), recognize a delay of 3, factor it out, find the inverse of 2/s³ (which is t²), then write (t − 3)² · u(t − 3).
Final Answer: ℒ{f(t)} = 2e^(−3s) / s³

Strengths & Limitations

The Heaviside step function is an incredibly useful tool, but like any mathematical technique, it has both strengths and limitations. Understanding these will help you know when to reach for step functions and when other approaches might be more appropriate.

Strengths and limitations of the Heaviside step function approach
AspectStrengthsLimitations
ModelingPerfectly represents sudden on/off events like switches, applied forces, and voltage changes.In reality, most physical switches are not truly instantaneous — they ramp up over a small time interval.
Piecewise ConversionAny piecewise function can be rewritten as a single formula, making it compatible with Laplace transform techniques.Complex piecewise functions with many intervals lead to long expressions with many step function terms.
Calculus OperationsIntegrating step functions is straightforward. The Laplace transform handles them elegantly via the shifting theorem.The step function is not differentiable at the jump point — its derivative is a special mathematical object called the Dirac delta function, which you'll typically encounter in a later course on transform methods or signal processing.
ReadabilityCompact notation condenses complex switching behavior into clean algebraic expressions.Students often find the notation u(t − c) confusing at first, especially when rewriting functions in (t − c) form.
KEY TAKEAWAY
Heaviside step functions are like the Boolean logic in a computer program: they give you precise control over when things happen. Just as an if-then statement in code can activate a block of instructions at a specific condition, u(t − c) activates a mathematical expression at a specific time. The trade-off is that real-world transitions are rarely as sharp as the mathematical model suggests, but for most engineering and physics problems, this idealization works extremely well.

Connection to Advanced Theory

The Heaviside step function is just the beginning of a family of related tools used in more advanced mathematics and engineering. Understanding where step functions fit in this bigger picture can motivate your continued study of differential equations and transform methods as you progress through this course and into more advanced applications.

How the Heaviside step function connects to advanced topics
ConceptRelation to Step FunctionWhere You'll See It
Dirac Delta Function δ(t − c)Represents an instantaneous impulse — like a hammer strike or a lightning bolt — concentrated at a single moment. It is closely related to the step function (it behaves like the step function's derivative) and is typically introduced later in this course or in a follow-up course on transform methods.Impulse response of systems, signal processing, quantum mechanics.
Ramp Function r(t − c)The integral of the step function. It increases linearly after being activated: r(t − c) = (t − c) · u(t − c).Gradually applied loads, velocity from constant acceleration.
Convolution IntegralsA technique, often introduced later in this course, where step functions appear naturally to control the limits of integration. Convolution is used to find how a system responds to a given input.System analysis, probability theory, image processing.
Transfer FunctionsThe step response of a system (output when input is u(t)) reveals fundamental behavior — stability, oscillation, and settling time.Control engineering, circuit design, robotics.

As you continue in mathematics and engineering, you'll discover that the step function, the delta function, and the ramp function form a hierarchy connected by differentiation and integration. The step function is the integral of the delta, and the ramp is the integral of the step. This beautiful chain — δ(t) → u(t) → r(t) — appears throughout signal processing, control theory, and even probability. Mastering the step function now gives you a strong foundation for all of these advanced topics.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain in your own words what the function g(t) = 5 · u(t − 4) represents. What is its value at t = 2, t = 4, and t = 10?
PROBLEM 2BASIC CALCULATION
Find the Laplace transform of f(t) = u(t − 7).
PROBLEM 3INTERMEDIATE
Rewrite the piecewise function as a single expression using step functions, then find its Laplace transform: h(t) = { 0, for 0 ≤ t < 2; t − 2, for t ≥ 2 }.
PROBLEM 4APPLIED
A voltage source in a circuit provides 0 volts for the first 3 seconds, then suddenly provides a constant 10 volts from t = 3 onward, and then shuts off at t = 8 (returns to 0 volts). Write the voltage v(t) using step functions and find ℒ{v(t)}.
PROBLEM 5CRITICAL THINKING
Find the inverse Laplace transform of G(s) = (3e^(−4s)) / (s² + 9). Express your answer using Heaviside step functions and explain what each part of your answer means physically.

Summary

The Heaviside step function u(t − c) is a mathematical switch that equals 0 before time c and 1 from time c onward. Developed by Oliver Heaviside in the 1880s, it allows us to convert any piecewise-defined function into a single algebraic expression. This conversion is essential for applying Laplace transforms — defined by the improper integral ℒ{f(t)} = ∫₀^∞ e−stf(t) dt — to differential equations with sudden inputs. The key formula is ℒ{u(t − c)} = e−cs/s, which encodes a time delay as an exponential multiplier in the s-domain.

The Second Shifting Theorem — ℒ{f(t − c) · u(t − c)} = e−cs · F(s) — is the central tool for handling shifted functions. When converting piecewise functions, remember to express each piece in terms of (t − c) before applying the theorem. Step functions connect to advanced topics like the Dirac delta function (its derivative, introduced in later coursework), the ramp function (its integral), and convolution integrals, forming a foundational toolkit for engineering and applied mathematics.

Varsity Tutors • Differential Equations • Heaviside Step Functions