How does one directly construct the Green's function to the following problem:
$y''-k^2y(x)=f(x)$ subject to $y(0)=y(L)=0$ ?
I beleive the correct method is $G(x,\xi) = \frac{1}{c}$$ \left\{\begin{aligned} &u_1(x)u_2(\xi) &&: x \lt \xi\\ &u_1(\xi)u_2(x) &&: \xi \lt x \end{aligned} \right.$
I've found that the answer is $G(x,\xi)=\frac{-sinh(kx)sinh(k(L-\xi))}{ksinh(kL)}$
but do not see how it's arrived at. Furthermore, I am asked to show that the solution to $G''-k^2G=\delta(x-\xi)$ using a sine series is equivalent to the above Green's function. I not sure how to handle that.