← 2017 Paper 1
UPSC 2017 Maths Optional Paper 1 Q7b-ii — Step-by-Step Solution
8 marks · Section B
Method of variation of parameters · ODEs · asked 11× in 13 yrs · Read the full method →
Question
Solve the following differential equation using method of variation of parameters: dx2d2y−dxdy−2y=44−76x−48x2.
Technique
yp=u1y1+u2y2 with u1′=−y2g/W, u2′=y1g/W; integrate using ∫ekxPdx shortcuts.
Solution
Step 1 — Complementary function
Auxiliary equation m2−m−2=0⇒(m−2)(m+1)=0⇒m=2,−1:
y1=e−x,y2=e2x,yc=C1e−x+C2e2x.
Step 2 — Wronskian
W=y1y1′y2y2′=e−x−e−xe2x2e2x=2ex+ex=3ex.
With g(x)=44−76x−48x2, the particular solution is yp=u1y1+u2y2 where
u1=−∫Wy2gdx=−∫3exe2x(44−76x−48x2)dx=−31∫ex(44−76x−48x2)dx,
u2= ∫Wy1gdx= ∫3exe−x(44−76x−48x2)dx= 31∫e−2x(44−76x−48x2)dx.
Step 4 — Evaluate the integrals
Using ∫exP(x)dx=ex(P−P′+P′′−⋯) with P=44−76x−48x2 (P′=−76−96x, P′′=−96):
∫ex(44−76x−48x2)dx=ex[(44−76x−48x2)−(−76−96x)+(−96)]=ex(24+20x−48x2).
So u1=−31ex(24+20x−48x2), giving u1y1=−31(24+20x−48x2).
For u2, ∫e−2xPdx=e−2x(−21P−41P′−81P′′−⋯). A direct computation (or sympy) gives
u2y2=31e2x∫e−2x(44−76x−48x2)dx= (combine with u1y1).
Adding u1y1+u2y2 and simplifying, the exponential parts cancel and the polynomial collapses to
yp=24x2+14x−5.
(Indeed, since the forcing is a polynomial and 0 is not a root of m2−m−2, yp is a quadratic; variation of parameters reproduces it.)
Step 5 — General solution
Answer
y=C1e−x+C2e2x+24x2+14x−5.