Proof (necessity of no negative eigenvalue of Sturm-Liouville operator)

Observe the second variation is $$ \begin{align*} \delta^2 F &= \int_{\alpha}^{\beta} (P(\eta')^2 + Q\eta^2)\, dx \\ &= [\eta(P\eta')]_\alpha^\beta + \int_{\alpha}^{\beta} (-\eta(P\eta')' + Q\eta^2) \,dx &&\text{by parts} \\ &= \int_{\alpha}^{\beta} \eta\left(-(P\eta')' + Q\eta\right)\, dx. \end{align*} $$

Let $\eta$ be a solution to $-(P\eta')' + Q\eta = -\lambda\eta$ where $\lambda<0$ and assume $\eta\not\equiv 0$. Then $$ \begin{align*} \delta^2 F &= \int_{\alpha}^{\beta} -\lambda\eta^2\, dx < 0 \end{align*} $$ so the stationary point is not a local minimum.