Here is a problem from Luenberger's optimization by vector space methods. I would appreciate steps to proceed.
Let $\mathcal{P}_n\subset\mathbb{R}[x]$ be polynomials of degree at most $n\ge0$. Compute the norm of the differentiation operator $D:\mathcal{P}_n\rightarrow\mathcal{P}_n$, $(Dp)(x)=p'(x)$ relative to the norm $$\|p\|^2=\int_{\mathbb{R}}|p(x)|^2e^{-x^2/2}\text{ d}t.$$
Could this be done with Lagrange multipliers, trying to maximize $\int_{\mathbb{R}}(Dp)^2\text{ d}\mu$ where $\int_{\mathbb{R}}p^2\text{ d}\mu=1$? I tried this, and got to $\lambda=\frac{\int_{\mathbb{R}}D^2p\text{ d}\mu}{\int_{\mathbb{R}}p\text{ d}\mu}$, but did not know where to go from here.