Impulse Function

step function: like a light switch, turn it on and it stays on

but sometimes we want to model a short-acting force, like a bat hitting a baseball

we can build that by using two step functions

f(t) t t₀ − a t₀ t₀ + a 1 2a
Figure: Rectangular pulse from two step functions
Detailed description
A coordinate plane with horizontal axis \(t\) and vertical axis \(f(t)\). The function \(f(t)\) is zero for \(t < t_0 - a\), steps up at \(t = t_0 - a\) to a constant height of \(\frac{1}{2a}\) across the interval \([t_0 - a, t_0 + a]\) centered at \(t_0\), and steps back down to zero for \(t > t_0 + a\). The width of the rectangle is \(2a\) and its height is \(\frac{1}{2a}\), so the enclosed area equals \(1\).
  • \( t_0 \): time of the short acting force
  • step up/down w/ magnitude \( \frac{1}{2a} \) (such that area is \( 1 \))

to make the duration shorter, we shrink \( a \)

f(t) t t₀ a → 0 f(t) t t₀
Figure: Shrinking pulse duration as \( a \to 0 \)
Detailed description
Two side-by-side \(f(t)\) versus \(t\) graphs connected by an arrow labeled \(a \to 0\). The left graph displays three nested rectangular pulses centered at \(t_0\): as the width \(2a\) shrinks, the height \(\frac{1}{2a}\) grows taller while preserving unit area. The right graph shows the limiting case as \(a \to 0\), leaving a single vertical spike of infinite height at \(t = t_0\) and zero elsewhere.

that is called the Impulse or (Dirac Delta) Function

denoted as \( \delta(t - t_0) \) (lowercase Greek delta)

as \( t \to t_0 \), magnitude \( \to \infty \), but since area is one \( \to \int_{-\infty}^{\infty} \delta(t - t_0)\,dt = 1 \)

(strictly speaking, this is not a function in the usual sense)

it has a Laplace transform from its parent step functions

\[ \begin{aligned} \mathcal{L}\{\delta(t - t_0)\} &= \mathcal{L}\left\{ \lim_{a \to 0} \frac{1}{2a} \left[ u_{t_0 - a}(t) - u_{t_0 + a}(t) \right] \right\} \\ &= \lim_{a \to 0} \frac{1}{2a} \left[ \frac{e^{-(t_0 - a)s}}{s} - \frac{e^{-(t_0 + a)s}}{s} \right] \\ &= \frac{e^{-t_0 s}}{s} \lim_{a \to 0} \left( \frac{e^{as} - e^{-as}}{2a} \right) \quad \text{l'Hospital's rule here} \\ &= \frac{e^{-t_0 s}}{s} \lim_{a \to 0} \left( \frac{s e^{as} + s e^{-as}}{2} \right) = \frac{e^{-t_0 s}}{s} \left( \frac{2s}{2} \right) \end{aligned} \]
\[ \mathcal{L}\{\delta(t - t_0)\} = e^{-t_0 s} \]

looks like \( u_{t_0}(t) \) w/o \( s \): \( \mathcal{L}\{u_{t_0}(t)\} = \frac{e^{-t_0 s}}{s} \)

Example: Mass-Spring System

mass \( = 1 \), spring constant \( = 1 \)

k = 1 m = 1
Figure: Mass-spring system (\( m = 1, k = 1 \))
Detailed description
A vertical spring hangs from a fixed horizontal support at the top. The spring is labeled \(k = 1\) and supports a rectangular block at the bottom labeled \(m = 1\).
  • \( y(0) = 1 \) (initially pulled down \( 1 \) and let go)
  • \( y'(0) = 0 \)

at \( t = \pi \), tap it down

\[ \begin{aligned} y'' + y &= \delta(t - \pi) \quad \text{with } y(0) = 1,\; y'(0) = 0 \\ \bigl[ s^2 Y - s\underbrace{y(0)}_{1} - \underbrace{y'(0)}_{0} \bigr] + Y &= e^{-\pi s} \\ (s^2 + 1) Y &= s + e^{-\pi s} \\ Y &= \frac{s}{s^2 + 1} + e^{-\pi s} \frac{1}{s^2 + 1} \end{aligned} \]

