4.6.9Ordinary Differential Equations

Second-order linear ODEs — superposition principle, general theory

2,339 words11 min readdifficulty · medium5 backlinks

What is a second-order linear ODE?

WHY this form? Dividing through by the leading coefficient a(x)a(x) in ay+by+cy=ha y'' + b y' + c y = h gives the "monic" form above. We do this so the theory (existence, Wronskian) reads cleanly.


The Linear Operator viewpoint (the engine of everything)


The Superposition Principle


General solution structure

Figure — Second-order linear ODEs — superposition principle, general theory

Linear independence & the Wronskian


Worked Example 1 — building & verifying the general solution


Worked Example 2 — non-homogeneous structure


Existence & Uniqueness (the licence to use this theory)


Common mistakes (steel-manned)


Flashcards

What is the standard (monic) form of a 2nd-order linear ODE?
y+p(x)y+q(x)y=g(x)y'' + p(x)y' + q(x)y = g(x).
When is such an ODE homogeneous?
When the forcing term g(x)0g(x)\equiv 0.
State the superposition principle.
If y1,y2y_1,y_2 solve L[y]=0L[y]=0, then c1y1+c2y2c_1y_1+c_2y_2 solves L[y]=0L[y]=0 for all constants c1,c2c_1,c_2.
Why does superposition fail for non-homogeneous ODEs?
L[c1y1+c2y2]=(c1+c2)gL[c_1y_1+c_2y_2]=(c_1+c_2)g, which equals gg only if c1+c2=1c_1+c_2=1; free scaling isn't allowed.
What is the general solution structure of L[y]=gL[y]=g?
y=yh+yp=c1y1+c2y2+ypy = y_h + y_p = c_1y_1+c_2y_2+y_p (general homogeneous + one particular).
Why exactly two arbitrary constants?
Second derivative ⇒ "two integrations" ⇒ two constants, fixed by two initial conditions.
Define the Wronskian of y1,y2y_1,y_2.
W=y1y2y2y1W = y_1y_2' - y_2y_1' (determinant of [[y1,y2],[y1,y2]][[y_1,y_2],[y_1',y_2']]).
What does W(x0)0W(x_0)\neq 0 tell you?
y1,y2y_1,y_2 are linearly independent (and form a fundamental set if both solve the same ODE).
State Abel's theorem.
W(x)=W(x0)exp(x0xp(t)dt)W(x)=W(x_0)\exp(-\int_{x_0}^x p(t)\,dt); so WW is either identically zero or never zero.
Is W=0W=0 at a point proof of dependence?
Not in general; only for solutions of the same linear ODE (and even then need it on the whole interval).
State the existence–uniqueness condition.
If p,q,gp,q,g continuous on interval Ix0I\ni x_0, the IVP has a unique solution on all of II.
Key property of the operator L[y]=y+py+qyL[y]=y''+py'+qy?
It is linear: L[c1y1+c2y2]=c1L[y1]+c2L[y2]L[c_1y_1+c_2y_2]=c_1L[y_1]+c_2L[y_2].

Recall Feynman: explain to a 12-year-old

Imagine a swing. There are only a couple of "basic" ways it can swing on its own (these are y1y_1 and y2y_2). Any other swinging you can get by mixing these two basics in different amounts — push twice as hard on one, half as hard on the other. That mixing is superposition. Now if someone keeps pushing the swing (that's the forcing gg), you first find one way it settles (ypy_p), then add the free basic swings on top. The Wronskian is just a quick check that your two basic swings are really different and not secretly the same swing in disguise.

Concept Map

divide by leading coeff

define

derived via linearity of derivative

g = 0

g not 0

applied to solutions

acts on

yields

implies

c1 + c2 not 1

does not hold for

2nd-order linear ODE y'' + p y' + q y = g

Monic standard form

Linear operator L of y

L is a linear map

Homogeneous L of y = 0

Non-homogeneous L of y = g

Superposition principle

Solutions form a vector space

c1 y1 + c2 y2 solves

Superposition fails

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, second-order linear ODE matlab equation jisme yy'', yy' aur yy aate hain, lekin sirf "pehli power" mein — koi y2y^2 nahi, koi siny\sin y nahi. Standard form hai y+p(x)y+q(x)y=g(x)y'' + p(x)y' + q(x)y = g(x). Agar g(x)=0g(x)=0 ho to bolते hain homogeneous, warna non-homogeneous (kyunki ek forcing term push kar raha hai).

Sabse important cheez hai superposition principle. Agar y1y_1 aur y2y_2 dono homogeneous equation ko solve karte hain, to inka koi bhi mix c1y1+c2y2c_1y_1+c_2y_2 bhi solution hoga. Yeh kaam karta hai kyunki operator L[y]=y+py+qyL[y]=y''+py'+qy linear hai — derivative linear hota hai, isliye LL bhi. Lekin yaad rakho: yeh free mixing sirf homogeneous case mein chalta hai. Non-homogeneous mein agar tum do solutions add karoge to forcing double ho jaata hai, isliye wahan formula alag hai: y=yh+ypy = y_h + y_p, yaani general homogeneous solution plus koi ek particular solution.

Do constants kyun? Kyunki second derivative hai, "do baar integrate" karna padta hai, to do arbitrary constants aate hain, jinko hum do initial conditions y(x0)y(x_0) aur y(x0)y'(x_0) se fix karte hain. Ab yeh check karne ke liye ki tumhare y1,y2y_1,y_2 sach mein alag hain (ek doosre ke multiple nahi), hum Wronskian W=y1y2y2y1W=y_1y_2'-y_2y_1' nikaalte hain. Agar kisi ek point pe W0W\neq0, to woh independent hain — aur Abel ke theorem se WW ya to hamesha zero hota hai ya kabhi nahi, isliye ek hi point check karna kaafi hai.

Practical recipe yaad rakho: pehle homogeneous solve karo (yhy_h, do constants), phir ek particular solution dhundo (ypy_p, sirf ek baar), phir add kar do. Spring-mass, RLC circuit, sab isi theory pe chalte hain — isliye yeh foundation hai.

Go deeper — visual, from zero

Test yourself — Ordinary Differential Equations

Connections