← 2020 Paper 1

UPSC 2020 Maths Optional Paper 1 Q5a — Step-by-Step Solution

10 marks · Section B

Homogeneous Equations and Reduction · ODEs · Read the full method →

Question

Solve the following differential equation: xcos ⁣(yx)(ydx+xdy)=ysin ⁣(yx)(xdyydx)x\cos\!\left(\frac{y}{x}\right)(y\,dx + x\,dy) = y\sin\!\left(\frac{y}{x}\right)(x\,dy - y\,dx).

Technique

Homogeneous ODE; substitution y=vxy=vx, then variable separation; integral tanvdv=lncosv\int\tan v\,dv=-\ln\cos v.

Solution

Observation. The equation is homogeneous of degree 2 in x,yx,y. Put v=yxv=\dfrac{y}{x}, i.e. y=vxy=vx, so dy=vdx+xdvdy=v\,dx+x\,dv.

Step 1 — Group dxdx and dydy terms

Expand both sides.

LHS: xcosv(ydx+xdy)=xycosvdx+x2cosvdyx\cos v\,(y\,dx+x\,dy)=xy\cos v\,dx+x^2\cos v\,dy.

RHS: ysinv(xdyydx)=xysinvdyy2sinvdxy\sin v\,(x\,dy-y\,dx)=xy\sin v\,dy-y^2\sin v\,dx.

Bring everything to one side:

(xycosv+y2sinv)dx+(x2cosvxysinv)dy=0.\big(xy\cos v + y^2\sin v\big)dx + \big(x^2\cos v - xy\sin v\big)dy = 0 .

Step 2 — Substitute y=vxy=vx

With y=vxy=vx: xy=vx2xy=vx^2, y2=v2x2y^2=v^2x^2. Coefficients:

P=xycosv+y2sinv=x2(vcosv+v2sinv),P=xy\cos v+y^2\sin v = x^2\big(v\cos v+v^2\sin v\big), Q=x2cosvxysinv=x2(cosvvsinv).Q=x^2\cos v-xy\sin v = x^2\big(\cos v - v\sin v\big).

So Pdx+Qdy=0P\,dx+Q\,dy=0 becomes (dividing by x2x^2):

(vcosv+v2sinv)dx+(cosvvsinv)(vdx+xdv)=0.\big(v\cos v+v^2\sin v\big)dx + \big(\cos v - v\sin v\big)(v\,dx+x\,dv)=0 .

Step 3 — Collect dxdx and dvdv

Coefficient of dxdx:

vcosv+v2sinv+vcosvv2sinv=2vcosv.v\cos v+v^2\sin v + v\cos v - v^2\sin v = 2v\cos v .

Coefficient of dvdv:

x(cosvvsinv).x(\cos v - v\sin v).

Hence

2vcosvdx+x(cosvvsinv)dv=0.2v\cos v\,dx + x(\cos v - v\sin v)\,dv = 0 .

Step 4 — Separate variables

2dxx=cosvvsinvvcosvdv=(1vtanv)dv.\frac{2\,dx}{x} = -\frac{\cos v - v\sin v}{v\cos v}\,dv = -\left(\frac{1}{v} - \tan v\right)dv .

Step 5 — Integrate

2lnx=(lnv+lncosv)+const=ln(vcosv)+lnC.2\ln x = -\big(\ln v + \ln\cos v\big) + \text{const} = -\ln(v\cos v) + \ln C .

Thus

ln(x2vcosv)=lnCx2vcosv=C.\ln\big(x^2 v\cos v\big)=\ln C \quad\Rightarrow\quad x^2\,v\cos v = C .

Restore v=y/xv=y/x, so x2yxcos ⁣yx=Cx^2\cdot\dfrac{y}{x}\cos\!\dfrac{y}{x}=C:

Answer

xycos ⁣(yx)=C\boxed{\,x\,y\cos\!\left(\frac{y}{x}\right)=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.