We are given the differential equation:
(ycosy+siny)dy=(2xlogx+x)dxFirst, let's separate the variables
y and
x on each side. Rearranging the equation gives:
dxdy=ycosy+siny2xlogx+xThis is a separable differential equation, so let's proceed by integrating both sides:
∫(ycosy+siny)dy=∫(2xlogx+x)dxThe integral on the left-hand side:
∫(ycosy+siny)dycan be solved by first separating the terms:
∫ycosydy+∫sinydyWe use integration by parts to solve
∫ycosydy, and the integral of
siny is straightforward:
∫sinydy=−cosyFor
∫ycosydy, use the integration by parts formula:
∫udv=uv−∫vduLet
u=y and
dv=cosydy. Then:
du=dy,v=siny ∫ycosydy=ysiny−∫sinydy=ysiny+cosyThus, the left-hand side integral becomes:
ysiny+cosyNow, for the right-hand side:
∫(2xlogx+x)dxThe integral of
x is straightforward:
∫xdx=2x2For
∫2xlogxdx, use integration by parts. Let
u=logx and
dv=2xdx, then:
du=x1dx,v=x2Thus:
∫2xlogxdx=x2logx−∫xdx=x2logx−2x2Therefore, the right-hand side integral becomes:
x2logx−2x2Putting it all together:
ysiny+cosy=x2logx−2x2+CThus, the solution to the differential equation is:
ysiny=x2logx+CThus, the correct answer is option (C),
ysiny=x2logx+C. Quick Tip: For separable differential equations, separate the variables and integrate each side separately. Use integration by parts where needed for terms involving products like
xlogx or
ycosy.