Real inputs switch on and off. A force acts for a minute and is removed; a voltage is applied and then cut. The unit step function is the algebraic switch that describes such behavior, turning a term off up to and on afterward. Combined with the time shifting theorem, it makes discontinuous forcing terms as easy to transform as smooth ones.
Quick Reference
| Item | Statement |
|---|---|
| Unit step | u(t) = \begin{cases} 0 & t < 0 \\ 1 & t \geq 0 \end{cases} |
| Shifted step | u(t-c) = \begin{cases} 0 & t < c \\ 1 & t \geq c \end{cases}, also written |
| Transform | |
| Special case | |
| Two-piece function | |
| "Window" on | |
| Time shifting theorem | , |
| Inverse form | |
| Contrast | -shifting: |
Why a Step Function
In many applications, inputs or driving forces act for some time only. An external force is applied to a body for a minute and is then completely removed; a constant voltage is applied to a circuit and then reduced to zero for all subsequent times. Such situations arise constantly.
The unit step function can suppress a given term up to a certain value of and then insert it for all larger . It provides a powerful tool for solving differential equations with complicated right-hand sides.
The unit step function, also called the Heaviside step function, is defined by
u(t) = \left\{ \begin{aligned} &0, && \text{if } t < 0 \\ &1, && \text{if } t \geq 0 \end{aligned} \right.In words, is zero when its input is negative and one when its input is positive or zero.

It follows from the definition that
u(t-c) = \left\{ \begin{aligned} &0, && \text{if } t < c \\ &1, && \text{if } t \geq c \end{aligned} \right.Note that is a unit step shifted units to the right. The argument becomes non-negative exactly when , which is where the step turns on. It is sometimes denoted .

Sketch the graph of .
Solution
f(t) = 1 - u(t-c) = \left\{ \begin{aligned} &1, && \text{if } t < c \\ &0, && \text{if } t \geq c \end{aligned} \right.Subtracting the step from reverses it: instead of switching on at , the function switches off at . This is how a term is removed after a given time.

Expressing Piecewise-Defined Functions
The unit step function writes piecewise-defined functions in a compact form, which makes their Laplace transforms much quicker to evaluate.
If
f(t) = \left\{ \begin{aligned} &g(t), && \text{if } 0 \leq t < c \\ &h(t), && \text{if } c \leq t < \infty \end{aligned} \right.then
The bracket is a window: it equals on and elsewhere, so it selects the first piece. The final term selects the second piece. More generally, is the window that is exactly on .
Write f(t) = \begin{cases} t^{2} & 0 \leq t < 3 \\ 5 & t \geq 3 \end{cases} using unit step functions.
Solution
Applying the formula with , , and ,
for , where throughout the region of interest.
The second form is often the more useful one. It reads: start with , then at add the correction that converts it into .
Laplace Transform of the Unit Step Function
Calculation
\begin{aligned} \mathscr{L}\left\{u(t-c)\right\} &= \int_0^{\infty}e^{-st}u(t-c)\,dt \\ &= \int_0^{c}e^{-st}(0)\,dt + \int_c^{\infty}e^{-st}(1)\,dt \\ &= \lim_{R\to\infty}\int_c^{R}e^{-st}\,dt \\ &= \lim_{R\to\infty}\left[-\frac{e^{-st}}{s}\right]_{t=c}^{t=R} \\ &= \frac{e^{-cs}}{s} \end{aligned}The step function did nothing except move the lower limit of integration from to , which is exactly what produces the factor .
Since throughout , which is the entire interval of integration,
the case of the general formula.
The Time Shifting Theorem
The meaning of
Let be the input to a system and let . Suppose the input is delayed by seconds, after which it begins in exactly the same fashion as before, as when one waits a few seconds before turning on a generator. Then the input is described by
f_c(t) = \left\{ \begin{aligned} &0, && \text{if } 0 \leq t < c \\ &f(t-c), && \text{if } c \leq t < \infty \end{aligned} \right.The graph of is obtained by translating the graph of to the right by units and making it identically zero between and . We call the shifted function.
The unit step function describes this translation compactly:
provided is defined for . The values of on that range have no bearing on the result, since they are multiplied by zero; they merely need to exist so that is defined for all .

The next figure compares three closely related functions. Imagine a signal generator feeding a system.
- If the generator is on and connected from the beginning, the input is .
- If the generator has been running from the beginning but is not connected until , the input is : the signal is already partway through its cycle when it arrives.
- If the generator is off but connected, and is switched on at , the input is : the signal starts from its beginning at time .

Previously we saw that multiplying by translates along the -axis, giving , the Exponential Scaling or -shifting theorem. Dually, if is shifted along the -axis by , the transform is multiplied by .
Time Shifting (-Shifting) Theorem, also called the second shifting theorem. If and , then
Proof
\begin{aligned} \mathscr{L}\left\{f(t-c)u(t-c)\right\} &= \int_0^{\infty}e^{-st}f(t-c)u(t-c)\,dt \\ &= \int_0^{c}e^{-st}f(t-c)\underbrace{u(t-c)}_{0}\,dt + \int_c^{\infty}e^{-st}f(t-c)\underbrace{u(t-c)}_{1}\,dt \\ &= \int_c^{\infty}e^{-st}f(t-c)\,dt \end{aligned}Substitute , so and . When we have , so the lower limit becomes zero:
\begin{aligned} \mathscr{L}\left\{f(t-c)u(t-c)\right\} &= \int_0^{\infty}e^{-s(\tau+c)}f(\tau)\,d\tau \\ &= \int_0^{\infty}e^{-cs}e^{-s\tau}f(\tau)\,d\tau \\ &= e^{-cs}\underbrace{\int_0^{\infty}e^{-s\tau}f(\tau)\,d\tau}_{F(s)} \\ &= e^{-cs}F(s) \end{aligned}The constant came out of the integral because it does not involve .
The two shifting theorems side by side.
-shifting: multiplying by in time shifts the transform, .
-shifting: delaying in time multiplies the transform, .
Both are used constantly, and confusing them is easy. The presence of a factor multiplying the transform always signals a time delay; an appearing only as always signals an exponential factor in .
Worked Examples
Find where f(t) = \begin{cases} 0 & 0 \leq t < 2 \\ (t-2)^{3} & t \geq 2 \end{cases}.
Solution
This is already in the exact form with and the underlying function :
Since , the time shifting theorem gives
Find .
Solution
This is not in the form , because the argument of the power is rather than . Rewrite in powers of :
Therefore
and each term is now correctly shifted. Applying the theorem term by term with , , ,
Rewriting in powers of is the standard preparation step whenever the function multiplying the step is not already shifted.
Find .
Solution
Ignore the exponential first. Since ,
The factor then delays this by :
Note that every in becomes , including the one inside the sine.
Solve y' + y = f(t) with , where f(t) = \begin{cases} 1 & 0 \leq t < 2 \\ 0 & t \geq 2 \end{cases}.
Solution
Write the forcing function with steps: , so
Transforming the equation, , so
Since , the inverse of the first piece is . Writing ,
Explicitly,
y(t) = \begin{cases} 1 - e^{-t} & 0 \leq t < 2 \\ e^{-(t-2)} - e^{-t} & t \geq 2 \end{cases}The solution rises toward while the input is on, then decays once it is switched off. Note that is continuous at even though the forcing is not: both branches give there. Solving this by the methods of Chapter 4 would have required treating the two intervals separately and matching by hand.
Exercises
Express f(t) = \begin{cases} 0 & 0 \leq t < 1 \\ t & 1 \leq t < 4 \\ 0 & t \geq 4 \end{cases} using step functions and find its transform.
Solution
Using a window, .
Rewrite each piece in shifted form: and . Therefore
Find .
Solution
Since , delaying by gives
Find .
Solution
The cosine is not shifted, so rewrite it. Using ,
which is now in standard form. Therefore
Frequently Asked Questions
What is the unit step function used for?
To switch terms on and off at prescribed times. Multiplying a term by suppresses it before and admits it afterward, which is how inputs that start, stop, or change form are written as a single formula rather than a case list.
How do I write a piecewise function using steps?
Multiply each piece by the window that selects its interval. The window for is , and the window for is . Adding the products gives a single expression valid for all .
What is the difference between and ?
The first truncates , deleting it before but leaving the rest where it was; the second translates so that it begins at . Only the second has the clean transform . The comparison figure above shows all three cases side by side.
What do I do when the function is not already shifted?
Rewrite it in powers of , or use a trigonometric addition formula. For , expand . For , use . Then apply the theorem to each term.
How do I recognize a time shift in an inverse transform?
By the factor multiplying the transform. Set it aside, invert what remains to get , then replace every by and multiply by . Forgetting the step function is the most common mistake, and it produces an answer that is wrong for .
How do the two shifting theorems differ?
-shifting concerns , giving : an exponential in time translates the transform. -shifting concerns , giving : a delay in time multiplies the transform by an exponential. The roles of "multiply" and "translate" are exactly swapped between the two.
Does the value of at the jump matter?
No. Defining as , , or changes nothing, because the Laplace transform is an integral and cannot detect the value at a single point, as Lerch's theorem in Section 7.3 makes precise.