← 2016 Paper 1
UPSC 2016 Maths Optional Paper 1 Q6a — Step-by-Step Solution
10 marks · Section B
Linear first-order · ODEs · asked 5× in 13 yrs · Read the full method →
Question
Solve: {y(1−xtanx)+x2cosx}dx−xdy=0.
Technique
Recognise linearity in y; integrating factor μ=xcosx1 (from ∫(−1/x+tanx)dx); the RHS collapses to 1.
Solution
Step 1 — Rearrange as a linear equation in y
Divide by dx and isolate dxdy:
xdxdy=y(1−xtanx)+x2cosx,
dxdy−x1−xtanxy=xcosx.
This is linear with P(x)=−x1−xtanx=−x1+tanx.
Step 2 — Integrating factor
∫Pdx=∫(−x1+tanx)dx=−lnx−lncosx=−ln(xcosx).
μ=e−ln(xcosx)=xcosx1.
Step 3 — Multiply through and integrate
dxd(xcosxy)=μ⋅xcosx=xcosx1⋅xcosx=1.
Integrating,
xcosxy=x+C.
Step 4 — Solve for y
Answer
y=xcosx(x+C).