Solving ODE via Laplace Transforms
Problem
Solve y'' + 4y = delta(t - 2) with y(0) = 0 and y'(0) = 0. Show the impulse response and the delayed-sine waveform that emerges from the Dirac delta forcing.
Explanation
Why Laplace is perfect for this
The forcing term is a Dirac delta — an idealised instantaneous impulse at . Classical time-domain methods (undetermined coefficients, variation of parameters) don't handle gracefully. Laplace, on the other hand, converts both sides of the ODE — including the delta — into pure algebra, solves, and inverts.
The Laplace transform of a shifted delta is clean:
That single identity is all we need to tame the impulsive right-hand side.
The given IVP
Step-by-step solution
Step 1 — Apply the Laplace transform to both sides.
Using the derivative formula , and :
Step 2 — Solve for .
Step 3 — Inverse transform.
We need to invert
Two tools:
3a. (from the table: , so ).
3b. Second shifting theorem. Multiplying by in the -domain corresponds to time-shifting by and turning on at : where is the Heaviside step function (see #192) and .
With , :
Equivalently: for and for .
Interpretation — the impulse response
Before the impulse fires at , the system was at rest () and no forcing, so it just sat there — consistent with for .
At , the impulse delivers a unit "kick." Integrating the ODE across the singular point:
So the impulse jumps the velocity by : before the kick, ; just after, . Meanwhile itself is continuous at : still .
After , the system is governed by the homogeneous ODE with initial conditions , :
So for — matching the Laplace answer exactly.
The idea of "impulse response"
The solution we computed is called the impulse response of the linear system , shifted in time by . The name comes from the fact that it's the system's reaction to a unit impulse.
The impulse response carries complete information about the system: for any forcing , the response with zero initial conditions is the convolution of with the impulse response (see #193). So once you know how the system rings to a single kick, you know how it rings to every possible input — that's a profound consequence of linearity.
For , the unit impulse response at is . Our solution with delta at is simply .
Verification
Check the jump:
- For : , so , matching the ODE (which has there).
- For : , , so . ✓
- At : continuous (equals ), jumps by . Integrating the ODE across gives the required . ✓
Why Laplace "just knows" initial conditions
Because , the initial values appear in the transformed equation as algebraic terms. You never separately apply them at the end — they're baked in from the start. This is one of the biggest practical advantages of Laplace over undetermined coefficients for IVPs.
The Laplace recipe for IVPs
- Laplace-transform both sides of the ODE.
- Substitute initial conditions into the derivative formulas.
- Solve algebraically for .
- Partial fractions / completing the square to decompose .
- Inverse-transform term by term to get .
Common mistakes
- Forgetting the initial-condition terms in and . They are and -style terms — easy to drop.
- Using the first shifting theorem for . First shifting is for ; second shifting is for . Different theorems.
- Forgetting . The solution vanishes before the shift time; omitting the step function makes it look like the system reacted before the impulse arrived.
- Treating as a function, not as a distribution. Its integral gives , but at every point it is . This is the property that forces the velocity jump.
Try it in the visualization
Place the impulse at different times and watch the system ring afterward. Add multiple impulses and see the responses superimpose (linearity). Change the ODE coefficients to see the impulse response shape change — oscillation frequency, decay rate.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.