PracticeVideosBlogFlashcards

1.3 Ordinary Differential Equations and Laplace Transforms

Key Takeaways

  • A first-order linear ODE dy/dx + p(x)y = q(x) is solved with the integrating factor exp(integral of p dx).

  • The characteristic equation of ay'' + by' + cy = 0 determines whether the response is overdamped (two real roots), critically damped (one repeated root), or underdamped (complex roots).

  • For a second-order system the natural frequency is sqrt(k/m) and the damping behavior follows from the discriminant b^2 - 4ac.

  • Laplace transforms convert a linear ODE with constant coefficients into an algebraic equation in s, where L{y'} = sY(s) - y(0).

  • Exponential decay problems (radioactive half-life, first-order reactions, RC discharge, Newton cooling) all reduce to the same separable ODE.

Last updated: August 2026

1.3 Ordinary Differential Equations and Laplace Transforms

Differential equations are named explicitly in the NCEES Mathematics specification (area 1, sub-topic B). On the FE Other Disciplines exam they rarely ask you to derive a solution from scratch — they ask you to classify the equation, pick the right solution form, and evaluate a constant from an initial condition. Every dynamic model elsewhere in this guide reduces to one of the forms below: a mixing tank, an RC or RL circuit transient, a cooling body, a decaying isotope, and a damped mass-spring system.

Classification: What Kind of Equation Is This?

FeatureQuestion to askConsequence
OrderHighest derivative present?Number of arbitrary constants in the general solution
Linear vs. nonlinearDo yy and its derivatives appear only to the first power, with no products of yy terms?Linear equations superpose; nonlinear ones do not
Homogeneous vs. non-homogeneousIs the forcing term on the right side zero?Non-homogeneous needs a particular solution added
Constant vs. variable coefficientsAre the coefficients numbers or functions of xx?Constant coefficients allow the characteristic-equation shortcut

Separable First-Order Equations

If the equation can be written dydx=g(x)h(y)\dfrac{dy}{dx} = g(x)h(y), separate and integrate:

∫dyh(y)=∫g(x) dx+C\int \frac{dy}{h(y)} = \int g(x)\,dx + C

The single most valuable case on the FE exam is exponential growth and decay:

dydt=ky⟹y(t)=y0ekt\frac{dy}{dt} = k y \quad\Longrightarrow\quad y(t) = y_0 e^{kt}

With k<0k < 0 this is decay, and the half-life relationship follows directly from setting y=y0/2y = y_0/2:

t1/2=ln⁡2∣k∣=0.693∣k∣t_{1/2} = \frac{\ln 2}{|k|} = \frac{0.693}{|k|}

Cross-topic payoff: this identical formula appears in the Safety, Health, and Environment area for radiation half-life, in Chemistry for first-order reaction kinetics, and in Basic Electrical Engineering for RC discharge with ∣k∣=1/(RC)|k| = 1/(RC). Learn it once, score it three times.

First-Order Linear Equations: Integrating Factor

Put the equation in standard form, then multiply through by the integrating factor μ(x)\mu(x):

dydx+p(x) y=q(x),μ(x)=e∫p(x) dx\frac{dy}{dx} + p(x)\,y = q(x), \qquad \mu(x) = e^{\int p(x)\,dx} y(x)=1μ(x)[∫μ(x) q(x) dx+C]y(x) = \frac{1}{\mu(x)}\left[\int \mu(x)\,q(x)\,dx + C\right]

For the very common constant-coefficient case y′+ay=by' + a y = b (a tank filling, a capacitor charging, a body cooling toward ambient), the solution is the sum of a steady-state value and a decaying transient:

y(t)=ba+(y0−ba)e−aty(t) = \frac{b}{a} + \left(y_0 - \frac{b}{a}\right)e^{-at}

Read that structure. The first term is where the system ends up; the second is how it gets there, decaying with time constant τ=1/a\tau = 1/a. After t=τt = \tau the transient has fallen to 36.8% of its initial size; after 3τ3\tau, to about 5%.

Worked Example: Newton's Law of Cooling

A steel casting at 500∘C500^\circ\text{C} is placed in a 25∘C25^\circ\text{C} room. After 10 minutes it has cooled to 350∘C350^\circ\text{C}. What is its temperature after 30 minutes?

Newton's law of cooling gives dTdt=−k (T−T∞)\dfrac{dT}{dt} = -k\,(T - T_\infty), so with θ=T−T∞\theta = T - T_\infty:

θ(t)=θ0e−kt,θ0=500−25=475∘C\theta(t) = \theta_0 e^{-kt}, \qquad \theta_0 = 500 - 25 = 475^\circ\text{C}

Find kk from the 10-minute data point, where θ(10)=350−25=325∘C\theta(10) = 350 - 25 = 325^\circ\text{C}:

325475=e−10k  ⇒  −10k=ln⁡(0.6842)=−0.3795  ⇒  k=0.03795 min−1\frac{325}{475} = e^{-10k} \;\Rightarrow\; -10k = \ln(0.6842) = -0.3795 \;\Rightarrow\; k = 0.03795\ \text{min}^{-1}

At t=30t = 30 min:

θ(30)=475 e−(0.03795)(30)=475 e−1.1385=475(0.3203)=152.1∘C\theta(30) = 475\,e^{-(0.03795)(30)} = 475\,e^{-1.1385} = 475(0.3203) = 152.1^\circ\text{C} T(30)=152.1+25=177∘CT(30) = 152.1 + 25 = \boxed{177^\circ\text{C}}

Trap: the exponential decays toward zero in θ\theta, not in TT. Candidates who write T=500e−ktT = 500e^{-kt} and forget to subtract the ambient temperature get 160∘C160^\circ\text{C} — which is offered as a distractor.

Second-Order Linear Equations with Constant Coefficients

For ay′′+by′+cy=0a y'' + b y' + c y = 0, substitute y=erxy = e^{rx} to get the characteristic equation:

ar2+br+c=0,r=−b±b2−4ac2aa r^2 + b r + c = 0, \qquad r = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

The discriminant decides everything:

DiscriminantRootsGeneral solutionPhysical behavior
b2−4ac>0b^2 - 4ac > 0Real, distinct r1≠r2r_1 \ne r_2y=C1er1x+C2er2xy = C_1 e^{r_1 x} + C_2 e^{r_2 x}Overdamped — returns slowly, no oscillation
b2−4ac=0b^2 - 4ac = 0Real, repeated rry=(C1+C2x)erxy = (C_1 + C_2 x)e^{rx}Critically damped — fastest non-oscillating return
b2−4ac<0b^2 - 4ac < 0Complex α±jβ\alpha \pm j\betay=eαx(C1cos⁡βx+C2sin⁡βx)y = e^{\alpha x}(C_1\cos\beta x + C_2\sin\beta x)Underdamped — decaying oscillation

The Mass-Spring-Damper Standard Form

Writing mx¨+cx˙+kx=0m\ddot{x} + c\dot{x} + kx = 0 in normalized form exposes the two parameters the exam asks about:

x¨+2ζωnx˙+ωn2x=0,ωn=km,ζ=c2km\ddot{x} + 2\zeta\omega_n \dot{x} + \omega_n^2 x = 0, \qquad \omega_n = \sqrt{\frac{k}{m}}, \qquad \zeta = \frac{c}{2\sqrt{km}}
  • ζ=0\zeta = 0: undamped, oscillates forever at ωn\omega_n
  • 0<ζ<10 < \zeta < 1: underdamped, oscillates at the damped frequency ωd=ωn1−ζ2\omega_d = \omega_n\sqrt{1-\zeta^2}
  • ζ=1\zeta = 1: critically damped
  • ζ>1\zeta > 1: overdamped

Non-Homogeneous Equations

The complete solution is y=yh+ypy = y_h + y_p: the homogeneous solution above plus a particular solution matched to the forcing function.

Forcing term f(x)f(x)Trial particular solution ypy_p
Constant AAyp=Ky_p = K
Polynomial of degree nnPolynomial of degree nn
AekxAe^{kx}yp=Kekxy_p = Ke^{kx}
Asin⁡ωxA\sin\omega x or Acos⁡ωxA\cos\omega xyp=K1sin⁡ωx+K2cos⁡ωxy_p = K_1\sin\omega x + K_2\cos\omega x

Trap: if the trial form already appears in yhy_h (resonance), multiply the trial by xx before solving for the coefficients.

Laplace Transforms

The Reference Handbook supplies a transform table, so the method is mechanical: transform, solve algebraically for Y(s)Y(s), invert.

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

The two derivative properties are what make it useful — initial conditions enter automatically:

L{f′(t)}=sF(s)−f(0),L{f′′(t)}=s2F(s)−sf(0)−f′(0)\mathcal{L}\{f'(t)\} = sF(s) - f(0), \qquad \mathcal{L}\{f''(t)\} = s^2F(s) - sf(0) - f'(0)
f(t)f(t)F(s)F(s)
δ(t)\delta(t) (unit impulse)11
u(t)u(t) (unit step)1/s1/s
tt1/s21/s^2
e−ate^{-at}1/(s+a)1/(s+a)
sin⁡ωt\sin\omega tω/(s2+ω2)\omega/(s^2+\omega^2)
cos⁡ωt\cos\omega ts/(s2+ω2)s/(s^2+\omega^2)
te−att e^{-at}1/(s+a)21/(s+a)^2

Two shortcuts worth memorizing: the final value theorem lim⁡t→∞f(t)=lim⁡s→0sF(s)\displaystyle\lim_{t\to\infty} f(t) = \lim_{s\to 0} sF(s), and the initial value theorem lim⁡t→0+f(t)=lim⁡s→∞sF(s)\displaystyle\lim_{t\to 0^+} f(t) = \lim_{s\to\infty} sF(s). Both let you answer "what is the steady-state response?" without inverting anything.

Worked Example: Step Response by Laplace Transform

Solve y′+3y=6y' + 3y = 6 with y(0)=0y(0) = 0.

Transform both sides:

sY(s)−0+3Y(s)=6s  ⇒  Y(s)(s+3)=6s  ⇒  Y(s)=6s(s+3)sY(s) - 0 + 3Y(s) = \frac{6}{s} \;\Rightarrow\; Y(s)(s+3) = \frac{6}{s} \;\Rightarrow\; Y(s) = \frac{6}{s(s+3)}

Partial fractions: 6s(s+3)=2s−2s+3\dfrac{6}{s(s+3)} = \dfrac{2}{s} - \dfrac{2}{s+3}. Inverting term by term:

y(t)=2−2e−3ty(t) = 2 - 2e^{-3t}

Check against the standard form y=b/a+(y0−b/a)e−aty = b/a + (y_0 - b/a)e^{-at} with a=3a = 3, b=6b = 6, y0=0y_0 = 0: y=2+(0−2)e−3ty = 2 + (0-2)e^{-3t}. Same answer. Confirm the steady state with the final value theorem: lim⁡s→0s⋅6s(s+3)=63=2\lim_{s\to0} s\cdot\frac{6}{s(s+3)} = \frac{6}{3} = 2. ✓

Additional First-Order ODE Practice

Separable First-Order ODEs

An ODE is separable if it can be written as dydx=g(x)h(y)\frac{dy}{dx} = g(x)h(y), solved by separating variables:

∫1h(y)dy=∫g(x)dx+C\int \frac{1}{h(y)} dy = \int g(x) dx + C

First-Order Linear ODEs (Integrating Factor Method)

Standard form:

dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x)
  1. Compute integrating factor I(x)=e∫P(x)dxI(x) = e^{\int P(x)dx}.
  2. Multiply standard ODE by I(x)I(x) to obtain ddx[I(x)y]=I(x)Q(x)\frac{d}{dx}[I(x)y] = I(x)Q(x).
  3. Integrate both sides: y(x)=1I(x)[∫I(x)Q(x)dx+C]y(x) = \frac{1}{I(x)} \left[ \int I(x) Q(x) dx + C \right]

Additional Second-Order ODE Practice

Standard homogeneous form:

ad2ydt2+bdydt+cy=0a \frac{d^2 y}{dt^2} + b \frac{dy}{dt} + c y = 0

Substitute trial solution y=erty = e^{rt} to form the characteristic (auxiliary) equation:

ar2+br+c=0  ⟹  r1,2=−b±b2−4ac2aa r^2 + b r + c = 0 \implies r_{1,2} = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
Discriminant Δ=b2−4ac\Delta = b^2 - 4acRoots r1,r2r_1, r_2Physical System State (Damping)General Solution y(t)y(t)
Δ>0\Delta > 0Real and distinctOverdampedy(t)=C1er1t+C2er2ty(t) = C_1 e^{r_1 t} + C_2 e^{r_2 t}
Δ=0\Delta = 0Real and repeated (r1=r2=rr_1 = r_2 = r)Critically Dampedy(t)=(C1+C2t)erty(t) = (C_1 + C_2 t) e^{r t}
Δ<0\Delta < 0Complex conjugates (r=α±iβr = \alpha \pm i\beta)Underdamped (Oscillatory)y(t)=eαt(C1cos⁡βt+C2sin⁡βt)y(t) = e^{\alpha t} (C_1 \cos\beta t + C_2 \sin\beta t); (where α=−b2a\alpha = -\frac{b}{2a}, β=4ac−b22a\beta = \frac{\sqrt{4ac - b^2}}{2a})

Non-Homogeneous Second-Order ODEs

For ay′′+by′+cy=f(t)a y'' + b y' + c y = f(t), the total solution is y(t)=yh(t)+yp(t)y(t) = y_h(t) + y_p(t), where yh(t)y_h(t) is the general solution to the homogeneous equation and yp(t)y_p(t) is a particular solution found using the Method of Undetermined Coefficients.


Worked Engineering Problems

Worked Example 1: Transient Fluid Tank Mixing (First-Order ODE)

Problem: A 100-liter storage tank initially contains pure water (y(0)=0 kgy(0) = 0\text{ kg} of salt). Salt brine containing 0.5 kg/L0.5\text{ kg/L} concentration flows into the tank at 4 L/min4\text{ L/min}. The well-mixed solution flows out at 4 L/min4\text{ L/min}. Set up and solve the differential equation for salt mass y(t)y(t) in the tank at any time tt.

Solution:

Step 1: Set up mass balance rate equation dydt=Rate In−Rate Out\frac{dy}{dt} = \text{Rate In} - \text{Rate Out}.

Rate In=(0.5 kg/L)×(4 L/min)=2.0 kg/min\text{Rate In} = (0.5\text{ kg/L}) \times (4\text{ L/min}) = 2.0\text{ kg/min} Rate Out=(y(t)100 kg/L)×(4 L/min)=0.04y(t) kg/min\text{Rate Out} = \left(\frac{y(t)}{100}\text{ kg/L}\right) \times (4\text{ L/min}) = 0.04 y(t)\text{ kg/min} dydt=2−0.04y  ⟹  dydt+0.04y=2\frac{dy}{dt} = 2 - 0.04y \implies \frac{dy}{dt} + 0.04y = 2

Step 2: Identify integrating factor I(t)I(t).

P(t)=0.04  ⟹  I(t)=e∫0.04dt=e0.04tP(t) = 0.04 \implies I(t) = e^{\int 0.04 dt} = e^{0.04t}

Step 3: Multiply and integrate.

ddt[e0.04ty]=2e0.04t\frac{d}{dt}\left[ e^{0.04t} y \right] = 2 e^{0.04t} ≠0.04ty=∫2e0.04tdt=20.04e0.04t+C=50e0.04t+C\ne^{0.04t} y = \int 2 e^{0.04t} dt = \frac{2}{0.04} e^{0.04t} + C = 50 e^{0.04t} + C y(t)=50+Ce−0.04ty(t) = 50 + C e^{-0.04t}

Step 4: Apply initial condition y(0)=0y(0) = 0.

0=50+Ce0  ⟹  C=−500 = 50 + C e^0 \implies C = -50 y(t)=50(1−e−0.04t) kgy(t) = 50(1 - e^{-0.04t})\text{ kg}

Worked Example 2: Damped Mass-Spring Mechanical System (Second-Order ODE)

Problem: A 1 kg1\text{ kg} mass on a shock absorber system satisfies y′′+6y′+13y=0y'' + 6y' + 13y = 0, where y(t)y(t) is displacement in meters. Given initial displacement y(0)=2 my(0) = 2\text{ m} and initial velocity y′(0)=0 m/sy'(0) = 0\text{ m/s}, find y(t)y(t).

Solution:

Step 1: Solve characteristic equation r2+6r+13=0r^2 + 6r + 13 = 0.

r=−6±36−4(1)(13)2=−6±36−522=−6±−162=−3±2ir = \frac{-6 \pm \sqrt{36 - 4(1)(13)}}{2} = \frac{-6 \pm \sqrt{36 - 52}}{2} = \frac{-6 \pm \sqrt{-16}}{2} = -3 \pm 2i

Here α=−3\alpha = -3 and β=2\beta = 2 (Underdamped response).

Step 2: Form general underdamped solution.

y(t)=e−3t(C1cos⁡2t+C2sin⁡2t)y(t) = e^{-3t}(C_1 \cos 2t + C_2 \sin 2t)

Step 3: Apply initial condition y(0)=2y(0) = 2.

y(0)=e0(C1cos⁡0+C2sin⁡0)=C1=2y(0) = e^0 (C_1 \cos 0 + C_2 \sin 0) = C_1 = 2

Step 4: Differentiate y(t)y(t) and apply y′(0)=0y'(0) = 0.

y′(t)=−3e−3t(C1cos⁡2t+C2sin⁡2t)+e−3t(−2C1sin⁡2t+2C2cos⁡2t)y'(t) = -3e^{-3t}(C_1 \cos 2t + C_2 \sin 2t) + e^{-3t}(-2C_1 \sin 2t + 2C_2 \cos 2t) y′(0)=−3(1)(C1)+1(2C2)=−3(2)+2C2=−6+2C2=0  ⟹  C2=3y'(0) = -3(1)(C_1) + 1(2C_2) = -3(2) + 2C_2 = -6 + 2C_2 = 0 \implies C_2 = 3

Final Solution:

y(t)=e−3t(2cos⁡2t+3sin⁡2t) my(t) = e^{-3t}(2 \cos 2t + 3 \sin 2t)\text{ m}
Test Your Knowledge

Find the particular solution to the first-order linear differential equation dy/dx + 2y = 6 with initial condition y(0) = 5.

A

y(x) = 3 + 5e^(-2x)

B

y(x) = 6 - e^(-2x)

C

y(x) = 2 + 3e^(2x)

D

y(x) = 3 + 2e^(-2x)

Test Your Knowledge

Classify the system behavior and characteristic roots of the homogeneous ordinary differential equation y'' + 6y' + 9y = 0.

A

Critically damped system with repeated real root r = -3

B

Overdamped system with distinct real roots r = -1 and r = -9

C

Underdamped system with complex conjugate roots r = -3 ± 3i

D

Undamped system with purely imaginary roots r = ±3i

Test Your Knowledge

A radioactive tracer decays with a half-life of 8.0 days. What fraction of the original activity remains after 20 days?

A

0.177

B

0.400

C

0.250

D

0.324

Test Your Knowledge

For the equation 2y'' + 8y' + 8y = 0, what is the character of the solution?

A

Underdamped, giving a decaying oscillation

B

Undamped, oscillating at constant amplitude

C

Overdamped, with two distinct real roots

D

Critically damped, with a repeated real root

Test Your Knowledge

A mass-spring system has m = 4 kg and k = 400 N/m with negligible damping. What is its natural frequency?

A

100 rad/s

B

1.59 rad/s

C

31.8 rad/s

D

10 rad/s

Test Your Knowledge

Applying the Laplace transform to y'' with initial conditions y(0) and y'(0) produces which expression?

A

s^2 Y(s) - s y(0) - y'(0)

B

s^2 Y(s) + s y(0) + y'(0)

C

s^2 Y(s) - y(0) - s y'(0)

D

s^2 Y(s) only, because initial conditions are applied after inversion

Sections you finish are checked off in the contents.