While studying Fourier series, I encountered the fact that
The set of piecewise continuous functions along with the inner product $$\langle f,g \rangle=\int_0 ^{2\pi}f(x)g(x) \, \mathrm{d}x$$ form an inner product space.
However, when trying to verify this fact, I was unable to prove positive definiteness. I know that $\int_0 ^{2\pi}|f|^2 \, \mathrm{d}x=0\implies f=0$ if $f$ is continuous on the entire interval, but the allowance of a finite number of discontinuities complicates things. Is the result, as stated, incorrect or am i missing something? If it is incorrect, why can we find Fourier expansion of a function using inner product-space methods for functions which have a finite but non-zero number of discontinuities?