Solving Initial Value Problems with Laplace Transforms
Use the Laplace transform to turn differential equations into algebra, apply a transform table and partial fractions, and solve IVPs in a few clean steps.
Welcome back!
Step 1 of 13Learn
Calculus into algebra
The Laplace transform converts a function of time f(t) into a function of a new variable s:
F(s) = L{f(t)} = ∫ from 0 to ∞ of e^(−st)·f(t) dt
Why bother? Because it turns differentiation into multiplication by s. Integrating by parts gives
L{y′} = s·Y(s) − y(0) L{y″} = s2·Y(s) − s·y(0) − y′(0)
where Y(s) = L{y}. Transform a linear differential equation and it becomes an algebraic equation for Y(s). The initial conditions appear automatically. Solve for Y(s), then transform back.
Basic transforms (valid for s large enough):
| f(t) | F(s) |
|---|---|
| 1 | 1/s |
| tn | n!/s^(n+1) |
| e^(at) | 1/(s − a) |
| sin(bt) | b/(s2 + b2) |
| cos(bt) | s/(s2 + b2) |
| e^(at)·f(t) | F(s − a) |
The transform is linear: L{af + bg} = aF + bG.
Quick example. Solve y′ + 3y = 0, y(0) = 2. Transform: sY − 2 + 3Y = 0, so Y = 2/(s + 3). From the table, 1/(s + 3) is the transform of e^(−3t), so y = 2e^(−3t). Same answer as separation of variables, but the method scales to much harder problems.
Step 2 of 13Practice · Match the pairs
Match each function to its Laplace transform.
Tap an answer, then tap the place where it belongs (or drag it there).
- e^(4t)
- sin 3t
- cos 3t
- t2
- 5
Step 3 of 13Compare
A short Laplace transform table
| Aspect | f(t) | F(s) = L{f} |
|---|---|---|
| Constant | 1 | 1/s |
| Power | tn | n!/s^(n+1) |
| Exponential | e^(at) | 1/(s − a) |
| Sine | sin bt | b/(s2 + b2) |
| Cosine | cos bt | s/(s2 + b2) |
| Shift rule | e^(at)·f(t) | F(s − a) |
| Derivative | y′ | sY − y(0) |
Step 4 of 13Learn
The four-step recipe
Solving an IVP with Laplace transforms follows the same steps every time.
- Transform both sides, using the derivative rules to bring in initial conditions.
- Solve the algebraic equation for Y(s).
- Decompose Y(s), usually with partial fractions, into pieces that appear in the table.
- Invert each piece to get y(t).
Example. Solve y″ + 3y′ + 2y = 0 with y(0) = 0 and y′(0) = 1.
- Transform: [s2Y − 0 − 1] + 3[sY − 0] + 2Y = 0.
- Solve: (s2 + 3s + 2)Y = 1, so Y = 1/((s + 1)(s + 2)).
- Partial fractions: 1/((s + 1)(s + 2)) = A/(s + 1) + B/(s + 2). Multiply out: 1 = A(s + 2) + B(s + 1). At s = −1, A = 1; at s = −2, B = −1.
- Invert: y = e^(−t) − e^(−2t).
Notice that the denominator s2 + 3s + 2 is exactly the characteristic polynomial. The roots of the denominator, called the poles of Y(s), are the characteristic roots. That's not a coincidence, and engineers read system behavior straight from pole locations: poles in the left half of the complex plane mean decay, poles on the imaginary axis mean steady oscillation.
Common mistakes: dropping the initial-condition terms in step 1, and sign errors in L{y″} = s2Y − sy(0) − y′(0).
Step 5 of 13Practice · Work it out
Solve y′ + y = 1 with y(0) = 0 using Laplace transforms. What is y(2)? Round to three decimals.
Step 6 of 13Learn
Forced problems and completing the square
Laplace transforms really pay off when the equation has forcing and initial conditions together, because everything is handled in one pass.
Example. Solve y″ + 4y = 8 with y(0) = 0 and y′(0) = 0.
- Transform: s2Y + 4Y = 8/s.
- Solve: Y = 8/(s(s2 + 4)).
- Partial fractions: 8/(s(s2 + 4)) = A/s + (Bs + C)/(s2 + 4). Matching gives A = 2, B = −2, C = 0, so Y = 2/s − 2s/(s2 + 4).
- Invert: y = 2 − 2 cos 2t.
The mass oscillates between 0 and 4 around the new equilibrium y = 2, as you'd expect when a constant force is suddenly switched on.
Completing the square. When a quadratic denominator doesn't factor over the reals, complete the square and use the shift rule L{e^(at)f(t)} = F(s − a). For example,
Y = (s + 1)/(s2 + 2s + 5) = (s + 1)/((s + 1)2 + 4)
which matches the cosine transform shifted by a = −1: y = e^(−t) cos 2t.
Switching on and off. The unit step function u(t − a), which jumps from 0 to 1 at t = a, has transform e^(−as)/s. Forcing that switches on at a later time, or impulses modeled by the Dirac delta (transform 1), fit naturally into this method. That's why Laplace transforms are standard in electrical and control engineering.
Step 7 of 13Practice · Fill in the blanks
Fill in the blanks
Using the shift rule, the inverse Laplace transform of 3/((s − 2)2 + 9) is e^()·sin(3t).
Step 8 of 13Note
Step 9 of 13Practice · Diagram
Where the poles are tells you how y(t) behaves
Locate the poles of Y(s) in the complex s-plane. Tap each region.
Y(s) has poles at s = −1 ± 3i. Which behavior does y(t) show?
Tap the shape that answers the question, then press Check.
- Decaying oscillation
Poles α ± βi with α < 0: e^(αt) times sin or cos βt shrinks.
- Growing oscillation
α > 0: unstable, the swings grow.
- Pure decay
A pole at s = a < 0 gives e^(at) → 0.
- Pure growth
A pole at s = a > 0 gives e^(at) → ∞.
Step 10 of 13Practice · Put in order
Put the steps of solving an IVP with Laplace transforms in order.
Drag the items, or use the arrow buttons, to put them in order.
- Transform each term, inserting the initial conditions
- Solve the algebraic equation for Y(s)
- Look up each piece in the table to find y(t)
- Split Y(s) into partial fractions or complete the square
- Check the answer against the initial conditions
Step 11 of 13Diagram
The Laplace round trip
Hard calculus in the t-world becomes algebra in the s-world, then comes back.
Tap a shape with to see more.
- ODE + initial conditions in t
For example y″ + y = 0, y(0) = 1, y′(0) = 0.
- Transform both sides
Derivatives become s·Y minus initial values.
- Solve algebraically for Y(s)
Collect Y terms and divide.
- Partial fractions / complete the square
Break Y(s) into table entries.
- Invert to get y(t)
Read each piece back from the table.
Step 12 of 13Note
Step 13 of 13Practice · Choose one
Which Y(s) results from transforming y″ − y = 0 with y(0) = 2 and y′(0) = 0?
Lesson complete!