Using \( \mathcal{L}\{u_c(t) f(t - c)\} = e^{-cs} F(s) \), convert back to \( t \):

\[ y = \cos(t) + u_{\pi}(t)\sin(t - \pi) \]

Note on \( u_{\pi}(t)\sin(t - \pi) \): step! NOT impulse \( \to \) because effect is NOT short acting (hit baseball, ball flies for a long time)

Position and Velocity Response

Position: y = cos t − uπ(t) sin t 1.5 1.0 0.5 0.0 −0.5 −1.0 −1.5 y(t) impulse cannot instantaneously move mass Velocity: y' = −sin t − uπ(t) cos t (jumps by 1 at t = π) 1.5 1.0 0.5 0.0 −0.5 −1.0 −1.5 y'(t) 0 π 2π 3π 4π t impulse added energy in "0 time" instantaneously changed velocity
Figure: Position \( y(t) \) and velocity \( y'(t) \) across \( [0, 4\pi] \)
Detailed description
Two vertically stacked plots for \(t \in [0, 4\pi]\) with a vertical dashed reference line at \(t = \pi\). In the top plot, position \(y = \cos t - u_\pi(t)\sin t\) starts at \((0, 1)\), decreases smoothly to \((\pi, -1)\), and continues seamlessly (annotated "impulse cannot instantaneously move mass") as an oscillation with amplitude \(\sqrt{2} \approx 1.414\) for \(t \ge \pi\). In the bottom plot, velocity \(y' = -\sin t - u_\pi(t)\cos t\) starts at \((0, 0)\), reaches \(-1\) at \(t = \pi/2\), and returns to an open circle at \((\pi, 0)\) (annotated "instantaneously changed velocity"). At \(t = \pi\), a vertical dotted jump increases \(y'\) instantaneously from \(0\) to a filled dot at \((\pi, 1)\) (annotated "impulse added energy in '0 time'"), after which \(y'\) oscillates with amplitude \(\sqrt{2} \approx 1.414\).
\[ y = \cos(t) - u_{\pi}(t)\sin(t) \]

notice from the graphs \( y \) cannot instantaneously change but \( y' \) can (because the input force happened in a very short amount of time)

step function preserves continuity in \( y \) AND \( y' \)

Impulse as the Derivative of the Step Function

we can also show that the impulse is the derivative of the step.

\[ u_c(t) = \begin{cases} 0 & t < c \\ 1 & t \ge c \end{cases} \]
f(t) t 1 c
Figure: Discontinuous step function \( u_c(t) \)
Detailed description
An \(f(t)\) versus \(t\) plot showing the unit step function \(u_c(t)\), which stays at \(0\) for \(t < c\), jumps vertically (dashed line) at \(t = c\), and equals \(1\) for \(t \ge c\).

how to differentiate this discontinuous function?

we can approximate it as a ramp

f(t) t 1 c − ε c
Figure: Ramp approximation of \( u_c(t) \)
Detailed description
A continuous piecewise linear ramp on the \(f(t)\) versus \(t\) plane: equal to \(0\) for \(t \le c - \varepsilon\), rising linearly from \((c - \varepsilon, 0)\) to \((c, 1)\), and staying constant at \(1\) for \(t \ge c\).

\( \varepsilon \to 0 \) we recover the step

f(t) t 1 c − ε c
Figure: Ramp function before differentiation
Detailed description
The ramp approximation of the step function: zero up to \(t = c - \varepsilon\), increasing linearly with slope \(\frac{1}{\varepsilon}\) up to \(t = c\), and constant at \(1\) for \(t \ge c\).

sketch its derivative

f(t) t 1 ε c − ε c
Figure: Derivative of the ramp approximation
Detailed description
An \(f(t)\) versus \(t\) plot showing the derivative of the ramp: zero outside \([c - \varepsilon, c]\) and equal to a constant rectangle of height \(\frac{1}{\varepsilon}\) over the interval \([c - \varepsilon, c]\).

shrink \( \varepsilon \)

  • magnitude \( \to \infty \)
  • but area \( = 1 \)
  • \( \delta(t - c) \)
f(t) t c
Figure: Impulse \( \delta(t - c) \) as \( \varepsilon \to 0 \)
Detailed description
An \(f(t)\) versus \(t\) plot showing the limit as \(\varepsilon \to 0\): the rectangular pulse narrows to a single vertical spike at \(t = c\) whose height tends to infinity while preserving unit area, representing \(\delta(t - c)\).

Example: Stopping a Pendulum with Impulse

L x(t): horizontal position of the mass
Figure: Pendulum geometry and displacement \( x(t) \)
Detailed description
A pendulum of length \(L\) suspended from a fixed ceiling pivot, shown swinging symmetrically to the left and right of a vertical dashed equilibrium line. Arrows beneath the bob indicate back-and-forth oscillation, and a horizontal arrow below measures \(x(t)\), the horizontal displacement of the mass from the vertical center line.

from last time, the equation of motion (horizontal)

\[ x'' + \left(\frac{g}{L}\right)x = f(t) \]

where:

  • \( f(t) \): force applied to the mass (horizontal)

if we displace it and let go, how to stop the swinging with one tap

x(0) tap
Figure: Stopping a swinging pendulum with one tap
Detailed description
Three sequential pendulum sketches from left to right. First, the pendulum is pulled to an initial horizontal displacement \(x(0)\) and released. Second, while swinging back and forth, an external horizontal arrow labeled "tap" strikes the bob. Third, the pendulum hangs straight down motionless at equilibrium.
\[ x'' + \left(\frac{g}{L}\right)x = K\delta(t - c) \]

for simplicity, let's use \( g = 10\text{ m/s}^2 \), \( L = 10\text{ m} \)

\[ \begin{aligned} x'' + x &= K\delta(t - c) \quad \text{w/ } x(0) = 1,\; x'(0) = 0 \\ s^2 X - s x(0) - x'(0) + X &= K e^{-cs} \\ (s^2 + 1) X &= s + K e^{-cs} \\ X &= \frac{s}{s^2 + 1} + K e^{-cs} \frac{1}{s^2 + 1} \end{aligned} \]
\[ x(t) = \cos(t) + K u_c(t) \sin(t - c) \]

if we tap at top

\( c = \text{half period} = \pi \)

t = c t = 0
Figure: Tapping at the top of the swing (\( t = c \))
Detailed description
A pendulum diagram showing the bob starting on the right peak labeled \(t = 0\), swinging past the dashed vertical equilibrium line, and reaching the opposite left peak labeled \(t = c\) after one half-period.
\[ x(t) = \cos(t) - K u_{\pi}(t)\sin(t) \]

want \( x = 0 \) for \( t \ge \pi \)

\[ x(t) = \cos(t) - K\sin(t) = 0 \]

cannot happen for ANY \( K \)!

but tap at bottom ( \( c = \frac{1}{4}\text{ period} = \frac{\pi}{2} \) )

\[ \begin{aligned} x(t) &= \cos(t) - K u_{\pi/2}(t)\sin\left(t - \frac{\pi}{2}\right) \\ &= \cos(t) - K u_{\pi/2}(t)\cos(t) \\ x(t) &= \bigl(1 - K u_{\pi/2}(t)\bigr)\cos(t) \end{aligned} \]

want \( x = 0 \) for \( t \ge \pi/2 \)

choose \( K = 1 \)