Substituting $f(x) = x$ and $g(x) = \cos(\pi x)$, we get
\[\langle f, g\rangle=\int_{0}^{2} x \cos(\pi x) dx.\]
We can solve this integral using integration by parts, where $u = x$ and $dv = \cos(\pi x) dx$. Then $du = dx$ and $v = \frac{\sin(\pi x)}{\pi}$. The
Show more…