← 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(xy)(ydx+xdy)=ysin(xy)(xdy−ydx).
Technique
Homogeneous ODE; substitution y=vx, then variable separation; integral ∫tanvdv=−lncosv.
Solution
Observation. The equation is homogeneous of degree 2 in x,y. Put v=xy, i.e. y=vx, so dy=vdx+xdv.
Step 1 — Group dx and dy terms
Expand both sides.
LHS: xcosv(ydx+xdy)=xycosvdx+x2cosvdy.
RHS: ysinv(xdy−ydx)=xysinvdy−y2sinvdx.
Bring everything to one side:
(xycosv+y2sinv)dx+(x2cosv−xysinv)dy=0.
Step 2 — Substitute y=vx
With y=vx: xy=vx2, y2=v2x2. Coefficients:
P=xycosv+y2sinv=x2(vcosv+v2sinv),
Q=x2cosv−xysinv=x2(cosv−vsinv).
So Pdx+Qdy=0 becomes (dividing by x2):
(vcosv+v2sinv)dx+(cosv−vsinv)(vdx+xdv)=0.
Step 3 — Collect dx and dv
Coefficient of dx:
vcosv+v2sinv+vcosv−v2sinv=2vcosv.
Coefficient of dv:
x(cosv−vsinv).
Hence
2vcosvdx+x(cosv−vsinv)dv=0.
Step 4 — Separate variables
x2dx=−vcosvcosv−vsinvdv=−(v1−tanv)dv.
Step 5 — Integrate
2lnx=−(lnv+lncosv)+const=−ln(vcosv)+lnC.
Thus
ln(x2vcosv)=lnC⇒x2vcosv=C.
Restore v=y/x, so x2⋅xycosxy=C:
Answer
xycos(xy)=C