[step:Expand the bias and isolate the second derivative term]For Lebesgue-a.e. $x\in\mathbb{R}$, the expectation of the estimator is
\begin{align*}
m_h(x)=\mathbb{E}\left[\frac{1}{h}K\left(\frac{x-X_1}{h}\right)\right].
\end{align*}
Since $X_1$ has density $f$ with respect to $\mathcal L^1$,
\begin{align*}
m_h(x)=\frac{1}{h}\int_{\mathbb{R}} K\left(\frac{x-y}{h}\right)f(y)\,d\mathcal{L}^1(y).
\end{align*}
Using the substitution $u=(x-y)/h$, so that $y=x-hu$ and $d\mathcal{L}^1(y)=h\,d\mathcal{L}^1(u)$, we obtain, for Lebesgue-a.e. $x$,
\begin{align*}
m_h(x)
=
\int_{\mathbb{R}} K(u)f(x-hu)\,d\mathcal{L}^1(u).
\end{align*}
Consequently, for Lebesgue-a.e. $x$,
\begin{align*}
b_h(x)
=
\int_{\mathbb{R}} K(u)\{f(x-hu)-f(x)\}\,d\mathcal{L}^1(u).
\end{align*}
Because $K\in L^1(\mathbb{R})$ and $\int_{\mathbb{R}} |u|^2|K(u)|\,d\mathcal{L}^1(u)<\infty$, the first moment $\int_{\mathbb{R}} |u||K(u)|\,d\mathcal{L}^1(u)$ is finite. Since $K$ is symmetric, the function $u\mapsto uK(u)$ is odd and integrable, hence
\begin{align*}
\int_{\mathbb{R}} uK(u)\,d\mathcal{L}^1(u)=0.
\end{align*}
For almost every pair $(x,u)$, the second-order Taylor formula with integral remainder gives
\begin{align*}
f(x-hu)-f(x)=-hu f'(x)+h^2u^2\int_0^1(1-t)f''(x-thu)\,d\mathcal{L}^1(t),
\end{align*}
where the Taylor formula with integral remainder is applicable because $f'$ is absolutely continuous on compact intervals and $f''$ is its almost-everywhere derivative. We fix a measurable representative of $f''$. Then $(x,u,t)\mapsto f''(x-thu)$ is measurable, and for each fixed $(x,u)$ the $t$-integral is finite because $f''\in L^1_{\mathrm{loc}}(\mathbb R)$. The subsequent $u$-integral defining the remainder is interpreted as the measurable $L^2(\mathbb R)$ function whose existence and convergence are asserted by the stated remainder assumption. Hence
\begin{align*}
b_h(x)=-hf'(x)\int_{\mathbb{R}}uK(u)\,d\mathcal{L}^1(u)+h^2\int_{\mathbb{R}}u^2K(u)\int_0^1(1-t)f''(x-thu)\,d\mathcal{L}^1(t)\,d\mathcal{L}^1(u).
\end{align*}
Using $\int_{\mathbb R}uK(u)\,d\mathcal L^1(u)=0$, we obtain
\begin{align*}
b_h(x)=h^2\int_{\mathbb{R}}u^2K(u)\int_0^1(1-t)f''(x-thu)\,d\mathcal{L}^1(t)\,d\mathcal{L}^1(u).
\end{align*}
Define the bias remainder $\rho_h:\mathbb{R}\to\mathbb{R}$ by
\begin{align*}
\rho_h(x)=2\int_{\mathbb{R}}u^2K(u)\int_0^1(1-t)\left\{f''(x-thu)-f''(x)\right\}\,d\mathcal{L}^1(t)\,d\mathcal{L}^1(u).
\end{align*}
Since $\int_0^1(1-t)\,d\mathcal L^1(t)=1/2$, it follows that
\begin{align*}
b_h(x)=\frac{h^2}{2}\left(\mu_2(K)f''(x)+\rho_h(x)\right).
\end{align*}[/step]