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^{\int P \, dx}$), and Bernoulli substitutions.
- Second-order linear ODEs with constant coefficients $a y'' + b y' + c y = 0$ yield overdamped, critically damped, or underdamped responses determined by the characteristic discriminant.
- Non-homogeneous ODEs ($a y'' + b y' + c y = g(t)$) have general solution $y(t) = y_h(t) + y_p(t)$, solved via Undetermined Coefficients or Variation of Parameters.
- In electrical circuits, time constants $\tau = L/R$ (RL circuits) and $\tau = RC$ (RC circuits) govern exponential growth and decay rates of transient current and voltage.
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 $y$ and its derivatives appear only to the first power and are not multiplied together (e.g., $a_n(x) y^{(n)} + \dots + a_1(x) y' + a_0(x) y = g(x)$).
- Homogeneity: Homogeneous if $g(x) = 0$; non-homogeneous if $g(x) \neq 0$.
2. First-Order Differential Equations
1. Variable Separable ODEs
Form: $\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 = 0$
- Test for Exactness: $\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}$
- Solution is given by potential function $\Phi(x,y) = C$ where $\frac{\partial \Phi}{\partial x} = M$ and $\frac{\partial \Phi}{\partial y} = N$.
- If not exact, an Integrating Factor $\mu(x) = e^{\int \frac{M_y - N_x}{N} , dx}$ converts it to an exact ODE.
3. First-Order Linear ODEs
Standard Form:
- Integrating Factor: $I(x) = e^{\int P(x) , dx}$
- General Solution:
4. Bernoulli Equations
Form: $\frac{dy}{dx} + P(x)y = Q(x)y^n \quad (n \neq 0, 1)$
- Substitution $u = y^{1-n}$ transforms the non-linear equation into a linear ODE in terms of $u(x)$:
3. Second-Order Linear Homogeneous ODEs with Constant Coefficients
Standard Form:
Characteristic (Auxiliary) Equation
Substituting $y = e^{rt}$ yields:
Depending on the discriminant $\Delta = b^2 - 4ac$, three distinct physical damping regimes arise:
| Discriminant $\Delta$ | Root Characteristics | Solution Form $y_h(t)$ | Physical Transient Response |
|---|---|---|---|
| $b^2 - 4ac > 0$ | Real & Distinct ($r_1 \neq r_2$) | $y_h(t) = C_1 e^{r_1 t} + C_2 e^{r_2 t}$ | Overdamped (Slow decay, no oscillation) |
| $b^2 - 4ac = 0$ | Real & Repeated ($r_1 = r_2 = r$) | $y_h(t) = (C_1 + C_2 t) e^{r t}$ | Critically Damped (Fastest decay without overshoot) |
| $b^2 - 4ac < 0$ | Complex Conjugate ($r = \alpha \pm j\beta$) | $y_h(t) = e^{\alpha t} (C_1 \cos \beta t + C_2 \sin \beta t)$ | Underdamped (Decaying sinusoidal oscillations) |
Where $\alpha = -\frac{b}{2a}$ (attenuation constant) and $\beta = \frac{\sqrt{4ac - b^2}}{2a}$ (damped angular frequency).
4. Second-Order Non-Homogeneous ODEs
Form: $a y'' + b y' + c y = g(t)$ General Solution: $y(t) = y_h(t) + y_p(t)$ (Natural Transient + Forced Steady-State Solution).
Method of Undetermined Coefficients
Used when forcing function $g(t)$ consists of polynomials, exponentials, sines, or cosines:
| Forcing Function $g(t)$ | Trial Particular Solution $y_p(t)$ |
|---|---|
| $k e^{\gamma t}$ | $A e^{\gamma t}$ |
| $k_n t^n + \dots + k_0$ | $A_n t^n + A_{n-1} t^{n-1} + \dots + A_0$ |
| $k \cos(\omega t)$ or $k \sin(\omega t)$ | $A \cos(\omega t) + B \sin(\omega t)$ |
Note: If any term in the trial $y_p(t)$ duplicates a term in $y_h(t)$, multiply the trial solution by $t$ (or $t^2$).
Variation of Parameters
Universal method applicable for any continuous forcing function $g(t)$: where the Wronskian is $W(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): For a step DC voltage input $V(t) = V_0$ at $t = 0$ with $i(0) = 0$:
Series RC Circuit
Governed by KVL in terms of charge $q(t)$: For a step DC voltage charging a capacitor with initial charge $q(0) = 0$:
Series RLC Circuit
KVL formulation: Key circuit metrics:
- Undamped natural frequency: $\omega_0 = \frac{1}{\sqrt{L C}}$
- Damping ratio: $\zeta = \frac{R}{2} \sqrt{\frac{C}{L}}$
- $\zeta > 1 \implies$ Overdamped
- $\zeta = 1 \implies$ Critically Damped
- $\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\ \Omega$, inductance $L = 2\text{ H}$, and a DC voltage source $V = 50\text{ V}$ connected at $t = 0$. Given initial current $i(0) = 0\text{ A}$, find $i(t)$ and calculate the current at $t = 0.4\text{ seconds}$.
Solution:
- Formulate ODE:
- Find Integrating Factor $I(t)$:
- Multiply ODE by $I(t)$ and integrate:
- Apply initial condition $i(0) = 0$:
- Evaluate at $t = 0.4\text{ s}$:
Example 3.3.2: RLC Circuit Transient Damping Regime Analysis
Problem: A series RLC circuit has $L = 1\text{ H}$ and $C = 0.25\text{ F}$. Determine the response regime (overdamped, critically damped, or underdamped) and the natural response $q_h(t)$ for $R = 5\ \Omega$.
Solution:
- Formulate characteristic equation:
- Find roots of characteristic equation:
- Identify damping regime: Since $r_1, r_2$ are real and distinct (discriminant $\Delta = 5^2 - 4(1)(4) = 9 > 0$), the circuit response is Overdamped.
- Write natural transient charge solution:
Example 3.3.3: Second-Order Non-Homogeneous Resonant System
Problem: Solve the initial value problem $y'' + 4y = 12 \cos(2t)$ with $y(0) = 0$ and $y'(0) = 0$.
Solution:
- Homogeneous solution $y_h(t)$:
- Formulate trial particular solution $y_p(t)$: Because forcing term $12 \cos(2t)$ duplicates terms in $y_h(t)$, multiply trial by $t$:
- Differentiate $y_p(t)$:
- Substitute into ODE $y_p'' + 4y_p = 12 \cos 2t$: Equating coefficients: $-4A = 0 \implies A = 0$, and $4B = 12 \implies B = 3$.
- Apply initial conditions to general solution $y(t) = C_1 \cos 2t + C_2 \sin 2t + 3t \sin 2t$:
- $y(0) = C_1 + 0 + 0 = 0 \implies C_1 = 0$
- $y'(t) = 2C_2 \cos 2t + 3 \sin 2t + 6t \cos 2t$
- $y'(0) = 2C_2 + 0 + 0 = 0 \implies C_2 = 0$
- Final Solution:
What physical transient response regime is produced in a series RLC circuit when $R^2 > 4L / C$?
What is the solution to the first-order initial value problem $\frac{dy}{dx} + y = 4$ with $y(0) = 1$?
What is the time constant $\tau$ of a series RL circuit containing a $0.5\text{ H}$ inductor and a $25\ \Omega$ resistor?