← 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)(y dx+x dy)=ysin⁡ ⁣(yx)(x dy−y dx)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 ∫tan⁡v dv=−ln⁡cos⁡v\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=v dx+x dvdy=v\,dx+x\,dv.

Step 1 — Group dxdx and dydy terms

Expand both sides.

LHS: xcos⁡v (y dx+x dy)=xycos⁡v dx+x2cos⁡v dyx\cos v\,(y\,dx+x\,dy)=xy\cos v\,dx+x^2\cos v\,dy.

RHS: ysin⁡v (x dy−y dx)=xysin⁡v dy−y2sin⁡v dxy\sin v\,(x\,dy-y\,dx)=xy\sin v\,dy-y^2\sin v\,dx.

Bring everything to one side:

(xycos⁡v+y2sin⁡v)dx+(x2cos⁡v−xysin⁡v)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=xycos⁡v+y2sin⁡v=x2(vcos⁡v+v2sin⁡v),P=xy\cos v+y^2\sin v = x^2\big(v\cos v+v^2\sin v\big), Q=x2cos⁡v−xysin⁡v=x2(cos⁡v−vsin⁡v).Q=x^2\cos v-xy\sin v = x^2\big(\cos v - v\sin v\big).

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

(vcos⁡v+v2sin⁡v)dx+(cos⁡v−vsin⁡v)(v dx+x dv)=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:

vcos⁡v+v2sin⁡v+vcos⁡v−v2sin⁡v=2vcos⁡v.v\cos v+v^2\sin v + v\cos v - v^2\sin v = 2v\cos v .

Coefficient of dvdv:

x(cos⁡v−vsin⁡v).x(\cos v - v\sin v).

Hence

2vcos⁡v dx+x(cos⁡v−vsin⁡v) dv=0.2v\cos v\,dx + x(\cos v - v\sin v)\,dv = 0 .

Step 4 — Separate variables

2 dxx=−cos⁡v−vsin⁡vvcos⁡v dv=−(1v−tan⁡v)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

2ln⁡x=−(ln⁡v+ln⁡cos⁡v)+const=−ln⁡(vcos⁡v)+ln⁡C.2\ln x = -\big(\ln v + \ln\cos v\big) + \text{const} = -\ln(v\cos v) + \ln C .

Thus

ln⁡(x2vcos⁡v)=ln⁡C⇒x2 vcos⁡v=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 x2⋅yxcos⁡ ⁣yx=Cx^2\cdot\dfrac{y}{x}\cos\!\dfrac{y}{x}=C:

Answer

 x ycos⁡ ⁣(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 — 14 years, mapped. Get the take-away PDF free.