Follow-up on my last question.
It is well known that two functions $f(x)$ and $g(x)$ are orthogonal, if
$$\int f(x)g(x)\text{dx}=0$$
and it is also known that $f(x)=\sin(x)$ and $g(x)=\cos(x)$ satisfy this condition. This confuses me, because $$\int \sin(x) \cos(x)\text{dx}=-0.5\cos^2(x) $$ which obviously is not always zero, but only if I choose the interval of integration correctly. This interval relates to their periodicity.
My question:
- How do I define the interval of integration for non-periodic functions, whose inner product is non-periodic?
- Or put differently: Can I, and if so how, define orthogonality of non-periodic functions?