01 / 21

ODEs with
Discontinuous Inputs

Learn to solve differential equations driven by step functions, piecewise forcing, and impulse inputs using the Laplace transform.

Differential Equations

What Is a Discontinuous Input?

In many real-world systems, the driving force is not smooth. A light switch flips on, a valve opens suddenly, or an impact delivers force in an instant. These are discontinuous inputs: forcing functions that have jumps, breaks, or instantaneous spikes.

\(t\)
\(f(t)\)
Smooth
Discontinuous

The Heaviside Step Function

The Heaviside step function (or unit step) is the building block for all piecewise forcing. It "turns on" at time \( t = c \):

\(t\)
\(u(t-c)\)
\(0\)
\(1\)
\(c\)

Any piecewise function can be written as a sum of shifted step functions multiplied by the desired values on each interval.

The Dirac Delta Function

An impulse is an idealized instantaneous forcing: infinite magnitude, zero duration, but finite total effect. The Dirac delta \( \delta(t - c) \) models this:

\(t\)
\(\infty\)
\(c\)

Laplace Transforms of Key Functions

The Laplace transform converts these discontinuous inputs into algebraic expressions in the \( s \)-domain:

Time Domain Laplace Domain
\( u(t - c) \) \( \dfrac{e^{-cs}}{s} \)
\( u(t - c)\,f(t - c) \) \( e^{-cs} F(s) \)
\( \delta(t - c) \) \( e^{-cs} \)
\( \delta(t) \) \( 1 \)

The Second Shifting Theorem

This theorem is the core tool. It tells us that shifting a function by \( c \) in time and "turning it on" with a step function simply multiplies the transform by \( e^{-cs} \).

Forward
Write piecewise \( f(t) \) using step functions, then transform each piece with \( e^{-cs}F(s) \).
Inverse
Factor out \( e^{-cs} \), find \( \mathcal{L}^{-1}\{F(s)\} = f(t) \), then write \( u(t-c)\,f(t-c) \).

Step vs. Impulse: Key Distinction

Property Heaviside \( u(t-c) \) Dirac \( \delta(t-c) \)
Nature Sustained shift (on/off) Instantaneous spike
Duration Infinite after \( c \) Zero width
Integral \( \int_0^\infty u(t)\,dt = \infty \) \( \int_{-\infty}^{\infty} \delta(t)\,dt = 1 \)
Laplace \( \frac{e^{-cs}}{s} \) \( e^{-cs} \)
Physical model Switch, valve opening Hammer blow, lightning

How to Solve: Step-by-Step

1
Rewrite the forcing function using Heaviside steps \( u(t-c) \) and/or Dirac deltas \( \delta(t-c) \).
2
Take the Laplace transform of both sides. Use the Second Shifting Theorem for each step/delta term.
3
Solve for \( Y(s) \) algebraically. Factor out exponentials \( e^{-cs} \).
4
Partial-fraction decompose each rational expression in \( s \).
5
Invert each term using the table and the inverse shifting theorem: \( \mathcal{L}^{-1}\{e^{-cs}F(s)\} = u(t-c)\,f(t-c) \).

Example 1: Step Forcing

1
Laplace transform: \( sY - 0 + 2Y = \dfrac{e^{-3s}}{s} \)
2
Solve for \( Y \): \( Y(s) = \dfrac{e^{-3s}}{s(s+2)} \)
3
Partial fractions: \( \dfrac{1}{s(s+2)} = \dfrac{\frac{1}{2}}{s} - \dfrac{\frac{1}{2}}{s+2} \)
4
Invert: \( y(t) = u(t-3)\left[\dfrac{1}{2} - \dfrac{1}{2}e^{-2(t-3)}\right] \)

Example 1: Solution Graph

\(t\)
\(y\)
\(3\)
\(\frac{1}{2}\)
1
2
4
5
6
7
8
9
10

Example 2: Impulse Forcing

1
Laplace transform: \( s^2Y + 4Y = e^{-\pi s} \)
2
Solve: \( Y(s) = \dfrac{e^{-\pi s}}{s^2 + 4} \)
3
Recognize: \( \mathcal{L}^{-1}\left\{\dfrac{1}{s^2+4}\right\} = \dfrac{1}{2}\sin(2t) \)
4
Apply shifting: \( y(t) = \dfrac{1}{2}\,u(t-\pi)\,\sin\big(2(t-\pi)\big) \)

Example 2: Solution Graph

\(t\)
\(y\)
\(\pi\)
\(\frac{1}{2}\)
\(\delta(t-\pi)\)

Example 3: Rectangular Pulse

A rectangular pulse (on for a finite interval) is modeled by the difference of two step functions:

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

Writing Piecewise Functions with Steps

Any piecewise-defined function can be expressed using Heaviside steps. The key formula:

1
Start with the formula valid on the first interval.
2
At each break point \( c_k \), add a step \( u(t - c_k) \) times the change in formula.
3
Before transforming, rewrite each product \( g(t)\,u(t-c) \) in the form \( h(t-c)\,u(t-c) \) so the shifting theorem applies directly.

Common Mistakes to Avoid

✕ Forgetting the shift
Writing \( \mathcal{L}\{u(t-c)\,f(t)\} = e^{-cs}F(s) \) is wrong. The argument of \( f \) must also be shifted: \( f(t-c) \), not \( f(t) \).
✕ Dropping \( u(t-c) \)
When inverting, the step function \( u(t-c) \) must appear in the answer. Without it, the solution is defined for all \( t \), not just \(t \ge c\).
✕ Wrong partial fractions
Factor out all \( e^{-cs} \) terms before decomposing. The exponentials are not part of the rational expression.

Summary: Transform Pairs

Input Type \( f(t) \) \( F(s) \) Effect
Unit step at \( c \) \( u(t-c) \) \( \frac{e^{-cs}}{s} \) Sustained shift
Delayed function \( u(t-c)f(t-c) \) \( e^{-cs}F(s) \) Time delay
Impulse at \( c \) \( \delta(t-c) \) \( e^{-cs} \) Instant kick
Rectangular pulse \( u(t-a)-u(t-b) \) \( \frac{e^{-as}-e^{-bs}}{s} \) Finite window

Question 1 of 5

What is \( \mathcal{L}\{\delta(t - 5)\} \)?

Question 2 of 5

Which expression represents the rectangular pulse that equals \(1\) on \( [2, 7) \) and \(0\) elsewhere?

Question 3 of 5

If \( \mathcal{L}\{f(t)\} = F(s) \), what is \( \mathcal{L}\{u(t-3)\,f(t-3)\} \)?

Question 4 of 5

Solve \( y' + y = \delta(t-1) \), \( y(0) = 0 \). What is \( y(t) \)?

Question 5 of 5

What is the relationship between \( \delta(t) \) and \( u(t) \)?