concept → [Extract differential equation]
M dx+N dy=0 is given difference equation
If ∂M∂y=∂N∂x→ Then given equation is exact And solution is given by
∫M dx+∫(terms of N notcontaining x) dy=C
Given question
→ [y−xcosyx]→=Ndy+[ycosyx−2xsinyx]→=Mdx=0
So, cheching whether give difference equation is exact or not.
⇒ ∂M∂y=y[−sin(yx)]×1x+cos(yx)−2xcos(yx)×1x
=−yxsin(yx)+cos(yx)−2cos(yx)
=−yxsin(yx)−cos(yx)....(1)
⇒ ∂N∂x=0−[cos(yx)+x(−sin(yx))×yx2]
=−[cos(yx)+yxsin(yx)]
=−yxsin(yx)−cos(yx)....(2)
⇒ (1) & (2), ∂M∂y=∂N∂x\to$ So, given equation is exact
∴ solution is given by ∫y constantM dx+∫(term of N dy=C notcontaining)
∫y constant[ycosyx−2xsinyx]dx+∫y dy=C
∫y constant[ycosyx−2xsin(yx)dx+y22=C]