Differential-Equations Β· Unit 12 Β· Video 1 Β· Interactive Practice

Inhomogeneous ODEs: Forced Springs and RLC Circuits

IKey Formulas

FormulaNameWhat it says
yβ€²β€²+p(x) yβ€²+q(x) y=f(x)y'' + p(x)\,y' + q(x)\,y = f(x)Inhomogeneous equationff is the input (signal, driving or forcing term); yy is the response
yβ€²β€²+p(x) yβ€²+q(x) y=0,yc=c1y1+c2y2y'' + p(x)\,y' + q(x)\,y = 0,\qquad y_c = c_1y_1 + c_2y_2Associated homogeneous (reduced) equationIts general solution is the complementary solution ycy_c
m xβ€²β€²+b xβ€²+k x=f(t)m\,x'' + b\,x' + k\,x = f(t)Forced spring–mass–dashpotf(t)f(t) is an external force; f=0f = 0 is the passive system
L iβ€²+R i+qC=E(t),qβ€²=iΒ β‡’Β L iβ€²β€²+R iβ€²+1C i=Eβ€²(t)L\,i' + R\,i + \dfrac{q}{C} = E(t),\quad q' = i\ \Rightarrow\ L\,i'' + R\,i' + \dfrac{1}{C}\,i = E'(t)RLC circuit (Kirchhoff's voltage law)The input for the current is Eβ€²(t)E'(t), so a constant battery gives the homogeneous case

Key Insight: The left side describes the system and the right side the push from outside. The passive behaviour (f=0f = 0) is always part of the forced solution, which is why the homogeneous equation is solved first.

IIVisualization 1 β€” Passive versus Forced Spring

With xβ€²β€²+0.5xβ€²+2x=f(t)x'' + 0.5x' + 2x = f(t) and the same start x(0)=1x(0) = 1, xβ€²(0)=0x'(0) = 0, what does the input change?

IIIVisualization 2 β€” What Drives the Current in an RLC Circuit?

In iβ€²β€²+iβ€²+4i=Eβ€²(t)i'' + i' + 4i = E'(t) the current responds to the derivative of the source voltage, not the voltage itself.

IVQuiz Questions

Problem 1 Β· The Complementary Solution

Given: yβ€²β€²+4y=xy'' + 4y = x β€” find the complementary solution ycy_c.

βœ… Correct! ycy_c is the general solution of the reduced equation yβ€²β€²+4y=0y'' + 4y = 0, whose characteristic roots are Β±2i\pm 2i.
❌ Not quite. The term x4\tfrac{x}{4} answers the full equation, not the reduced one: ycy_c solves yβ€²β€²+4y=0y'' + 4y = 0, with the input replaced by 00.
❌ Check the sign. r2+4=0r^2 + 4 = 0 gives r=Β±2ir = \pm 2i, not Β±2\pm 2; the exponentials eΒ±2xe^{\pm 2x} solve yβ€²β€²βˆ’4y=0y'' - 4y = 0.
❌ Not quite. (cos⁑4x)β€²β€²+4cos⁑4x=βˆ’12cos⁑4xβ‰ 0(\cos 4x)'' + 4\cos 4x = -12\cos 4x \neq 0. The roots of r2+4=0r^2 + 4 = 0 are Β±2i\pm 2i, so the frequency is 22.
Show solution

Replace the input f(x)=xf(x) = x by 00 to get the associated homogeneous equation yβ€²β€²+4y=0y'' + 4y = 0.

r2+4=0Β β‡’Β r=Β±2iΒ β‡’Β yc=c1cos⁑2x+c2sin⁑2x.r^2 + 4 = 0 \ \Rightarrow\ r = \pm 2i \ \Rightarrow\ y_c = c_1\cos 2x + c_2\sin 2x.

The input plays no part in ycy_c; it only enters through a particular solution of the full equation.

Problem 2 Β· A Battery in the Circuit

Given: an RLC circuit driven by a battery of constant voltage E(t)=12E(t) = 12 β€” which equation does the current i(t)i(t) satisfy?

βœ… Correct! The current equation has input Eβ€²(t)E'(t), and the derivative of a constant is 00: a battery gives the passive circuit.
❌ Not quite. 1212 is the right side of the equation for the charge, L qβ€²β€²+R qβ€²+q/C=E(t)L\,q'' + R\,q' + q/C = E(t). Differentiating to get the current equation turns EE into Eβ€²E'.
❌ Not quite. Dividing by LL would also divide the left side; and the input for ii is Eβ€²(t)E'(t), which is 00 here.
❌ Not quite. Going from qq to ii differentiates, it does not integrate: the input becomes Eβ€²(t)=0E'(t) = 0.
Show solution

Kirchhoff's voltage law gives L iβ€²+R i+q/C=E(t)L\,i' + R\,i + q/C = E(t). Differentiate each term and use qβ€²=iq' = i:

L iβ€²β€²+R iβ€²+1C i=Eβ€²(t).L\,i'' + R\,i' + \frac{1}{C}\,i = E'(t).

With E(t)=12E(t) = 12 constant, Eβ€²(t)=0E'(t) = 0, so L iβ€²β€²+R iβ€²+1C i=0L\,i'' + R\,i' + \tfrac{1}{C}\,i = 0 β€” homogeneous, even though a battery is connected.

Problem 3 Β· Standard Form of a Forced Spring

Given: 2xβ€²β€²+6xβ€²+10x=4cos⁑3t2x'' + 6x' + 10x = 4\cos 3t β€” find the coefficients pp, qq and the input when the equation is written as xβ€²β€²+p xβ€²+q x=f(t)x'' + p\,x' + q\,x = f(t).

βœ… Correct! Dividing every term by m=2m = 2 gives xβ€²β€²+3xβ€²+5x=2cos⁑3tx'' + 3x' + 5x = 2\cos 3t.
❌ Almost. The input must be divided by m=2m = 2 as well: f(t)/m=2cos⁑3tf(t)/m = 2\cos 3t.
❌ Not quite. The standard form starts with a plain xβ€²β€²x'', so divide every term by the leading coefficient 22 first.
❌ Check the order. pp multiplies xβ€²x' and qq multiplies xx: p=b/m=3p = b/m = 3 and q=k/m=5q = k/m = 5.
Show solution

Here m=2m = 2, b=6b = 6, k=10k = 10. Divide the whole equation by mm:

xβ€²β€²+62 xβ€²+102 x=4cos⁑3t2Β β‡’Β xβ€²β€²+3xβ€²+5x=2cos⁑3t.x'' + \frac{6}{2}\,x' + \frac{10}{2}\,x = \frac{4\cos 3t}{2} \ \Rightarrow\ x'' + 3x' + 5x = 2\cos 3t.

So p=b/m=3p = b/m = 3, q=k/m=5q = k/m = 5 and f(t)=2cos⁑3tf(t) = 2\cos 3t.

Problem 4 Β· An AC Circuit in Standard Form

Given: an RLC circuit with L=0.5L = 0.5, R=4R = 4, C=0.02C = 0.02 driven by E(t)=5sin⁑10tE(t) = 5\sin 10t β€” find the equation for the current i(t)i(t) written with a plain iβ€²β€²i''.

βœ… Correct! Eβ€²(t)=50cos⁑10tE'(t) = 50\cos 10t, and dividing 0.5 iβ€²β€²+4iβ€²+50i=50cos⁑10t0.5\,i'' + 4i' + 50i = 50\cos 10t by L=0.5L = 0.5 doubles every term.
❌ Not quite. That uses E(t)/LE(t)/L. The current equation has input Eβ€²(t)/LE'(t)/L, and Eβ€²(t)=50cos⁑10tE'(t) = 50\cos 10t.
❌ Check the last coefficient. After dividing by LL it is 1LC=10.5β‹…0.02=100\frac{1}{LC} = \frac{1}{0.5 \cdot 0.02} = 100; 5050 is 1/C1/C before dividing.
❌ Almost. The right side must be divided by L=0.5L = 0.5 too: 50cos⁑10t/0.5=100cos⁑10t50\cos 10t / 0.5 = 100\cos 10t.
Show solution

The current satisfies L iβ€²β€²+R iβ€²+1C i=Eβ€²(t)L\,i'' + R\,i' + \tfrac{1}{C}\,i = E'(t) with 1C=50\tfrac{1}{C} = 50 and Eβ€²(t)=50cos⁑10tE'(t) = 50\cos 10t:

0.5 iβ€²β€²+4iβ€²+50i=50cos⁑10t.0.5\,i'' + 4i' + 50i = 50\cos 10t.

Divide by L=0.5L = 0.5: p=R/L=8p = R/L = 8, q=1LC=100q = \tfrac{1}{LC} = 100, input Eβ€²(t)/L=100cos⁑10tE'(t)/L = 100\cos 10t:

iβ€²β€²+8iβ€²+100i=100cos⁑10t.i'' + 8i' + 100i = 100\cos 10t.

Solved: 0 / 4