Solution (source code)

= Solution

The weighted <inner product> satisfies $\langle f,M\rangle=\int f=\rho(f)$. Therefore
$$
\boxed{\Pi f=\rho(f)M=Lf+f,\qquad\Pi=L+I}.
$$
The <identity operator> and $L$ are linear, bounded and <self-adjoint>, hence so is $\Pi$. Directly, $\|\Pi f\|_H=|\rho(f)|\leq\|f\|_H$; equality holds at $f=M$. Thus $\|\Pi\|=1$.