Connect convolution to system impulse response and signal processing
Real engineering inputs aren't smooth forever — machines switch on, forces suddenly change, signals have discontinuities. This section gives us the tools to handle ALL of these: the unit step function for modeling switches, the second shifting theorem for delayed signals, and convolution for understanding system response.
"Nature uses only the longest threads to weave her patterns, so each small piece of her fabric reveals the organization of the entire tapestry."
"He gives wisdom to whom He wills, and whoever has been given wisdom has certainly been given much good."
— Quran, Surah Al-Baqarah (2:269)
Unit Step Function (Heaviside Function)
Definition
The Unit Step Function:
$$u(t - \tau) = \begin{cases} 0, & t < \tau \\ 1, & t \geq \tau \end{cases}$$
Engineering Insight: The function $u(t-\tau)$ is like a switch that turns ON at time $t = \tau$. Every piecewise function in engineering — a motor starting, a valve opening, a load being applied — can be written using step functions. This is why the step function is also called the Heaviside function, named after engineer Oliver Heaviside.
Writing Piecewise Functions with Step Functions
Any piecewise function can be converted to a sum of step functions:
$$f(t) = \begin{cases} f_1(t), & 0 \leq t < a \\ f_2(t), & a \leq t < b \\ f_3(t), & t \geq b \end{cases}$$
$$= f_1(t) + [f_2(t) - f_1(t)]u(t-a) + [f_3(t) - f_2(t)]u(t-b)$$
Key Idea: Add the first piece, then "turn on" the difference each time you switch to a new piece.
Example Conversions
Example A: Express $f(t) = \begin{cases} 2, & 0 \leq t < 3 \\ 5, & t \geq 3 \end{cases}$
Solution: Start with 2, then add $(5-2) = 3$ at $t=3$:
$$f(t) = 2 + 3u(t-3)$$
Example B: Express $f(t) = \begin{cases} 0, & 0 \leq t < 1 \\ t, & 1 \leq t < 4 \\ 1, & t \geq 4 \end{cases}$
First Shifting (Section 3.1): Multiplying by $e^{at}$ in time shifts in s-domain: $\mathcal{L}\{e^{at}f(t)\} = F(s-a)$ (frequency shift)
Second Shifting: Multiplying by $e^{-\tau s}$ in s-domain shifts in t-domain: $\mathcal{L}\{f(t-\tau)u(t-\tau)\} = e^{-\tau s}F(s)$ (time delay)
First = frequency shift, Second = time delay. Don't confuse them!
Important Caution
⚠️ The function must match the shift!
The second shifting theorem requires the function to be in the form $f(t-\tau) \cdot u(t-\tau)$ — the same shift $\tau$ in both the function and the step function.
If you have $g(t) \cdot u(t-\tau)$ where $g$ is not of the form $f(t-\tau)$, you must rewrite $g(t)$ as a function of $(t-\tau)$ first, or use partial fractions to break it down.
Step-by-Step Using Second Shifting
Identify the shift $\tau$: From the argument of the step function $u(t-\tau)$
Rewrite the other function: Express $f(t-\tau)$ in terms of $(t-\tau)$
Find the transform of $f$: Calculate $F(s) = \mathcal{L}\{f(t)\}$
Apply the theorem: $\mathcal{L}\{f(t-\tau)u(t-\tau)\} = e^{-\tau s}F(s)$
For inverse transforms: Extract the exponential, recognize the inside, apply the inverse with the step
Engineering Insight: Convolution is the mathematical description of how a system processes an input signal. If $G(s)$ is the transfer function (the Laplace transform of the impulse response), then the output is:
$$Y(s) = G(s) \cdot F(s)$$
Taking the inverse transform:
$$y(t) = g(t) * f(t)$$
The system "convolves" the input signal $f(t)$ with its impulse response $g(t)$ to produce the output. This is the foundation of signal processing and control theory!
Impulse Response: The impulse response $g(t) = \mathcal{L}^{-1}\{G(s)\}$ is the system's response to a unit impulse $\delta(t)$. Once you know $g(t)$, you can find the system's response to ANY input — just convolve!
Properties of Convolution
Key Properties:
Commutative: $f * g = g * f$
Associative: $(f*g)*h = f*(g*h)$
Distributive: $f*(g+h) = f*g + f*h$
With constant: $\mathcal{L}^{-1}\{F(s)\} = f(t) \Rightarrow \mathcal{L}^{-1}\{c \cdot F(s)\} = c \cdot f(t)$
How to Compute Convolution
Write out both functions: $f(\tau)$ and $g(t-\tau)$ (g is shifted and flipped)
Multiply them together: $f(\tau) \cdot g(t-\tau)$
Integrate from $\tau=0$ to $\tau=t$: $\int_0^t f(\tau) g(t-\tau) d\tau$
Simplify the result — it will be a function of $t$
Worked Examples
Problem: Express $f(t) = \begin{cases} 2, & 0 \leq t < 3 \\ 5, & t \geq 3 \end{cases}$ using step functions, then find $\mathcal{L}\{f(t)\}$.
Interpretation: The transient response $\frac{1}{5}e^{-2t}$ decays quickly, leaving the steady-state sinusoidal response $-\frac{1}{5}\cos(t) + \frac{2}{5}\sin(t)$. The system attenuates and phase-shifts the input — this is frequency response in action!
$$= t\cos(0) - 0 - \left[-\sin(t-\tau)\right]_0^t = t - (-\sin(0) + \sin(t)) = t - \sin(t)$$
Answer: $\boxed{t - \sin(t)}$
Interactive Visualizer
Convolution Visualizer
Select two functions below to visualize how convolution works. The animation shows $f(\tau)$ (blue), $g(t-\tau)$ (red), and their product (green) as $\tau$ varies from 0 to $t$. The integral of the product gives the convolution value!
Convolution Components at t = 2.0
Convolution Result: (f * g)(t)
Practice Quiz
Question 1
Express $f(t) = \begin{cases} 0, & t < 1 \\ 3, & t \geq 1 \end{cases}$ using step functions: