PracticeVideosBlogFlashcards

3.3 Ordinary Differential Equations & Initial-Value Problems

Key Takeaways

  • Ordinary differential equations (ODEs) categorize dynamic physical systems by order, degree, and linearity, modeling electrical circuit transient behavior.

  • First-order ODE solution methods include Separation of Variables, Exactness testing, Integrating Factors (I(x)=e∫P dxI(x) = e^{\int P \, dx}), and Bernoulli substitutions.

  • Second-order linear ODEs with constant coefficients ay′′+by′+cy=0a y'' + b y' + c y = 0 yield overdamped, critically damped, or underdamped responses determined by the characteristic discriminant.

  • Non-homogeneous ODEs (ay′′+by′+cy=g(t)a y'' + b y' + c y = g(t)) have general solution y(t)=yh(t)+yp(t)y(t) = y_h(t) + y_p(t), solved via Undetermined Coefficients or Variation of Parameters.

  • In electrical circuits, time constants τ=L/R\tau = L/R (RL circuits) and τ=RC\tau = RC (RC circuits) govern exponential growth and decay rates of transient current and voltage.

Last updated: August 2026

3.3 Ordinary Differential Equations & Initial-Value Problems

Ordinary Differential Equations (ODEs) form the dynamic mathematical backbone of electrical engineering. Transient phenomena in electrical circuits containing energy storage elements (inductors and capacitors), control systems, electrical machinery dynamics, and electromagnetic waves are modeled by ordinary differential equations.


1. Classification of Differential Equations

  • Order: The order of the highest derivative present in the equation.
  • Degree: The algebraic exponent of the highest-order derivative after removing fractional exponents.
  • Linearity: An ODE is linear if the dependent variable yy and its derivatives appear only to the first power and are not multiplied together (e.g., an(x)y(n)+⋯+a1(x)y′+a0(x)y=g(x)a_n(x) y^{(n)} + \dots + a_1(x) y' + a_0(x) y = g(x)).
  • Homogeneity: Homogeneous if g(x)=0g(x) = 0; non-homogeneous if g(x)≠0g(x) \neq 0.

2. First-Order Differential Equations

1. Variable Separable ODEs

Form: dydx=g(x)h(y)  ⟹  ∫dyh(y)=∫g(x) dx+C\frac{dy}{dx} = g(x) h(y) \implies \int \frac{dy}{h(y)} = \int g(x) \, dx + C

2. Exact Differential Equations

Form: M(x,y) dx+N(x,y) dy=0M(x,y)\,dx + N(x,y)\,dy = 0

  • Test for Exactness: ∂M∂y=∂N∂x\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}
  • Solution is given by potential function Φ(x,y)=C\Phi(x,y) = C where ∂Φ∂x=M\frac{\partial \Phi}{\partial x} = M and ∂Φ∂y=N\frac{\partial \Phi}{\partial y} = N.
  • If not exact, an Integrating Factor μ(x)=e∫My−NxN dx\mu(x) = e^{\int \frac{M_y - N_x}{N} \, dx} converts it to an exact ODE.

3. First-Order Linear ODEs

Standard Form:

dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x)
  • Integrating Factor: I(x)=e∫P(x) dxI(x) = e^{\int P(x) \, dx}
  • General Solution: y⋅I(x)=∫Q(x)I(x) dx+C  ⟹  y(x)=e−∫Pdx[∫Q(x)e∫Pdx dx+C]y \cdot I(x) = \int Q(x) I(x) \, dx + C \implies y(x) = e^{-\int P dx} \left[ \int Q(x) e^{\int P dx} \, dx + C \right]

4. Bernoulli Equations

Form: dydx+P(x)y=Q(x)yn(n≠0,1)\frac{dy}{dx} + P(x)y = Q(x)y^n \quad (n \neq 0, 1)

  • Substitution u=y1−nu = y^{1-n} transforms the non-linear equation into a linear ODE in terms of u(x)u(x): dudx+(1−n)P(x)u=(1−n)Q(x)\frac{du}{dx} + (1-n) P(x) u = (1-n) Q(x)

3. Second-Order Linear Homogeneous ODEs with Constant Coefficients

Standard Form:

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

Characteristic (Auxiliary) Equation

