Proposition (Green's function from linearly independent solutions)

Let $L = \alpha \dd[2]{x} + \beta \dd{x} + \gamma$ be a second-order linear differential operator with $\alpha(x)\neq 0$ on $(a,b)$. Suppose $y_1$ and $y_2$ be linearly independent solutions to $Ly=0$ such that $y_1(a) = 0$ and $y_2(b)=0$.

Then the Dirichlet Green's function for $L$ on $(a,b)$ is $$ \begin{align*} G(x;\xi) = \frac{1}{\alpha(\xi) W(y_1,y_2)(\xi)} \begin{cases} y_1(x)y_2(\xi), &a<x<\xi, \\ y_1(\xi) y_2(x), &\xi<x<b \end{cases} \end{align*} $$ where $W(y_1,y_2)=y_1y_2' - y_1'y_2$ is the Wronskain.

Proof