Step Functions

last time:

\[ y'' + 3y' + 2y = \begin{cases} 0 & 0 \le t < \pi \\ 1 & \pi \le t < \infty \end{cases} \qquad y(0) = y'(0) = 0 \] \[ \vdots \] \[ Y = e^{-\pi s} \frac{1}{s(s+2)(s+1)} \]

where:

  • \( e^{-\pi s} \): ? that \( \pi \) in the exponent MUST be related to the "delay" by \( \pi \) \( t \) units
  • \( \frac{1}{s(s+2)(s+1)} \): we can break this up and do inverse transform

let's define the unit step function

\[ u_c(t) = \begin{cases} 0 & \text{if } t < c \\ 1 & \text{if } t \ge c \end{cases} \]
1 c t f(t)
Figure: Graph of the unit step function \( u_c(t) \)
Detailed description
A two-dimensional coordinate plane with horizontal axis labeled \( t \) and vertical axis labeled \( f(t) \). The vertical axis has a tick mark at \( 1 \) and the horizontal axis has a tick mark at \( c > 0 \). From \( t = 0 \) to \( t = c \), the graph lies along the horizontal axis at \( f(t) = 0 \), ending at an open circle at \( (c, 0) \). At \( t = c \), the graph jumps discontinuously to a filled point at \( (c, 1) \) and continues as a horizontal ray at \( f(t) = 1 \) for \( t \ge c \).

we can use that to model all kinds of discontinuous functions

\[ \begin{aligned} f(t) &= \begin{cases} 1 & \text{if } 0 \le t < 3 \\ 0 & \text{if } t \ge 3 \end{cases} \\ &= 1 - u_3(t) \end{aligned} \]
1 3 t f(t)
Figure: Graph of \( f(t) = 1 - u_3(t) \)
Detailed description
A coordinate plane with horizontal axis \( t \) and vertical axis \( f(t) \). Tick marks indicate \( 1 \) on the vertical axis and \( 3 \) on the horizontal axis. The function is plotted as a horizontal segment at height \( 1 \) for \( 0 \le t < 3 \), dropping to \( f(t) = 0 \) along the horizontal axis for \( t \ge 3 \).

how about

\[ f(t) = \begin{cases} 10 & 0 \le t < 1 \\ -20 & 1 \le t < 2 \\ 30 & 2 \le t < 3 \\ -40 & t \ge 3 \end{cases} \]
30 10 -20 -40 1 2 3 4 t f(t)
Figure: Four-level piecewise constant step function \( f(t) \)
Detailed description
A coordinate plane with horizontal axis \( t \) marked at \( 1, 2, 3, 4 \) and vertical axis \( f(t) \) marked at \( -40, -20, 10, 30 \). Horizontal line segments represent the function values: \( 10 \) on \( [0, 1) \), \( -20 \) on \( [1, 2) \), \( 30 \) on \( [2, 3) \), and \( -40 \) on \( [3, \infty) \), with dashed vertical guide lines indicating the jumps at \( t = 1, 2, 3 \).
\[ = 10 + u_1(t)(-30) + u_2(t)(50) + u_3(t)(-70) \]

where:

  • \( u_1(t) \): "light switch" that turns on at \( u_c \) (\( t = c \))

let's try

\[ f(t) = \begin{cases} t & 0 \le t < 1 \\ 1 & 1 \le t < 2 \\ 3 - t & 2 \le t < 3 \\ 0 & t \ge 3 \end{cases} \]
1 1 2 3 t f(t)
Figure: Piecewise linear trapezoidal ramp function \( f(t) \)
Detailed description
A coordinate plane with horizontal axis \( t \) marked at \( 1, 2, 3 \) and vertical axis \( f(t) \) marked at \( 1 \). The continuous piecewise linear graph starts at the origin \( (0, 0) \), rises linearly to \( (1, 1) \), stays horizontal at \( f(t) = 1 \) from \( t = 1 \) to \( t = 2 \), descends linearly from \( (2, 1) \) to \( (3, 0) \), and remains at \( 0 \) along the \( t \)-axis for \( t \ge 3 \).
\[ f(t) = t + u_1(t) \cdot (-t + 1) + u_2(t) \cdot (-1 + 3 - t) + u_3(t) \cdot (-3 + t) \]

