dydx+2y=sinx......(1)
P=2,Q=sinx I.F=e∫2dx
On multiplying e2x in equation (1)
e2xdydx+2ye2x=e2xsinx
ddx(ye2x)=e2xsinx
On integrating
ye2x=∫e2xsinxdx+c.....(2)
∫e2xsinxdx=e2x5[2sinx−cosx]
∴ equation (2)
ye2x=e2x5[2sinx−cosx]+c
On multiplying e−2x
y=15[2sinx−cosx]+ce−2x