Given differential equation is (1+y)(2+sinx⋅dxdy=cosx which can be rewritten as 1+ydy=2+sinxcosxdx Integrate both the sides, we get ∫1+ydy=∫2+sinxcosxdx⇒log(1+y)=log(2+sinx)+logC⇒1+y=C(2+sinx) Given y(0)=2⇒1+2=C[2+sin0]⇒C=23 Now, y(2π) can be found as 1+y=23(2+sin2π)⇒1+y=29 ⇒y=27 Hence, y(2π)=27