← 2016 Paper 1

UPSC 2016 Maths Optional Paper 1 Q6a — Step-by-Step Solution

10 marks · Section B

Linear first-order · ODEs · asked 6× in 14 yrs · Read the full method →

Question

Solve: {y(1−xtan⁡x)+x2cos⁡x} dx−x dy=0\{y(1-x\tan x)+x^2\cos x\}\,dx-x\,dy=0.

Technique

Recognise linearity in yy; integrating factor μ=1xcos⁡x\mu=\dfrac{1}{x\cos x} (from ∫(−1/x+tan⁡x) dx\int(-1/x+\tan x)\,dx); the RHS collapses to 11.

Solution

Step 1 — Rearrange as a linear equation in yy

Divide by dxdx and isolate dydx\dfrac{dy}{dx}:

xdydx=y(1−xtan⁡x)+x2cos⁡x,x\frac{dy}{dx}=y(1-x\tan x)+x^2\cos x, dydx−1−xtan⁡xx y=xcos⁡x.\frac{dy}{dx}-\frac{1-x\tan x}{x}\,y=x\cos x.

This is linear with P(x)=−1−xtan⁡xx=−1x+tan⁡xP(x)=-\dfrac{1-x\tan x}{x}=-\dfrac1x+\tan x.

Step 2 — Integrating factor

∫P dx=∫ ⁣(−1x+tan⁡x)dx=−ln⁡x−ln⁡cos⁡x=−ln⁡(xcos⁡x).\int P\,dx=\int\!\left(-\frac1x+\tan x\right)dx=-\ln x-\ln\cos x=-\ln(x\cos x). μ=e−ln⁡(xcos⁡x)=1xcos⁡x.\mu=e^{-\ln(x\cos x)}=\frac{1}{x\cos x}.

Step 3 — Multiply through and integrate

ddx ⁣(yxcos⁡x)=μ⋅xcos⁡x=1xcos⁡x⋅xcos⁡x=1.\frac{d}{dx}\!\left(\frac{y}{x\cos x}\right)=\mu\cdot x\cos x=\frac{1}{x\cos x}\cdot x\cos x=1.

Integrating,

yxcos⁡x=x+C.\frac{y}{x\cos x}=x+C.

Step 4 — Solve for yy

Answer

  y=xcos⁡x (x+C).  \boxed{\;y=x\cos x\,(x+C).\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 14 years, mapped. Get the take-away PDF free.