Let us solve the equation sinxdx+ydy=0;y(0)=−2:
sinxdx=−ydy
∫sinxdx=−∫ydy
−cosx=−2y2+C
Since y(0)=−2, we have the equation −cos0=−2(−2)2+C which is equivalent to −1=−2+C. So, C=1.
Therefore,
−cosx=−2y2+1 or
y2=2cosx+2
Since y(0)=−2, the solution is
y=−2cosx+2
Comments