Substituting y=erty = e^{rt} yields:

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}

Depending on the discriminant Δ=b2−4ac\Delta = b^2 - 4ac, three distinct physical damping regimes arise:

Discriminant Δ\DeltaRoot CharacteristicsSolution Form yh(t)y_h(t)Physical Transient Response
b2−4ac>0b^2 - 4ac > 0Real & Distinct (r1≠r2r_1 \neq r_2)yh(t)=C1er1t+C2er2ty_h(t) = C_1 e^{r_1 t} + C_2 e^{r_2 t}Overdamped (Slow decay, no oscillation)
b2−4ac=0b^2 - 4ac = 0Real & Repeated (r1=r2=rr_1 = r_2 = r)yh(t)=(C1+C2t)erty_h(t) = (C_1 + C_2 t) e^{r t}Critically Damped (Fastest decay without overshoot)
b2−4ac<0b^2 - 4ac < 0Complex Conjugate (r=α±jβr = \alpha \pm j\beta)yh(t)=eαt(C1cos⁡βt+C2sin⁡βt)y_h(t) = e^{\alpha t} (C_1 \cos \beta t + C_2 \sin \beta t)Underdamped (Decaying sinusoidal oscillations)

Where α=−b2a\alpha = -\frac{b}{2a} (attenuation constant) and β=4ac−b22a\beta = \frac{\sqrt{4ac - b^2}}{2a} (damped angular frequency).


4. Second-Order Non-Homogeneous ODEs

Form: ay′′+by′+cy=g(t)a y'' + b y' + c y = g(t) General Solution: y(t)=yh(t)+yp(t)y(t) = y_h(t) + y_p(t) (Natural Transient + Forced Steady-State Solution).

Method of Undetermined Coefficients

Used when forcing function g(t)g(t) consists of polynomials, exponentials, sines, or cosines:

Forcing Function g(t)g(t)Trial Particular Solution yp(t)y_p(t)
keγtk e^{\gamma t}AeγtA e^{\gamma t}
kntn+⋯+k0k_n t^n + \dots + k_0Antn+An−1tn−1+⋯+A0A_n t^n + A_{n-1} t^{n-1} + \dots + A_0
kcos⁡(ωt)k \cos(\omega t) or ksin⁡(ωt)k \sin(\omega t)Acos⁡(ωt)+Bsin⁡(ωt)A \cos(\omega t) + B \sin(\omega t)

Note: If any term in the trial yp(t)y_p(t) duplicates a term in yh(t)y_h(t), multiply the trial solution by tt (or t2t^2).

Variation of Parameters

Universal method applicable for any continuous forcing function g(t)g(t):

yp(t)=−y1(t)∫y2(t)g(t)W(t) dt+y2(t)∫y1(t)g(t)W(t) dty_p(t) = -y_1(t) \int \frac{y_2(t) g(t)}{W(t)} \, dt + y_2(t) \int \frac{y_1(t) g(t)}{W(t)} \, dt

where the Wronskian is W(t)=y1y2′−y1′y2W(t) = y_1 y_2' - y_1' y_2.


5. Electrical Circuit Applications (Initial-Value Problems)

Series RL Circuit

Governed by Kirchhoff's Voltage Law (KVL):

Ldidt+Ri=V(t)L \frac{di}{dt} + R i = V(t)

For a step DC voltage input V(t)=V0V(t) = V_0 at t=0t = 0 with i(0)=0i(0) = 0:

∋(t)=V0R(1−e−t/τ)where τ=LR (Time Constant)\ni(t) = \frac{V_0}{R} \left(1 - e^{-t/\tau}\right) \quad \text{where } \tau = \frac{L}{R} \text{ (Time Constant)}

Series RC Circuit

Governed by KVL in terms of charge q(t)q(t):

Rdqdt+1Cq=V(t)  ⟹  Rdidt+1Ci=dVdtR \frac{dq}{dt} + \frac{1}{C} q = V(t) \implies R \frac{di}{dt} + \frac{1}{C} i = \frac{dV}{dt}

For a step DC voltage charging a capacitor with initial charge q(0)=0q(0) = 0:

