This is a first order linear differential equation of the form
The integrating factor (I.F) of this differential equation is,
Hence, the solution of the differential equation is,
∴ y = –2sin2x + csin3x
However, when x = \(\frac{\pi}{2},\) we have y = 2
By substituting the value of c in the equation for y, we get
y = –2sin2x + (4)sin3x
∴ y = –2sin2x + 4sin3x
Thus, the solution of the given initial value problem is y = –2sin2x + 4sin3x