$$f(t) = \begin{cases} 0, & 0 \le t \lt 1 \\ 1, & 1 \le t \lt 4 \\ 0, & t \ge 4 \end{cases}$$
Why Chapter 2 cannot start this
Undetermined coefficients needs a shape to guess. A pulse has three shapes, and the system
is already in motion when it arrives. Laplace does not care.
Step 1 — Write the Pulse as Switches
The unit step $u(t-a)$ is zero before $a$ and one after it. A pulse is one switch on,
and a second switch that cancels the first.
$$f(t) = u(t-1) - u(t-4)$$
For $t \lt 1$: both are zero, so $f = 0$. ✓
For $1 \le t \lt 4$: the first is one, the second still zero, so $f = 1$. ✓
For $t \ge 4$: both are one, so $f = 1 - 1 = 0$. ✓
Check it before you transform it
Always test your step expression on each interval. A sign error here poisons everything downstream,
and it is invisible later.
A delay in time becomes a factor $e^{-as}$ in $s$. Nothing else changes. Every switch in the
problem leaves its own exponential fingerprint, and you will read them backwards at the end.
Linearity is doing quiet work here too: the transform of a difference is the difference of the transforms.
The initial conditions are already in the equation. In Chapter 2 they waited until the end.
Here they arrive in line one, carried in by the derivative rule.
At $t=0$ this gives $2 - 1 = 1$, which is exactly $y(0)$. The piece that came from the
initial state reproduces the initial state. If it did not, we would stop here and find the error.
Step 7 — Partial Fractions, Second Piece
Set the exponentials aside for a moment — they are delays, not algebra. Work on what they multiply:
where $\;g(t) = \tfrac{1}{2} - e^{-t} + \tfrac{1}{2}e^{-2t}$
$0 \le t \lt 1$
$y = 2e^{-t} - e^{-2t}$ Coasting down from $y(0)=1$. Nothing is pushing yet.
$1 \le t \lt 4$
$y = 2e^{-t} - e^{-2t} + g(t-1)$ The pulse is on; the response climbs towards $\tfrac12$.
$t \ge 4$
$y = \cdots + g(t-1) - g(t-4)$ Switched off; the system decays back to zero.
Step 10 — Check It. Always.
1Initial conditions: at $t=0$ the step terms are off, so $y(0) = 2-1 = 1$ ✓ and $y'(0)=0$ ✓
2Continuity: $g(0) = \tfrac12 - 1 + \tfrac12 = 0$, so nothing jumps at $t=1$ or $t=4$ ✓
3Smoothness: $g'(0) = 0$ as well, so even the velocity is continuous. Only $y''$ jumps — by exactly 1, which is the size of the switch ✓
4Physics: while the pulse is on, $y \to \tfrac12$. And $\tfrac12$ is exactly $1/(s^2+3s+2)$ at $s=0$ ✓
Why the second derivative is the one that jumps
The forcing sits on the same side of the equation as $y''$. A jump in $f$ must be matched by
a jump in $y''$ — never in $y$ or $y'$. That single sentence catches most sign errors in this chapter.
You know the system — the mass, the damping, the stiffness. You do not yet know what
will be done to it. Can we solve it anyway, once, for every possible input?
Yes. And the answer will tell us something Chapter 2 never could.
The response now is everything the input has ever done, each piece weighted by how much the
system still remembers it. $h(\tau)$ is that memory, and it fades — which is exactly why
$h$ decays.
One formula that solves this equation for every input — step, ramp, pulse, recorded
earthquake data, anything. We solved the system once, not the problem once.
Note the symmetry: $\int_0^t h(\tau)f(t-\tau)d\tau = \int_0^t f(\tau)h(t-\tau)d\tau$. Use whichever
is easier to integrate — and that choice is about to matter.
$y \to 0$ as $t\to\infty$ ✓ — the input dies, and the system is stable
Step 7 — The Same Answer, the Other Way
Convolution was not the only route. With $f(t)=e^{-t}$ we have $F(s) = \dfrac{1}{s+1}$, so:
$$Y(s) = \frac{1}{(s+1)\big((s+1)^2+4\big)}$$
Partial fractions on that, then inverting, gives $\;\tfrac14 e^{-t}(1-\cos 2t)\;$ — the same function.
So which route do you take?
If $f$ is given and simple, transform it and use partial fractions. If $f$ is general, awkward,
or measured data, convolve. The convolution route also gives you the answer for
every other input at the same time.
Step 8 — A Second Input, Free of Charge
Keep the same $h$, change the input to a constant push, $f(t) = 1$: