Let $Y=C[0,1]$, prove that $\langle f,g \rangle = \int _0^1 f(x)g(x)dt$ is an inner product.
Just need to talk about the condition on the title. Can we simply say $<f,f>=0$ so $||f||=0$ so by definition of norms, this means $\iff f=0$ which proves the statement?
By properties of integrals, $\langle f,f\rangle = 0$ implies $$ 0 \le \int_{0}^{x}|f(t)|^2dt \le \int_{0}^{x}|f(t)|^2dt+\int_{x}^{1}|f(t)|^2dt = \int_{0}^{1}|f(t)|^2dt = 0. $$ Therefore, $\int_{0}^{x}|f(t)|^2dt=0$ for all $x \in [0,1]$. And $|f(t)|^2$ is continuous on $[0,1]$ because $f(t)$ is continuous. Therefore, by the Fundamental Theorem of Calculus, $$ 0 = \frac{d}{dx}\int_{0}^{x}|f(t)|^2dt = |f(x)|^2,\;\; 0 < x < 1. $$ The right derivative at $0$ is $|f(0)|^2$, which must also be $0$; the left derivative at $1$ is $|f(1)|^2$, which must also be $0$. So $f\equiv 0$.