Let $f : [0,1] \times [0,1] \longrightarrow [0,\infty)$ be a continuous function. Suppose that $$\int_{0}^{1} \left ( \int_{0}^{1} f(x,y)\ dy \right ) dx = 0.$$ Prove that $f$ is the identically zero function.
My attempt $:$ $f$ is a non-negative measurable function on $[0,1] \times [0,1].$ So by Tonelli's theorem we have $$\iint_{[0,1] \times [0,1]} f(x,y)\ dx\ dy = \int_{0}^{1} \left ( \int_{0}^{1} f(x,y)\ dy \right ) dx = 0.$$ So if there exists $\textbf {x}_0= (x_0,y_0) \in [0,1] \times [0,1]$ such that $f(\textbf {x}_0) > 0,$ by continuity of $f$ at $\textbf {x}_0$ there exists an open ball $B( \textbf {x}_0, \delta)$ of some radius $\delta > 0$ surrounding $\textbf {x}_0$ with $B(\textbf {x}_0, \delta) \subseteq [0,1] \times [0,1]$ such that for any $\textbf {x} = (x,y) \in B(\textbf {x}_0, \delta)$ we have $$f(\textbf {x}) \gt \frac {f(\textbf{x}_0)} {2 \pi {\delta}^2}.$$ Since $f$ is a non-negative function so we must have $$\frac {f(\textbf {x}_0 )} {2} \lt \iint_{B(\textbf {x}_0, \delta)} f(x,y)\ dx\ dy \leq \iint_{[0,1] \times [0,1]} f(x,y)\ dx\ dy = 0$$ a contradiction. This shows that $f \equiv 0$ on $[0,1] \times [0,1].$
Can anybody plaese check my proof to ascertain whether it holds good or not? Thanks in advance.
Two problems with your proof :
The true fact is that $\iint_{B(x_0,\delta)} f(x,y)dxdy > \color{blue}{m(B(x_0,\delta))}\frac{f(x_0)}{2}$ where $m(\cdot)$ denotes the Lebesgue measure of the given set. Since this set definitely has Lebesgue measure non-zero, we know that the above statement is still one of significance : when this is continued with the statements you present, things look good : $$ 0 < \frac{f(x_0)}{2} < \iint_{B(x_0,\delta)} f(x,y)dxdy < \iint_{[0,1]^2} f(x,y)dxdy = 0 $$
Contradiction.
To work around this is simple : simply take $S=B(x_0,\delta) \cap [0,1]^2$. All you need to do is replace the ball by $S$. But you need to make sure $S$ has non-zero measure : I am sure you can do this, take it as an exercise (hint : try to find a ball contained in $S$). Of course, then we just have : $$ 0 < \frac{f(x_0)}{2} < \iint_{B(x_0,\delta) \cap [0,1]^2} f(x,y)dxdy < \iint_{[0,1]^2} f(x,y)dxdy = 0 $$
Following OP edits, the first problem was solved by taking $f(x_0)\over 2 \pi \delta^2$ instead of $\frac{f(x_0)}{2}$, which then multiplies with $\pi \delta^2 = m(B(x_0,\delta))$ to make OP's first issue null.