Differential Equations · Undergraduate

Step Functions, Impulses and the Laplace Transform

Quick answer

Forcing that switches on at time c is written with the unit step u_c(t), which is 0 before c and 1 after. A sharp blow at time c is modeled by the delta function δ(t − c), an infinitely brief push with total effect 1. The Laplace transform handles both: L{u_c(t) f(t − c)} = e^(−cs)F(s) and L{δ(t − c)} = e^(−cs). So a time delay becomes a factor e^(−cs), and an IVP with switches or hammer blows is solved like any other, with each delay turning back into a step in the answer.

What you'll learn

  • Write piecewise forcing with unit step functions
  • Use the shift rule L{u_c(t) f(t − c)} = e^(−cs)F(s)
  • Model an impulse with the delta function
  • Solve IVPs with switched or impulsive forcing

Switches and hammer blows

Real forcing often starts or stops abruptly: a voltage switched on, a pump turned off, a hammer striking a spring. Two tools describe this.

  • The unit step uc(t)u_c(t) is 00 for t<ct < c and 11 for t≥ct \ge c. A pulse from aa to bb is ua(t)−ub(t)u_a(t) - u_b(t).
  • The delta function δ(t−c)\delta(t - c) is an instantaneous push at time cc with total size 11: ∫δ(t−c)g(t) dt=g(c)\int \delta(t - c)g(t)\,dt = g(c).

Their Laplace transforms are

L{uc(t)f(t−c)}=e−csF(s)L{uc(t)}=e−cssL{δ(t−c)}=e−cs\mathcal{L}\{u_c(t)f(t - c)\} = e^{-cs}F(s) \qquad \mathcal{L}\{u_c(t)\} = \frac{e^{-cs}}{s} \qquad \mathcal{L}\{\delta(t - c)\} = e^{-cs}

Why a delay becomes a factor e^(−cs)

In ∫0∞e−stuc(t)f(t−c) dt\int_0^{\infty} e^{-st}u_c(t)f(t - c)\,dt, the integrand is 00 until t=ct = c. Substitute τ=t−c\tau = t - c:

∫c∞e−stf(t−c) dt=∫0∞e−s(τ+c)f(τ) dτ=e−csF(s)\int_c^{\infty} e^{-st}f(t - c)\,dt = \int_0^{\infty} e^{-s(\tau + c)}f(\tau)\,d\tau = e^{-cs}F(s)

Shifting a signal later in time multiplies its transform by e−cse^{-cs}, and the factor turns back into a delay when inverting. The delta function is the limit of ever narrower pulses of area 11, and the transform of a pulse at cc tends to e−cse^{-cs}.

Response to a switch at t = 2 The solution of y′ + y = u₂(t), y(0) = 0, from t = 0 to 8. It stays at 0 until t = 2, then rises toward 1 like 1 − e^(−(t − 2)). The dashed step function u₂(t) jumps from 0 to 1 at t = 2. 24681ty
  • y(t)
Response to a switch at t = 2

Worked examples

Common mistakes

Practice problems

  1. Find L{u3(t)(t−3)2}\mathcal{L}\{u_3(t)(t - 3)^2\}.

    Answer

    2e−3ss3\tfrac{2e^{-3s}}{s^3}

    Full solution

    L{t2}=2s3\mathcal{L}\{t^2\} = \tfrac{2}{s^3}, delayed by 33.

  2. Find the inverse transform of e−2ss2\tfrac{e^{-2s}}{s^2}.

    Answer

    u2(t)(t−2)u_2(t)(t - 2)

    Full solution

    1s2\tfrac{1}{s^2} inverts to tt, then the shift rule delays it.

  3. Write the pulse that equals 55 for 1≤t<41 \le t < 4 and 00 otherwise with step functions, and transform it.

    Answer

    5(u1(t)−u4(t))5(u_1(t) - u_4(t)); 5(e−s−e−4s)s\tfrac{5(e^{-s} - e^{-4s})}{s}

    Full solution

    Switch on at 11, off at 44.

  4. Solve y′′+y=δ(t−π)y'' + y = \delta(t - \pi) with y(0)=y′(0)=0y(0) = y'(0) = 0.

    Answer

    y=uπ(t)sin⁡(t−π)=−uπ(t)sin⁡ty = u_\pi(t)\sin(t - \pi) = -u_\pi(t)\sin t

    Full solution

    Y=e−πss2+1Y = \tfrac{e^{-\pi s}}{s^2 + 1}.

  5. Find ∫0∞δ(t−2) t3 dt\int_0^{\infty} \delta(t - 2)\,t^3\,dt.

    Answer

    88

    Full solution

    The delta function picks out the value at t=2t = 2.

  6. In Example 1, find y(3.5)y(3.5).

    Answer

    1−e−1.5≈0.7771 - e^{-1.5} \approx 0.777

    Full solution

    For t≥2t \ge 2, y=1−e−(t−2)y = 1 - e^{-(t - 2)}.

  7. Solve y′=δ(t−1)y' = \delta(t - 1) with y(0)=0y(0) = 0. Describe the graph.

    Answer

    y=u1(t)y = u_1(t): a jump from 00 to 11 at t=1t = 1

    Full solution

    sY=e−ssY = e^{-s}, so Y=e−ssY = \tfrac{e^{-s}}{s}. The delta function is the derivative of the step.

  8. A student writes L{u1(t) t}=e−ss2\mathcal{L}\{u_1(t)\,t\} = \tfrac{e^{-s}}{s^2}. What is missing?

    Answer

    The term e−ss\tfrac{e^{-s}}{s}; the correct transform is e−s(1s2+1s)e^{-s}\left(\tfrac{1}{s^2} + \tfrac{1}{s}\right).

    Full solution

    The shift rule needs f(t−c)f(t - c). Here t=(t−1)+1t = (t - 1) + 1, and the +1+1 contributes e−ss\tfrac{e^{-s}}{s}.

Frequently asked questions

What is the unit step function?

u_c(t) is 0 for t < c and 1 for t ≥ c. Multiplying by it switches a term on at time c.

What is the shift rule?

L{u_c(t) f(t − c)} = e^(−cs) F(s). A delay of c in time multiplies the transform by e^(−cs).

What is the delta function?

δ(t − c) models an instantaneous impulse at time c with total size 1: ∫ δ(t − c) g(t) dt = g(c). Its transform is e^(−cs).

How does an impulse affect a mass on a spring?

It changes the velocity suddenly by the size of the impulse (divided by the mass), while the position stays continuous.

How do I write a function that is on only between a and b?

Use u_a(t) − u_b(t), which is 1 between a and b and 0 elsewhere.

What to learn next