I am familiar with the notion of an eigenvalue/eigenvector pair for a linear operator. Explicitly: If $V$ is a vector space over a field $K$, and $T$ is a linear operator on $V$, then we call $\lambda \in K$ an eigenvalue if there exists a non-zero vector $v \in V$ such that $Tv = \lambda v.$
I am now studying differential equations and am learning about Sturm- Liouville problems. There we define a linear differential operator $$L[y] = -[p(x) y']' + q(x)y$$ for some functions $p(x)$ and $q(x)$, and $y$ is a function in some appropriate function space (which function space is not entirely clear, but I do not think that is too relevant to my question). We then consider the Sturm-Liouville problem: \begin{equation}\tag{1} \label{SL} L[\phi] = \lambda r(x) \phi \end{equation} for some function $r(x)$, subject to some boundary conditions.
My confusion comes from this $r(x)$. Most sources say if $\lambda$ is some complex number for which there exists a non-trivial solution $\phi$ to \ref{SL}, then $\lambda$ is an eigenvalue and $\phi$ the associated eigenfunction. But I would expect the problem to be \begin{equation}\tag{2} \label{expected} L[\phi] = \lambda \phi . \end{equation} How can the notion of an eigenvalue/eigenvector pair jive with this $r(x)$? Is this just a difference in definitions for Sturm-Liouville theory? Is it a notational convenience? Because we could just define $$L[y] = \frac{1}{r(x)}\left( -[p(x) y']' + q(x)y \right),$$ and then things are how we expect them in \ref{expected}.