solve the differential equation Y YsinxSolutionyysinx for c
solve the differential equation Y\" + Y\'=sinx
Solution
y\'\'+y\'=sinx
for complementary function
(D2+D)y=0
D(D+1)=0
=> D=0,-1
yc.f =Ae0+Be-x = A+Be-x
for particular integral
let the solution be of the format y=Msinx+Ncosx
-Msinx - Ncosx +Mcosx-Nsinx=sinx
comparing the coefficients of sinx and cosx on both sides we get;
M+N=-1 & M-n=0
=> M=N=-1/2
yp.i =(-1/2)*(sinx+cosx)
hence final solution is
y=yc.f +yp.i
or y =A+Be-x - (1/2)(sinx + cosx)
