Seperating terms of y and x
(siny+ycosy)dy=x(2logx+1)dx
By integrating both sides, we get
∫(siny+ycosy)dy=∫x(2logx+1)dx
∫sinydy+∫ycosydy=2∫xlogxdx+∫xdx
−cosy+∫ycosydy=2∫xlogxdx+x22 ......(1)
Consider ∫ycosydy
Let u=y⇒du=dy and dv=cosydy⇒v=siny
We have ∫u.dv=uv−∫v.du
∫ycosydy=ysiny−∫sinydy
∫ycosydy=ysiny−(−cosy)
∫ycosydy=ysiny+cosy ......(2)
Consider ∫xlogxdx
Let u=logx⇒du=1xdx and dv=x.dx⇒v=x22
We have ∫u.dv=uv−∫v.du
⇒∫xlogxdx=logxx22−∫x22×1xdx
⇒∫xlogxdx=x2logx2−∫x2dx
⇒∫xlogxdx=x2logx2−x24 ......(3)
Substituting (2) and (3) in (1) we get
−cosy+∫ycosydy=2∫xlogxdx+x22
−cosy+ysiny+cosy=2[x2logx2−x24]+x22+c where c is the constant of integration.
⇒ysiny=x2logx−x22+x22+c
⇒ysiny=x2logx+c
At x=1,y=π2 we have
⇒π2sinπ2=12log1+c where log1=0
⇒c=π2 where sinπ2=1
∴ysiny=x2logx+π2