← 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(1xtanx)+x2cosx}dxxdy=0\{y(1-x\tan x)+x^2\cos x\}\,dx-x\,dy=0.

Technique

Recognise linearity in yy; integrating factor μ=1xcosx\mu=\dfrac{1}{x\cos x} (from (1/x+tanx)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(1xtanx)+x2cosx,x\frac{dy}{dx}=y(1-x\tan x)+x^2\cos x, dydx1xtanxxy=xcosx.\frac{dy}{dx}-\frac{1-x\tan x}{x}\,y=x\cos x.

This is linear with P(x)=1xtanxx=1x+tanxP(x)=-\dfrac{1-x\tan x}{x}=-\dfrac1x+\tan x.

Step 2 — Integrating factor

Pdx= ⁣(1x+tanx)dx=lnxlncosx=ln(xcosx).\int P\,dx=\int\!\left(-\frac1x+\tan x\right)dx=-\ln x-\ln\cos x=-\ln(x\cos x). μ=eln(xcosx)=1xcosx.\mu=e^{-\ln(x\cos x)}=\frac{1}{x\cos x}.

Step 3 — Multiply through and integrate

ddx ⁣(yxcosx)=μxcosx=1xcosxxcosx=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,

yxcosx=x+C.\frac{y}{x\cos x}=x+C.

Step 4 — Solve for yy

Answer

  y=xcosx(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 — 13 years, mapped. Get the take-away PDF free.