let's say $f: \mathbb{R}^n \to [0,+\infty]$ is a positive measurable function. I want to prove that $\int_{\mathbb{R^{n}}} f \, d\lambda=0$ if and only if $f(x)=0$ almost everywhere.
Let's say $f(x)=0$ almost everywhere. Name $g$ the zero function. Now it follows that $g$ and $f$ are almost everywhere the same. This means that the intergal of $f$ equals the integral of $g$ (which exists because we know that the integral of the zero function existst). This means that $\int_{\mathbb{R}^n} f \, d\lambda=\int_{\mathbb{R}^n} g \, d\lambda=0$
Now the other side. Let's say $\int_{\mathbb{R}^n} f \, d\lambda=0$ . I know I need to do something with $f$ is positive because when it's not this implication wouldn't work. I just don't know how to start with this side. How do you start to prove this or what are thet tools?