[guided]The point of the multiplication-operator case is that invertibility can be read pointwise, up to null sets. Let $M_\varphi:L^2(X,\mu)\to L^2(X,\mu)$ denote multiplication by the bounded measurable function $\varphi:X\to\mathbb C$ on the semi-finite measure space $(X,\mathcal{A},\mu)$. For a scalar $\lambda\in\mathbb C$, subtracting $\lambda I$ gives
\begin{align*}
(M_\varphi-\lambda I)f=(\varphi-\lambda)f,
\end{align*}
so $M_\varphi-\lambda I=M_{\varphi-\lambda}$.
First suppose $\lambda$ is not in the closed essential range of $\varphi$. By definition, there is an $\varepsilon>0$ such that the set on which $\varphi$ gets within distance $\varepsilon$ of $\lambda$ is null:
\begin{align*}
\mu(\{x\in X:|\varphi(x)-\lambda|<\varepsilon\})=0.
\end{align*}
This means that outside a null set, the function $\varphi-\lambda$ never approaches $0$. We may therefore define its reciprocal a.e. as follows: for $x\in X$ with $|\varphi(x)-\lambda|\ge \varepsilon$, set $\psi(x)=(\varphi(x)-\lambda)^{-1}$, and for $x\in X$ with $|\varphi(x)-\lambda|<\varepsilon$, set $\psi(x)=0$. The function $\psi:X\to\mathbb C$ is measurable because it is obtained from the measurable function $\varphi-\lambda$ by a Borel operation, and it is essentially bounded because $|\psi(x)|\le\varepsilon^{-1}$ outside the null set. Hence $M_\psi$ is a bounded operator on $L^2(X,\mu)$. Moreover,
\begin{align*}
\psi(\varphi-\lambda)=1
\end{align*}
$\mu$-a.e., so multiplication gives
\begin{align*}
M_\psi M_{\varphi-\lambda}=I
\end{align*}
and
\begin{align*}
M_{\varphi-\lambda}M_\psi=I.
\end{align*}
Thus $M_\varphi-\lambda I$ is invertible, and $\lambda\in\rho(M_\varphi)$.
Now suppose $\lambda\in\operatorname{ess\,ran}(\varphi)$. We prove that $M_\varphi-\lambda I$ cannot have a bounded inverse. Assume toward a contradiction that $M_{\varphi-\lambda}$ is invertible, and let $S\in\mathcal{L}(L^2(X,\mu))$ be its inverse. Define
\begin{align*}
C:=\|S\|_{\mathcal{L}(L^2(X,\mu))}.
\end{align*}
Since $S M_{\varphi-\lambda}=I$, every $f\in L^2(X,\mu)$ satisfies
\begin{align*}
\|f\|_{L^2(X,\mu)}
=
\|S M_{\varphi-\lambda}f\|_{L^2(X,\mu)}
\le
C\|(\varphi-\lambda)f\|_{L^2(X,\mu)}.
\end{align*}
This is a bounded-below estimate for multiplication by $\varphi-\lambda$.
The definition of essential range says that for every $n\in\mathbb N$, the set
\begin{align*}
A_n:=\{x\in X:|\varphi(x)-\lambda|<1/n\}
\end{align*}
has positive measure. The semi-finiteness of $(X,\mathcal{A},\mu)$ says that every measurable set of positive measure contains a measurable subset of finite positive measure. Applying this to $A_n$, choose a measurable subset $B_n\subset A_n$ with $0<\mu(B_n)<\infty$, and define $f_n:=\mathbb{1}_{B_n}$. Then $f_n\in L^2(X,\mu)$ and
\begin{align*}
\|f_n\|_{L^2(X,\mu)}^2=\mu(B_n)>0.
\end{align*}
Because $B_n\subset A_n$, we have $|\varphi(x)-\lambda|<1/n$ for every $x\in B_n$. Therefore
\begin{align*}
\|(\varphi-\lambda)f_n\|_{L^2(X,\mu)}^2
=
\int_{B_n}|\varphi(x)-\lambda|^2\,d\mu(x)
\le
\frac{1}{n^2}\mu(B_n)
=
\frac{1}{n^2}\|f_n\|_{L^2(X,\mu)}^2.
\end{align*}
Substituting this into the bounded-below estimate gives
\begin{align*}
\|f_n\|_{L^2(X,\mu)}
\le
\frac{C}{n}\|f_n\|_{L^2(X,\mu)}.
\end{align*}
For $n>C$, this is impossible because $\|f_n\|_{L^2(X,\mu)}>0$. Hence $M_{\varphi-\lambda}$ is not invertible. Therefore every $\lambda$ in the closed essential range belongs to $\sigma(M_\varphi)$, and every $\lambda$ outside the closed essential range belongs to $\rho(M_\varphi)$. This proves
\begin{align*}
\sigma(M_\varphi)=\operatorname{ess\,ran}(\varphi).
\end{align*}[/guided]