Heaviside Step Function and Shifting Theorems

April 13, 2026

Problem

Express f(t) = 0 for t < 2 and 5 for t >= 2 using the Heaviside step u(t - 2). Find its Laplace transform, and show the second shifting theorem in action.

Explanation

What the Heaviside step function is

The Heaviside step function (also just step function, or unit step) is u(t)={0t<01t0u(t) = \begin{cases} 0 & t < 0 \\ 1 & t \ge 0 \end{cases}

A shifted step u(ta)u(t - a) "turns on" at t=at = a: u(ta)={0t<a1tau(t - a) = \begin{cases} 0 & t < a \\ 1 & t \ge a \end{cases}

It is the fundamental tool for writing down piecewise signals — anything with switching behaviour — in closed form so the Laplace transform can chew through it.

Building piecewise functions with step functions

A few patterns:

  • Turn on at aa forever: u(ta)u(t - a).
  • A rectangle between aa and bb: u(ta)u(tb)u(t - a) - u(t - b).
  • A value cc starting at aa: cu(ta)c \, u(t - a).
  • Piecewise: f(t)=f1f(t) = f_1 on [a1,a2)[a_1, a_2), f2f_2 on [a2,a3)[a_2, a_3), ...: f1[u(ta1)u(ta2)]+f2[u(ta2)u(ta3)]+f_1[u(t - a_1) - u(t - a_2)] + f_2 [u(t - a_2) - u(t - a_3)] + \ldots.

The given function

f(t)={0t<25t2f(t) = \begin{cases} 0 & t < 2 \\ 5 & t \ge 2 \end{cases}

This is just "turn on the value 55 at t=2t = 2": f(t)=5u(t2)\boxed{\, f(t) = 5 \, u(t - 2) \,}

Laplace transform of the Heaviside step

From the definition: L{u(ta)}=0estu(ta)dt=aestdt=eass(a0)\mathcal{L}\{u(t - a)\} = \int_{0}^{\infty} e^{-s t} u(t - a) \, dt = \int_{a}^{\infty} e^{-s t} \, dt = \frac{e^{-a s}}{s} \qquad (a \ge 0)

So L{u(t2)}=e2ss\mathcal{L}\{u(t - 2)\} = \frac{e^{-2 s}}{s} L{5u(t2)}=5e2ss.\mathcal{L}\{5 \, u(t - 2)\} = \frac{5 \, e^{-2 s}}{s}.

The two shifting theorems (both memorable)

First shifting theorem — s-shift. L{eatf(t)}(s)=F(sa).\mathcal{L}\{e^{a t} \, f(t)\}(s) = F(s - a). Time-domain multiplication by eate^{a t}ss-domain shift by aa.

Second shifting theorem — t-shift. L{u(ta)f(ta)}(s)=easF(s),a0.\mathcal{L}\{u(t - a) \, f(t - a)\}(s) = e^{-a s} \, F(s), \qquad a \ge 0. Time-domain shift-plus-step ↔ ss-domain multiplication by ease^{-a s}.

Common mnemonic: time-shift gives ease^{-a s} (exponential decay in ss), frequency-shift gives ssas \to s - a (argument shift).

The second shifting theorem is why Heaviside step functions are so useful — they give us a way to write shifted signals, and the Laplace transform of any such signal is just ease^{-a s} times the Laplace of the un-shifted piece.

Using second shifting — a worked example

Suppose we want L{(t3)2u(t3)}\mathcal{L}\{(t - 3)^{2} \, u(t - 3)\}.

The function f(t)=t2f(t) = t^{2} has F(s)=2s3F(s) = \dfrac{2}{s^{3}}. The given function is f(t3)u(t3)f(t - 3) \, u(t - 3) with a=3a = 3: L{(t3)2u(t3)}=e3s2s3.\mathcal{L}\{(t - 3)^{2} \, u(t - 3)\} = e^{-3 s} \cdot \frac{2}{s^{3}}.

Warning. The theorem requires the time argument inside ff to match the shift: f(ta)f(t - a), not f(t)f(t). If you have t2u(t3)t^{2} \, u(t - 3) (where t2t^{2} is the original, not the shifted, polynomial), you must first rewrite it as ((t3)+3)2u(t3)((t - 3) + 3)^{2} \, u(t - 3) and expand.

Laplace transforming a piecewise function — recipe

  1. Rewrite the piecewise function as a sum of step-multiplied pieces.
  2. For each piece of the form g(t)u(ta)g(t) \, u(t - a) where gg's argument isn't shifted, rewrite g(t)=g((ta)+a)g(t) = g((t - a) + a) and simplify algebraically until you have f(ta)u(ta)f(t - a) \, u(t - a) for some ff.
  3. Apply the second shifting theorem: L{f(ta)u(ta)}=easF(s)\mathcal{L}\{f(t - a) \, u(t - a)\} = e^{-a s} F(s).

Worked ODE example — switched forcing

y+y=3u(tπ),y(0)=0,  y(0)=0.y'' + y = 3 \, u(t - \pi), \qquad y(0) = 0, \; y'(0) = 0.

Laplace both sides: (s2+1)Y=3eπss(s^{2} + 1) Y = \frac{3 \, e^{-\pi s}}{s} Y=3eπss(s2+1).Y = \frac{3 \, e^{-\pi s}}{s (s^{2} + 1)}.

Partial-fraction the "skeleton" without the eπse^{-\pi s}: 3s(s2+1)=3s3ss2+1\frac{3}{s (s^{2} + 1)} = \frac{3}{s} - \frac{3 s}{s^{2} + 1} L1 ⁣{3s3ss2+1}=33cost.\mathcal{L}^{-1}\!\left\{\frac{3}{s} - \frac{3 s}{s^{2} + 1}\right\} = 3 - 3 \cos t.

Apply the second shift (multiply by eπse^{-\pi s} in the ss-domain ↔ shift by π\pi and step in the time domain): y(t)=u(tπ)[33cos(tπ)]=u(tπ)[3+3cost]y(t) = u(t - \pi) \bigl[3 - 3 \cos(t - \pi)\bigr] = u(t - \pi) \bigl[3 + 3 \cos t\bigr]

(using cos(tπ)=cost\cos(t - \pi) = -\cos t). So the oscillator stays at rest until t=πt = \pi, then gets turned on by the step and rings with amplitude 33 around a new equilibrium of 33.

Delta is the derivative of step

In the distributional sense: ddtu(ta)=δ(ta).\frac{d}{dt} u(t - a) = \delta(t - a).

So L{δ(ta)}=sL{u(ta)}u(0+a)=seass0=eas\mathcal{L}\{\delta(t - a)\} = s \cdot \mathcal{L}\{u(t - a)\} - u(0^{+} - a) = s \cdot \dfrac{e^{-a s}}{s} - 0 = e^{-a s} for a>0a > 0 — matching what we used in #191.

Common mistakes

  • Confusing the two shifting theorems. One is F(sa)F(s - a), the other is easF(s)e^{-a s} F(s). They move the function in opposite domains.
  • Forgetting to rewrite g(t)g(t) as g((ta)+a)g((t - a) + a). Second shifting requires f(ta)f(t - a), not f(t)f(t). If your function isn't already shifted, do the algebra first.
  • Dropping the u(ta)u(t - a) in the time domain after inversion. Without it, the solution is wrong for t<at < a.
  • Trying to apply second shifting for negative aa. The theorem requires a0a \ge 0; negative shifts correspond to the function being "on" before t=0t = 0, which breaks the Laplace setup.

Try it in the visualization

Slide the step location aa and see the signal's "on" time move along the time axis. Stack several step-multiplied pieces to build a rectangle pulse or a staircase, and watch the Laplace transform update — each u(tai)u(t - a_i) contributes an eaise^{-a_i s} factor.

Interactive Visualization

Parameters

2.00
5.00
1.50
8.00
7.00
step
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Heaviside Step Function and Shifting Theorems | MathSpin