Given the inner product
$$\langle f,g \rangle := \frac12 \int_{-\pi}^{\pi}f(x)\overline{g(x)}\,dx$$
I'm searching an example of $f \neq 0$ such that $\langle f,f\rangle=0$.
Given the inner product
$$\langle f,g \rangle := \frac12 \int_{-\pi}^{\pi}f(x)\overline{g(x)}\,dx$$
I'm searching an example of $f \neq 0$ such that $\langle f,f\rangle=0$.
What you want is impossible for one of two reasons. Either
$(1)$ We take it on linear algebra faith that the object is a well defined inner product, so such an $f$ cannot exist because it violates positive definiteness or
$(2)$ We prove it with calculus.
$$\langle f, f \rangle = \frac{1}{2}\int_{-\pi}^{\pi} |f(x)|^2dx$$
The integrand is strictly nonnegative. Thus the only way the integral evaluates to $0$ is if the integrand is $0$:
$$|f(x)|^2 = 0 \: \text{a.e.} \implies f(x) = 0 \: \text{a.e.}$$