Let p,q be continuous functions and let y1(x) and y2(x) be, respectively, the solutions of the initial value problems
y1′′+p(x)y1′+q(x)y1=0,y1(0)=0,y1′(0)=1,y2′′+p(x)y2′+q(x)y2=0,y2(0)=1,y2′(0)=0.
If f is any continuous function show that the solution of
y′′+p(x)y′+q(x)y=f(x),y(0)=0,y′(0)=0
y(x)=∫0xW(s)y1(s)y2(x)−y1(x)y2(s)f(s)ds,
where W(x)=y1(x)y2′(x)−y1′(x)y2(x) is the Wronskian. Use this method to find y=y(x) such that
y′′+y=sinx,y(0)=0,y′(0)=0.