Consider the inner product: $\langle f,g\rangle = \frac{1}{\pi}\int_{-\pi}^{\pi}f(x)g(x)dx$
Show that $\sin{(x)}$ and $\cos{(x)}$ are orthonormal vectors with respect to this inner product. Then compute $\|\sin{(x)} + \cos{(x)}\|$ induced by inner product.
Please help verify my result.
$\frac{1}{\pi}\int_{-\pi}^{\pi}\sin{(x)}\cos{(x)}dx$ after u-sub I got
$\frac{1}{\pi}\big[\frac{1}{2}\sin^2{(x)}\big]_{-\pi}^{\pi} = 0$
So this result indicates $\sin{(x)}$ and $\cos{(x)}$ are orthonormal because it equals zero.
Then for norm $\|\sin{(x)} + cos{(x)}\|$
$\Rightarrow \frac{1}{\pi}\int_{-\pi}^{\pi}\sqrt{(\sin{(x)}+\cos{(x)})^2}dx = \big[-\cos{(x)} + \sin{(x)}\big]_{-\pi}^{\pi}=0$
Not sure if I just needed to do integrals for this problem.