where:

  • \( u_1(t) \): turn on at \( t = 1 \)
  • \( (-t + 1) \): something that puts \( f(t) \) at \( 1 \) (specifically \( -t \) resets at \( 0 \), and \( +1 \) is where we want to be)
  • \( -1 \) in \( (-1 + 3 - t) \): reset to \( 0 \)
  • \( (-3 + t) \): resets to \( 0 \)

now let's find Laplace transform of \( u_c(t) = \begin{cases} 0 & t < c \\ 1 & t \ge c \end{cases} \)

\[ \mathcal{L}\{u_c(t)\} = \int_0^\infty u_c(t) e^{-st}\,dt \]
\[ \begin{aligned} &= \int_c^\infty 1 \cdot e^{-st}\,dt = \lim_{a \to \infty} \int_c^a e^{-st}\,dt \\ &= \lim_{a \to \infty} \left( -\frac{1}{s} e^{-st} \Big|_c^a \right) = \underbrace{\lim_{a \to \infty} -\frac{1}{s} e^{-sa}}_{\to 0 \text{ if } s > 0} + \frac{1}{s} e^{-cs} \end{aligned} \]
\[ \mathcal{L}\{u_c(t)\} = e^{-cs} \cdot \frac{1}{s} \qquad (s > 0) \]

try

\[ \begin{aligned} \mathcal{L}\{10 + u_1(t)(-30) + u_2(t)(50) + u_3(t)(-70)\} &= \mathcal{L}\{10 - 30u_1(t) + 50u_2(t) - 70u_3(t)\} \\ &= 10 \cdot \frac{1}{s} - 30 \cdot e^{-s} \frac{1}{s} + 50e^{-2s} \frac{1}{s} - 70e^{-3s} \frac{1}{s} \end{aligned} \]

\( \mathcal{L}\{u_c(t)\} \) by itself is easy

but \( \mathcal{L}\{u_c(t) \cdot (\text{some function})\} \) like in the ramp up/down example is trickier.

try a simpler one first:

\[ y = \begin{cases} 0 & t < 1 \\ t - 1 & t \ge 1 \end{cases} = u_1(t)(t - 1) \]
1 t y
Figure: Delayed ramp \( y = u_1(t)(t - 1) \)
Detailed description
A coordinate plane with horizontal axis \( t \) marked at \( 1 \) and vertical axis \( y \). The graph lies along \( y = 0 \) from \( t = 0 \) to \( t = 1 \), then rises linearly with positive slope starting from \( (1, 0) \).

think of it as a delay of the same shape that would have happened at \( t = 0 \)

1 t y t t - 1
Figure: Delayed ramp \( t - 1 \) compared to \( t \)
Detailed description
A coordinate plane showing a dashed line labeled \( t \) starting at the origin \( (0, 0) \) and rising with slope \( 1 \), alongside the solid graph of \( u_1(t)(t - 1) \) which remains at \( 0 \) until \( t = 1 \) and then rises parallel to the dashed line, labeled \( t - 1 \).
\[ \begin{aligned} \mathcal{L}\{u_1(t)(t - 1)\} &= \int_0^\infty u_1(t)(t - 1)e^{-st}\,dt = \int_1^\infty (t - 1)e^{-st}\,dt \\ &= -\frac{t - 1}{s} e^{-st}\Big|_1^\infty + \int_1^\infty \frac{1}{s} e^{-st}\,dt \\ &= \underbrace{0}_{(s > 0)} - \frac{1}{s^2} e^{-st}\Big|_1^\infty = \frac{1}{s^2} e^{-1 \cdot s} \end{aligned} \]

where (integration by parts):

  • \( u = t - 1 \), \( dv = e^{-st}\,dt \)
  • \( du = dt \), \( v = -\frac{1}{s} e^{-st} \)
\[ \mathcal{L}\{u_1(t)(t - 1)\} = e^{-1 \cdot s} \cdot \frac{1}{s^2} \]

where:

  • \( e^{-1 \cdot s} \): delay by \( 1 \)
  • \( \frac{1}{s^2} \): is NOT transform of \( t - 1 \), but transform of \( t \) (\( t - 1 \) if it happened at origin)

so, we don't transform the function attached to \( u_c(t) \) as is

\( \to \) transform what it is shifted to origin

in general,

