HOW we pin down two unknown functions: we have one equation (the ODE) but two unknowns. So we are free to impose one extra condition of our choosing. We choose it to make the algebra collapse.
Step 1 — homogeneous solutions.r2+1=0⇒r=±i, so y1=cosx,y2=sinx.
Why this step? We always need the homogeneous solutions first — they are the raw material yp is built from.
Step 2 — Wronskian.W=cosx⋅cosx−sinx⋅(−sinx)=cos2x+sin2x=1.
Why?W appears in the denominator; a clean W=1 simplifies the integrals.
Step 3 — u1′,u2′. With g=secx:
u1′=−1sinxsecx=−tanx,u2′=1cosxsecx=1
Step 4 — integrate.u1=−∫tanxdx=ln∣cosx∣,u2=∫1dx=xWhy drop the +C? The constants just regenerate the homogeneous part; we only need one particular solution.
Step 5 — assemble.yp=cosxln∣cosx∣+xsinx
General solution: y=c1cosx+c2sinx+cosxln∣cosx∣+xsinx.
Step 5.yp=ex(−x)+e2x(−e−x)=−xex−ex
The −ex is a homogeneous piece (absorb into c1), so essentially yp=−xex.
General: y=c1ex+c2e2x−xex. (Matches undetermined coefficients — good sanity check.)
Solve x2y′′−2xy′+2y=x3, given y1=x,y2=x2 solve the homogeneous part.
Step 0 — standard form! Divide by x2: y′′−x2y′+x22y=x. So g=x (NOT x3).
Why this step? The formula assumes leading coefficient 1. Forgetting this is the #1 error.
You already have two "building-block" wiggles that perfectly balance a seesaw when nobody pushes it. Now someone is pushing the seesaw (that's g(x)). Instead of inventing brand-new wiggles, you take your two building blocks and let their strengths change over time — sometimes use more of block 1, sometimes more of block 2 — exactly enough to cancel the pusher. The two little equations tell you, moment by moment, how much of each block to mix. The Wronskian is just a "fairness scale" making sure the two blocks are genuinely different and not secretly the same.
Dekho, idea bilkul simple hai. Homogeneous equation y′′+py′+qy=0 ke do independent solutions y1 aur y2 already mil chuke hote hain, aur general solution hota hai c1y1+c2y2 jisme c1,c2 constants hain. Ab jab right side pe g(x) aa jata hai (non-homogeneous), toh hum ek chhota sa jugaad karte hain — constants ko functions bana dete hain: c1→u1(x), c2→u2(x). Isi liye naam hai "variation of parameters" — parameters (constants) ko vary kar rahe hain.
Do unknown functions hain par equation ek hi hai, toh humein freedom milti hai ek extra condition apni marzi se lagane ki. Hum chunte hain u1′y1+u2′y2=0, taaki second derivatives wala mess na aaye. Phir ODE me daalne par homogeneous wale terms khud-ba-khud zero ho jaate hain (kyunki y1,y2 unhe satisfy karte hain), aur bachta hai u1′y1′+u2′y2′=g. Ye do equations Cramer's rule se solve karo: u1′=−y2g/W, u2′=+y1g/W, jahan W=y1y2′−y2y1′ Wronskian hai. Bas integrate karke u1,u2 nikaalo aur yp=u1y1+u2y2 likh do.
Important baat: equation ko pehle standard form me lao (leading coefficient 1), tabhi g sahi milega — warna sabse common galti yahi hoti hai. Ye method ki sabse badi taakat ye hai ki ye kisi bhig(x) ke liye chalti hai — secx, lnx, 1/x sab — jabki undetermined coefficients sirf polynomial, exponential, sin/cos pe kaam karti hai. Toh jab guessing fail ho jaye, variation of parameters tumhara pakka hathiyar hai.