01 / 21

Heaviside Step
Functions

Master the unit step function \( u_c(t) \) and learn how it models piecewise forcing in differential equations.

Differential Equations

What Is the Heaviside Function?

The Heaviside step function (also called the unit step function) is a simple on/off switch that turns on at a specified time \( c \):

Before time \( c \), the function outputs zero. At and after \( c \), it outputs one. This makes it perfect for representing forces, voltages, or inputs that suddenly switch on.

Graph of \( u_c(t) \)

\(t\) \(y\) 0 1 \(c\) Off: \(y=0\) On: \(y=1\)

Why Do We Need Step Functions?

Many real-world forcing functions are not smooth: a switch flips, a load is applied, or a voltage changes abruptly. Step functions let us write these piecewise-defined inputs as a single algebraic expression.

Circuits
A voltage source turns on at \( t = 2 \) seconds
Mechanics
An external force is applied to a spring-mass system at \( t = 5 \)
Controls
A thermostat toggles heating on and off at set points

Piecewise to Step Conversion

Any piecewise function can be rewritten using step functions. The key identity is:

We start with the first piece, then add the correction multiplied by the step function. This "turns on" the difference at time \( c \).

The Laplace Transform Rule

The power of the Heaviside function shines when combined with the Laplace transform. There are two essential formulas:

Visualizing the Second Shift

\(t\) \(y\) \( f(t) \) \( u_c(t)\, f(t - c) \) \(c\) shift by \(c\)

Critical Distinction

\( u_c(t)\, f(t) \) \( u_c(t)\, f(t - c) \)
Meaning "Turn on \( f(t) \) at \( t = c \)," evaluating \( f(t) \) at the current time "Shift \( f(t) \) right by \( c \), then turn on"
Value at \( t = c \) \( f(c) \) \( f(0) \)
Laplace No simple formula \( e^{-cs} F(s) \)
Use case Gating (windowing) Delayed forcing (standard)

How to Apply the Method

1
Identify breakpoints. Find all times \( c_1, c_2, \ldots \) where the forcing function changes.
2
Express as steps. Rewrite the piecewise function using \( u_{c_i}(t) \) and shifted pieces.
3
Shift each piece. For each term \( u_c(t)\, g(t) \), express \( g(t) \) as a function of \( (t - c) \).
4
Take Laplace transforms. Apply \( \mathcal{L}\{u_c(t)\, f(t-c)\} = e^{-cs} F(s) \) to each term.
5
Solve and invert. Solve the algebraic equation in \( s \), then invert each term using the shifting theorem in reverse.

Example 1: Basic Conversion

Write the following piecewise function using step functions:

1
Breakpoint: \( c = 3 \)
2
Before \( c \): \( g_1(t) = 0 \). After \( c \): \( g_2(t) = 5 \).
3
Result: \( f(t) = 0 + (5 - 0)\, u_3(t) = \) \( 5\, u_3(t) \)

Example 2: Two Breakpoints

Convert to step-function notation:

1
Breakpoints: \( c_1 = 2 \) and \( c_2 = 5 \).
2
First switch: Add \( (t - 0)\, u_2(t) = t\, u_2(t) \).
3
Second switch: At \( t = 5 \), replace \(t\) with 3. Correction: \( (3 - t)\, u_5(t) \).
4
Result: \( f(t) = t\, u_2(t) + (3 - t)\, u_5(t) \)

Example 3: Laplace Transform

Find \( \mathcal{L}\{u_2(t)\,(t-2)^2\} \).

1
Identify: \( c = 2 \) and \( f(t) = t^2 \), so \( f(t - 2) = (t-2)^2 \).
2
Standard transform: \( \mathcal{L}\{t^2\} = F(s) = \dfrac{2}{s^3} \).
3
Apply theorem: \( \mathcal{L}\{u_2(t)\,(t-2)^2\} = e^{-2s}\, F(s) \).

The Inverse Direction

The Second Shifting Theorem also works in reverse. If you see \( e^{-cs} \) multiplying an \( F(s) \) in the transform domain:

Recipe: Factor out the exponential \( e^{-cs} \), identify the remaining \( F(s) \), invert it to get \( f(t) \), then write the answer as \( u_c(t)\, f(t - c) \).

Building a Pulse

A rectangular pulse that is "on" between \( a \) and \( b \) is simply the difference of two step functions:

\(t\) 1 0 \(a\) \(b\)

Common Mistakes

✕ Forgetting the Shift
Writing \( \mathcal{L}\{u_c(t)\, f(t)\} = e^{-cs} F(s) \). The theorem requires \( f(t - c) \), not \( f(t) \).
✕ Wrong Rewrite
Failing to express the original piece in terms of \( (t - c) \) before applying the transform. Always substitute \( t = (t - c) + c \).
✕ Sign Errors in Pulses
Mixing up \( u_a(t) - u_b(t) \) vs \( u_b(t) - u_a(t) \). Remember: the first step turns on, the second turns off.

Summary of Key Formulas

Expression Laplace Transform
\( u_c(t) \) \(\dfrac{e^{-cs}}{s}\)
\( u_c(t)\, f(t - c) \) \( e^{-cs}\, F(s) \)
\( u_a(t) - u_b(t) \) \(\dfrac{e^{-as} - e^{-bs}}{s}\)
\( u_c(t)\,(t-c)^n \) \(\dfrac{n!\, e^{-cs}}{s^{n+1}}\)
\( u_c(t)\, e^{a(t-c)} \) \(\dfrac{e^{-cs}}{s - a}\)

Question 1 of 5

What is the value of \( u_4(t) \) when \( t = 3 \)?

Question 2 of 5

Which expression represents \( f(t) = \begin{cases} 0, & t < 2 \\ 7, & t \geq 2 \end{cases} \) using a step function?

Question 3 of 5

What is \( \mathcal{L}\{u_3(t)\,(t - 3)^2\} \)?

Question 4 of 5

What is \( \mathcal{L}^{-1}\!\left\{\dfrac{e^{-5s}}{s - 4}\right\} \)?

Question 5 of 5

A rectangular pulse equals 1 for \( 3 \leq t < 8 \) and 0 elsewhere. Which expression is correct?