\[ \mathcal{L}\{u_c(t) \cdot f(t - c)\} = e^{-cs} \cdot F(s) \]
c t y f(t) f(t - c)
Figure: Unshifted \( f(t) \) and shifted \( f(t - c) \)
Detailed description
A coordinate plane with horizontal axis \( t \) marked at \( c > 0 \) and vertical axis \( y \). A wavy increasing curve labeled \( f(t) \) begins at the origin \( (0, 0) \), while an identical curve shifted right by \( c \) units, labeled \( f(t - c) \), begins at \( (c, 0) \).
\[ \mathcal{L}\{u_\pi(t) \cdot t\} \ne e^{-\pi s}\mathcal{L}\{t\} \]

recognize \( t = f(t - \pi) \) then find \( f(t) \) (change \( t \) to \( t - \pi \))

so, \( f(t) = t - \pi \) transform THIS

\[ \text{so, } \mathcal{L}\{u_\pi(t) \cdot t\} = e^{-\pi s} \mathcal{L}\{t - \pi\} = e^{-\pi s}\left(\frac{1}{s^2} - \pi \cdot \frac{1}{s}\right) \] \[ \mathcal{L}\{u_c(t) f(t - c)\} = e^{-cs} \cdot F(s) \]

back from \( s \) to \( t \), do everything in reverse

for example,

\[ e^{-2s} \frac{1}{s^2 + 1} \qquad \text{in } t \text{ world?} \]

where:

  • \( e^{-2s} \): corresponds to \( u_2(t) \)
  • \( \frac{1}{s^2 + 1} \): corresponds to \( F(s) \)

\( f(t) = \sin(t) \) BUT we need \( u_2(t) f(t - 2) \) in \( t \) world

so,

\[ \mathcal{L}^{-1}\left\{e^{-2s} \frac{1}{s^2 + 1}\right\} = u_2(t) \cdot \sin(t - 2) \]
  • delay in \( t \) by \( c \to e^{-cs} \cdot \text{something in } s \text{ world} \)

what is a shift by \( c \) in \( s \) world in \( t \) world?

\[ \begin{aligned} F(s) &= \int_0^\infty f(t) e^{-st}\,dt \\ F(s - c) &= \int_0^\infty f(t) e^{-(s - c)t}\,dt \\ &= \int_0^\infty \left[f(t) e^{ct}\right] e^{-st}\,dt \\ &= \mathcal{L}\left\{e^{ct} f(t)\right\} \end{aligned} \]

shift in one world \( \leftrightarrow \) exponential in the other

Basic Laplace Transforms

\[ F(s) = \mathcal{L}\{f(t)\} = \int_0^\infty e^{-st} f(t)\,dt \]
Elementary Laplace Transforms
\( f(t) \) \( F(s) \) valid for
\( 1 \) \( \dfrac{1}{s} \) \( s > 0 \)
\( e^{at} \) \( \dfrac{1}{s - a} \) \( s > a \)
\( t^n \ (n = 1, 2, \dots) \) \( \dfrac{n!}{s^{n+1}} \) \( s > 0 \)
\( \sin(bt) \) \( \dfrac{b}{s^2 + b^2} \) \( s > 0 \)
\( \cos(bt) \) \( \dfrac{s}{s^2 + b^2} \) \( s > 0 \)
\( \sinh(bt) \) \( \dfrac{b}{s^2 - b^2} \) \( s > |b| \)
\( \cosh(bt) \) \( \dfrac{s}{s^2 - b^2} \) \( s > |b| \)
\( u_c(t) \ (c \ge 0) \) \( \dfrac{e^{-cs}}{s} \) \( s > 0 \)
Exponential-Modulated Laplace Transforms
\( f(t) \) \( F(s) \) valid for
\( e^{at}\sin(bt) \) \( \dfrac{b}{(s - a)^2 + b^2} \) \( s > a \)
\( e^{at}\cos(bt) \) \( \dfrac{s - a}{(s - a)^2 + b^2} \) \( s > a \)
\( t^n e^{at} \) \( \dfrac{n!}{(s - a)^{n+1}} \) \( s > a \)

Derivatives \( (Y = \mathcal{L}\{y\}) \)

\[ \mathcal{L}\{y'\} = sY - y(0) \qquad \mathcal{L}\{y''\} = s^2 Y - s\,y(0) - y'(0) \]

Linearity: \( \mathcal{L}\{c_1 f + c_2 g\} = c_1 F + c_2 G \)

First shifting: \( \mathcal{L}\{u_c(t) f(t - c)\} = e^{-cs} F(s) \)

Second shifting: \( \mathcal{L}\{e^{ct} f(t)\} = F(s - c) \)