Explanation:

so the complimentary solution is 

solving for particular solution we get

to find the values of constants a,b we put values in main equation and 

as g(x)=sin x
so above equation yields us

so writing the solution 

using IC's to get the values for 


solving for upper range
