Fiveable

Linear Algebra and Differential Equations Unit 11 Review

QR code for Linear Algebra and Differential Equations practice questions

11.3 Solving Differential Equations with Laplace Transforms

11.3 Solving Differential Equations with Laplace Transforms

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
Linear Algebra and Differential Equations
Unit & Topic Study Guides

Laplace Transforms for Initial Value Problems

Laplace transforms convert differential equations into algebraic equations, making them far easier to solve. Instead of working with derivatives directly, you transform the problem into the s-domain, solve with algebra, then transform back. This approach is especially powerful because it bakes initial conditions right into the process and handles discontinuous forcing functions that would be painful to deal with using classical methods.

Fundamentals of Laplace Transforms

The Laplace transform converts a function of time f(t)f(t) into a function of the complex frequency variable ss:

L{f(t)}=F(s)=0estf(t)dt\mathcal{L}\{f(t)\} = F(s) = \int_0^{\infty} e^{-st} f(t)\, dt

Two properties make this useful for differential equations:

  • Linearity: L{af(t)+bg(t)}=aF(s)+bG(s)\mathcal{L}\{af(t) + bg(t)\} = aF(s) + bG(s), where aa and bb are constants
  • Derivative transforms: These are what actually let you convert a DE into algebra. The key formulas are:
    • L{f(t)}=sF(s)f(0)\mathcal{L}\{f'(t)\} = sF(s) - f(0)
    • L{f(t)}=s2F(s)sf(0)f(0)\mathcal{L}\{f''(t)\} = s^2F(s) - sf(0) - f'(0)

Notice how the initial conditions f(0)f(0) and f(0)f'(0) appear directly in the derivative formulas. That's why you don't need to solve for them separately at the end.

Application to Initial Value Problems

The general strategy converts an IVP into an algebraic equation in ss, solves for Y(s)Y(s), then inverts back to get y(t)y(t). Here's the step-by-step process:

  1. Take the Laplace transform of both sides of the differential equation, substituting the derivative formulas and plugging in your initial conditions.
  2. Solve for Y(s)Y(s) algebraically (collect terms, factor, isolate Y(s)Y(s)).
  3. Decompose Y(s)Y(s) using partial fractions if needed, so each piece matches a known inverse transform.
  4. Apply the inverse Laplace transform to each term to recover y(t)y(t).

This works for constant, exponential, sinusoidal, and many other types of forcing functions.

Worked Example

Solve y+4y=2sin(3t)y'' + 4y = 2\sin(3t), with y(0)=1y(0) = 1, y(0)=0y'(0) = 0.

Step 1: Take the Laplace transform of both sides. Using L{y}=s2Y(s)sy(0)y(0)\mathcal{L}\{y''\} = s^2Y(s) - sy(0) - y'(0) and L{sin(3t)}=3s2+9\mathcal{L}\{\sin(3t)\} = \frac{3}{s^2+9}:

s2Y(s)s(1)0+4Y(s)=6s2+9s^2Y(s) - s(1) - 0 + 4Y(s) = \frac{6}{s^2 + 9}

Step 2: Solve for Y(s)Y(s):

(s2+4)Y(s)=s+6s2+9(s^2 + 4)Y(s) = s + \frac{6}{s^2 + 9}

Y(s)=ss2+4+6(s2+4)(s2+9)Y(s) = \frac{s}{s^2 + 4} + \frac{6}{(s^2 + 4)(s^2 + 9)}

Step 3: Use partial fractions on the second term. Since s2+9s^2 + 9 and s2+4s^2 + 4 differ by 5:

6(s2+4)(s2+9)=65(1s2+41s2+9)\frac{6}{(s^2+4)(s^2+9)} = \frac{6}{5}\left(\frac{1}{s^2+4} - \frac{1}{s^2+9}\right)

Step 4: Invert each piece using L1{ωs2+ω2}=sin(ωt)\mathcal{L}^{-1}\left\{\frac{\omega}{s^2+\omega^2}\right\} = \sin(\omega t):

y(t)=cos(2t)+6512sin(2t)6513sin(3t)y(t) = \cos(2t) + \tfrac{6}{5}\cdot\tfrac{1}{2}\sin(2t) - \tfrac{6}{5}\cdot\tfrac{1}{3}\sin(3t)

y(t)=cos(2t)+35sin(2t)25sin(3t)y(t) = \cos(2t) + \tfrac{3}{5}\sin(2t) - \tfrac{2}{5}\sin(3t)

Solving Differential Equations with Discontinuous Forcing

Fundamentals of Laplace Transforms, Standard form of 2nd order transfer function (Laplace transform)? - Electrical Engineering Stack ...

Representing Discontinuous Functions

Many real-world inputs switch on or off abruptly. The unit step function (also called the Heaviside function) is the building block for representing these:

u(ta)={0t<a1tau(t-a) = \begin{cases} 0 & t < a \\ 1 & t \geq a \end{cases}

Its Laplace transform is L{u(ta)}=eass\mathcal{L}\{u(t-a)\} = \frac{e^{-as}}{s}.

You can build piecewise functions from combinations of step functions. For example, suppose:

f(t)={t0t<24t2f(t) = \begin{cases} t & 0 \leq t < 2 \\ 4 & t \geq 2 \end{cases}

Rewrite this as f(t)=t+(4t)u(t2)f(t) = t + (4 - t)\,u(t-2). The idea is that u(t2)u(t-2) "turns on" at t=2t = 2 and the term (4t)(4 - t) corrects the function from tt to 44 at that moment.

A related tool is the second shifting theorem: if L{f(t)}=F(s)\mathcal{L}\{f(t)\} = F(s), then

L{f(ta)u(ta)}=easF(s)\mathcal{L}\{f(t-a)\,u(t-a)\} = e^{-as}F(s)

This lets you transform shifted, switched-on functions directly.

Laplace Transform Method for Discontinuous Forcing

The real advantage here is that you don't need to solve the DE separately on each interval and then match conditions at the breakpoints. The step functions and exponentials in ss handle everything in one pass.

Solve y+2y+y=u(tπ)y'' + 2y' + y = u(t-\pi), with y(0)=0y(0) = 0, y(0)=0y'(0) = 0.

Step 1: Transform both sides. With zero initial conditions, the left side simplifies:

(s2+2s+1)Y(s)=eπss(s^2 + 2s + 1)Y(s) = \frac{e^{-\pi s}}{s}

Step 2: Solve for Y(s)Y(s). Note that s2+2s+1=(s+1)2s^2 + 2s + 1 = (s+1)^2:

Y(s)=eπss(s+1)2Y(s) = \frac{e^{-\pi s}}{s(s+1)^2}

Step 3: Decompose 1s(s+1)2\frac{1}{s(s+1)^2} with partial fractions:

1s(s+1)2=1s1s+11(s+1)2\frac{1}{s(s+1)^2} = \frac{1}{s} - \frac{1}{s+1} - \frac{1}{(s+1)^2}

Step 4: Invert. Without the exponential factor, L1{1s(s+1)2}=1ettet\mathcal{L}^{-1}\left\{\frac{1}{s(s+1)^2}\right\} = 1 - e^{-t} - te^{-t}. The factor eπse^{-\pi s} shifts everything by π\pi and multiplies by u(tπ)u(t-\pi):

y(t)=[1e(tπ)(tπ)e(tπ)]u(tπ)y(t) = \left[1 - e^{-(t-\pi)} - (t-\pi)e^{-(t-\pi)}\right]u(t-\pi)

The solution is identically zero for t<πt < \pi, then responds once the step input kicks in.

Particular Solutions to Non-homogeneous Equations

Laplace Transform Approach

For a non-homogeneous equation like y+ay+by=g(t)y'' + ay' + by = g(t), the Laplace transform method finds the complete solution (homogeneous + particular) in one shot, since initial conditions are built in.

Solve y+4y=2ety'' + 4y = 2e^{-t}, with y(0)=1y(0) = 1, y(0)=0y'(0) = 0.

Step 1: Transform:

s2Y(s)s+4Y(s)=2s+1s^2Y(s) - s + 4Y(s) = \frac{2}{s+1}

Step 2: Solve for Y(s)Y(s):

Y(s)=ss2+4+2(s+1)(s2+4)Y(s) = \frac{s}{s^2+4} + \frac{2}{(s+1)(s^2+4)}

Step 3: Partial fractions on the second term:

2(s+1)(s2+4)=251s+125ss2+4+251s2+4\frac{2}{(s+1)(s^2+4)} = \frac{2}{5}\cdot\frac{1}{s+1} - \frac{2}{5}\cdot\frac{s}{s^2+4} + \frac{2}{5}\cdot\frac{1}{s^2+4}

Step 4: Invert:

y(t)=cos(2t)+25et25cos(2t)+15sin(2t)y(t) = \cos(2t) + \tfrac{2}{5}e^{-t} - \tfrac{2}{5}\cos(2t) + \tfrac{1}{5}\sin(2t)

y(t)=35cos(2t)+15sin(2t)+25ety(t) = \tfrac{3}{5}\cos(2t) + \tfrac{1}{5}\sin(2t) + \tfrac{2}{5}e^{-t}

You can verify: as tt \to \infty, the exponential term decays and only the oscillatory part remains. The ete^{-t} piece is the transient response to the forcing, while the trig terms come from both the initial conditions and the system's natural frequency.

Fundamentals of Laplace Transforms, laplace transform - Unit step function value - Mathematics Stack Exchange

Comparison with Classical Methods

For certain forcing functions (polynomials, exponentials, sines/cosines), the method of undetermined coefficients also works. For example, to find a particular solution to y+y=t2y'' + y = t^2:

  1. Guess the form yp=At2+Bt+Cy_p = At^2 + Bt + C.
  2. Compute yp=2Ay_p'' = 2A.
  3. Substitute: 2A+At2+Bt+C=t22A + At^2 + Bt + C = t^2.
  4. Match coefficients: A=1A = 1, B=0B = 0, 2A+C=0C=22A + C = 0 \Rightarrow C = -2.
  5. Result: yp=t22y_p = t^2 - 2.

The Laplace method is generally more efficient when you have initial conditions, discontinuous forcing, or complicated right-hand sides. Undetermined coefficients can be quicker for simple forcing functions when you only need the particular solution form.

Interpreting Solutions in Context

Physical Interpretations

Solutions to these DEs model real systems: spring-mass-damper mechanisms, RLC circuits, control systems, and more. The structure of y(t)y(t) tells you about the system's behavior:

  • Transient terms (like eζωntcos(ωdt+ϕ)e^{-\zeta\omega_n t}\cos(\omega_d t + \phi)) decay over time and represent the system settling from its initial state. The damping ratio ζ\zeta controls how fast they fade.
  • Steady-state terms persist and represent the system's long-term response to the forcing function. For a constant force on a spring, this is just the static displacement F/kF/k.
  • Poles of Y(s)Y(s) in the s-domain reveal stability. If all poles have negative real parts, the system is stable (transients decay). Poles with positive real parts mean the response grows without bound.

The final value theorem gives a quick check on long-term behavior: limty(t)=lims0sY(s)\lim_{t\to\infty} y(t) = \lim_{s\to 0} sY(s), provided the limit exists (all poles of sY(s)sY(s) in the left half-plane).

Analyzing Discontinuous Solutions

When the forcing function has discontinuities, the solution typically shows distinct behavior before and after each switch point. For a step input that turns on at t=at = a:

  • For t<at < a, the system responds only to initial conditions (free response).
  • For tat \geq a, the forced response begins and eventually dominates.

A practical example: in a temperature control system, a thermostat switching on at t=at = a acts like a step input. The solution shows the system at ambient temperature before t=at = a, then a transient rise toward the target temperature afterward. The exponential terms in the shifted solution u(ta)[]u(t-a)[\cdots] capture exactly how quickly the system approaches its new equilibrium.