∋(t)=V0Re−t/τwhere τ=RC (Time Constant)\ni(t) = \frac{V_0}{R} e^{-t/\tau} \quad \text{where } \tau = R C \text{ (Time Constant)}

Series RLC Circuit

KVL formulation:

Ld2qdt2+Rdqdt+1Cq=E(t)  ⟹  Ld2idt2+Rdidt+1Ci=dEdtL \frac{d^2q}{dt^2} + R \frac{dq}{dt} + \frac{1}{C} q = E(t) \implies L \frac{d^2i}{dt^2} + R \frac{di}{dt} + \frac{1}{C} i = \frac{dE}{dt}

Key circuit metrics:

  • Undamped natural frequency: ω0=1LC\omega_0 = \frac{1}{\sqrt{L C}}
  • Damping ratio: ζ=R2CL\zeta = \frac{R}{2} \sqrt{\frac{C}{L}}
    • ζ>1  ⟹  \zeta > 1 \implies Overdamped
    • ζ=1  ⟹  \zeta = 1 \implies Critically Damped
    • ζ<1  ⟹  \zeta < 1 \implies Underdamped

Step-by-Step Worked Numerical Examples

Example 3.3.1: First-Order RL Circuit Transient IVP

Problem: A series RL circuit has resistance R=10 ΩR = 10\ \Omega, inductance L=2 HL = 2\text{ H}, and a DC voltage source V=50 VV = 50\text{ V} connected at t=0t = 0. Given initial current i(0)=0 Ai(0) = 0\text{ A}, find i(t)i(t) and calculate the current at t=0.4 secondst = 0.4\text{ seconds}.

Solution:

  1. Formulate ODE: 2didt+10i=50  ⟹  didt+5i=252 \frac{di}{dt} + 10 i = 50 \implies \frac{di}{dt} + 5 i = 25
  2. Find Integrating Factor I(t)I(t): P(t)=5  ⟹  I(t)=e∫5 dt=e5tP(t) = 5 \implies I(t) = e^{\int 5 \, dt} = e^{5t}
  3. Multiply ODE by I(t)I(t) and integrate: ddt(ie5t)=25e5t  ⟹  ie5t=∫25e5t dt=5e5t+C\frac{d}{dt}\left(i e^{5t}\right) = 25 e^{5t} \implies i e^{5t} = \int 25 e^{5t} \, dt = 5 e^{5t} + C i(t)=5+Ce−5ti(t) = 5 + C e^{-5t}
  4. Apply initial condition i(0)=0i(0) = 0: 0=5+C(1)  ⟹  C=−50 = 5 + C(1) \implies C = -5 i(t)=5(1−e−5t) Ai(t) = 5 \left(1 - e^{-5t}\right)\text{ A}
  5. Evaluate at t=0.4 st = 0.4\text{ s}: i(0.4)=5(1−e−5(0.4))=5(1−e−2)=5(1−0.135335)=5(0.864665)=4.3233 Ai(0.4) = 5 \left(1 - e^{-5(0.4)}\right) = 5 \left(1 - e^{-2}\right) = 5 (1 - 0.135335) = 5(0.864665) = 4.3233\text{ A}

Example 3.3.2: RLC Circuit Transient Damping Regime Analysis

Problem: A series RLC circuit has L=1 HL = 1\text{ H} and C=0.25 FC = 0.25\text{ F}. Determine the response regime (overdamped, critically damped, or underdamped) and the natural response qh(t)q_h(t) for R=5 ΩR = 5\ \Omega.

Solution:

  1. Formulate characteristic equation: Lr2+Rr+1C=0  ⟹  1r2+5r+10.25=0  ⟹  r2+5r+4=0L r^2 + R r + \frac{1}{C} = 0 \implies 1 r^2 + 5 r + \frac{1}{0.25} = 0 \implies r^2 + 5r + 4 = 0
  2. Find roots of characteristic equation: (r+1)(r+4)=0  ⟹  r1=−1,r2=−4(r + 1)(r + 4) = 0 \implies r_1 = -1, \quad r_2 = -4
  3. Identify damping regime: Since r1,r2r_1, r_2 are real and distinct (discriminant Δ=52−4(1)(4)=9>0\Delta = 5^2 - 4(1)(4) = 9 > 0), the circuit response is Overdamped.
  4. Write natural transient charge solution: qh(t)=C1e−t+C2e−4tq_h(t) = C_1 e^{-t} + C_2 e^{-4t}

