Lemma (Sturm-Liouville operator and Wronskian)

Let $L$ be a Sturm-Liouville operator on $(a,b)$ defined by functions $p,q,w$, and $y_1,y_2\in C^2[a,b]$. We have the identity $$ \begin{align*} y_2 Ly_1 - y_1 L y_2 = \frac{1}{w}\dd{x}\big(p W(y_1,y_2)\big) \end{align*} $$ where $W(y_1,y_2) = y_1 y_2' - y_1' y_2$ is the Wronskian.

Proof