Let $f(x)=x, g(x)=1+x^2$. Compute $\langle f, g\rangle,\|f\|$, and $\|g\|$ for (a) the $\mathrm{L}^2$ inner product $\langle f, g\rangle=\int_0^1 f(x) g(x) d x ;(b)$ the $\mathrm{L}^2$ inner product $\langle f, g\rangle=\int_{-1}^1 f(x) g(x) d x$; (c) the weighted inner product $\langle f, g\rangle=\int_0^1 f(x) g(x) x d x$.