Example 3.3.3: Second-Order Non-Homogeneous Resonant System

Problem: Solve the initial value problem y′′+4y=12cos⁡(2t)y'' + 4y = 12 \cos(2t) with y(0)=0y(0) = 0 and y′(0)=0y'(0) = 0.

Solution:

  1. Homogeneous solution yh(t)y_h(t): r2+4=0  ⟹  r=±j2  ⟹  yh(t)=C1cos⁡(2t)+C2sin⁡(2t)r^2 + 4 = 0 \implies r = \pm j2 \implies y_h(t) = C_1 \cos(2t) + C_2 \sin(2t)
  2. Formulate trial particular solution yp(t)y_p(t): Because forcing term 12cos⁡(2t)12 \cos(2t) duplicates terms in yh(t)y_h(t), multiply trial by tt: yp(t)=t(Acos⁡2t+Bsin⁡2t)y_p(t) = t (A \cos 2t + B \sin 2t)
  3. Differentiate yp(t)y_p(t): yp′=(Acos⁡2t+Bsin⁡2t)+t(−2Asin⁡2t+2Bcos⁡2t)y_p' = (A \cos 2t + B \sin 2t) + t (-2A \sin 2t + 2B \cos 2t) yp′′=−4Asin⁡2t+4Bcos⁡2t+t(−4Acos⁡2t−4Bsin⁡2t)y_p'' = -4A \sin 2t + 4B \cos 2t + t (-4A \cos 2t - 4B \sin 2t)
  4. Substitute into ODE yp′′+4yp=12cos⁡2ty_p'' + 4y_p = 12 \cos 2t: −4Asin⁡2t+4Bcos⁡2t−4yp+4yp=12cos⁡2t-4A \sin 2t + 4B \cos 2t - 4 y_p + 4 y_p = 12 \cos 2t −4Asin⁡2t+4Bcos⁡2t=12cos⁡2t-4A \sin 2t + 4B \cos 2t = 12 \cos 2t Equating coefficients: −4A=0  ⟹  A=0-4A = 0 \implies A = 0, and 4B=12  ⟹  B=34B = 12 \implies B = 3. yp(t)=3tsin⁡(2t)y_p(t) = 3t \sin(2t)
  5. Apply initial conditions to general solution y(t)=C1cos⁡2t+C2sin⁡2t+3tsin⁡2ty(t) = C_1 \cos 2t + C_2 \sin 2t + 3t \sin 2t:
    • y(0)=C1+0+0=0  ⟹  C1=0y(0) = C_1 + 0 + 0 = 0 \implies C_1 = 0
    • y′(t)=2C2cos⁡2t+3sin⁡2t+6tcos⁡2ty'(t) = 2C_2 \cos 2t + 3 \sin 2t + 6t \cos 2t
    • y′(0)=2C2+0+0=0  ⟹  C2=0y'(0) = 2C_2 + 0 + 0 = 0 \implies C_2 = 0
  6. Final Solution: y(t)=3tsin⁡(2t)y(t) = 3t \sin(2t)
Loading diagram...
ODE Classification & Electrical Application Flowchart
Test Your Knowledge

What physical transient response regime is produced in a series RLC circuit when R2>4L/CR^2 > 4L / C?

A

Underdamped (oscillatory decay)

B

Critically damped (fastest non-oscillatory decay)

C

Overdamped (slow non-oscillatory decay)

D

Undamped (sustained oscillation)

Test Your Knowledge

What is the solution to the first-order initial value problem dydx+y=4\frac{dy}{dx} + y = 4 with y(0)=1y(0) = 1?

A

y = 4 + 3 e^(-x)

B

y = 1 + 4 e^(-x)

C

y = 4 e^x - 3

D

y = 4 - 3 e^(-x)

Test Your Knowledge

What is the time constant τ\tau of a series RL circuit containing a 0.5 H0.5\text{ H} inductor and a 25 Ω25\ \Omega resistor?

A

0.50 seconds

B

12.50 seconds

C

0.02 seconds

D

50.00 seconds

Sections you finish are checked off in the contents.