Question:
I've been working on a problem involving inner product spaces with inner product given by: $$ \langle f, g\rangle = \int^{\pi}_{-\pi} f(x)g(x)dx \hspace{0.5cm} \text{for every } f,g \in \mathcal{C}[-\pi, \pi] $$ As part of the problem, I've come to a point where the following inner product $$ \int^{\pi}_{-\pi} \sin(ax)\sin(bx) = 0 \hspace{0.5cm} \text{ if } a \not = b \text{ and } a, b \in \mathbb{Z^{+}}$$ must be true for the purposes of the problem.
Approach:
First I tried to simply evaluate the integral using integration by parts: $$ -\frac{\sin(ax)\cos(bx)}{b}\bigg|^{\pi}_{-\pi} + \frac{a}{b}\int^{\pi}_{-\pi}\cos(ax)\cos(bx)dx $$ evaluating to $$ 0 + \frac{a}{b}\int^{\pi}_{-\pi}\cos(ax)\cos(bx)dx $$ I took this another step arriving at: $$ \frac{a}{b} \cdot \frac{\cos(ax)\sin(bx)}{b} + \frac{a^2}{b^2} \cdot \int^{\pi}_{-\pi} \sin(ax)\sin(bx)dx $$ $$ 0 + \frac{a^2}{b^2} \cdot \int^{\pi}_{-\pi} \sin(ax)\sin(bx)dx $$ At this point, it seems that the method I am using to evaluate the integral will lead to the integral repeating itself infinitely with a larger coefficient each time but still evaluating to zero each time. Is this enough to conclude that the integral evaluates to zero?
We have \begin{align} \int^{\pi}_{-\pi} \sin(ax)\sin(bx) \mathbb{d}x&=2\int^{\pi}_{0} \sin(ax)\sin(bx) \mathbb{d}x \end{align} Because the function is even. \begin{align} &=2 \left( \int^{\pi/2}_{0} \sin(ax)\sin(bx)\mathbb{d}x + \int^{\pi}_{\pi/2} \sin(ax)\sin(bx) \mathbb{d}x\right)\\ &=2 \left( \int^{\pi/2}_{0} \sin(a(\pi/2-x))\sin(b(\pi/2-x))\mathbb{d}x + \int^{\pi}_{\pi/2} \sin(ax)\sin(bx) \mathbb{d}x\right)\\ &\pi/2-x=u, \frac{du}{dx} = -1, \text{ bounds are now $\pi$ and $\pi/2$}\\ &=2 \left( -\int^{\pi}_{\pi/2} \sin(au)\sin(bu)\mathbb{d}u + \int^{\pi}_{\pi/2} \sin(ax)\sin(bx) \mathbb{d}x\right)\\ &=0 \end{align}