Proof (Sturm-Liouville operator and Wronskian)
Just compute: $$ \begin{align*} y_2 L y_1 - y_1 L y_2 ={}& \frac{1}{w}\Big(y_2\big(-(py_1')' + qy_1\big) - y_1\big(-(py_2')' + qy_2\big)\Big) \\ ={}& \frac{1}{w}\Big(y_1(py_2')' - y_2(py_1')'\Big) \\ ={}& \frac{1}{w} \dd{x}\Big(p(y_1 y_2' - y_1'y_2)\Big) \end{align*} $$