I am having a particularly difficult time starting the following problem
Suppose $(X,\mathcal{S}, \mu)$ is a measure space and $f:X\rightarrow > [0,\infty]$ is an $\mathcal{S}$-measurable function. Prove that $$\int f\,d\mu>0 \text{ if and only if } \mu(\{x\in X: f(x)>0\})>0.$$
For a measure space $(X,\mathcal{S},\mu)$ and a measurable function $f:X\rightarrow[0,\infty]$, my textbook defines $\int fd\mu$ as $$\sup\left\{\sum_{k=1}^m a_k\mu(A_k): \sum_{k=1}^m a_k \chi_{A_k}\leq f, \text{ where } m\in\mathbf{Z}^+, a_1,\ldots, a_m\geq 0 \text{ and } A_1,\ldots, A_m\in\mathcal{S}\right\}.$$ Thus I know for the $\implies$ direction, I have that this $\sup>0$. I see that this $\sup$ is taken over the set of certain sums of measures of subsets of $X$. I just don't know how to draw a connection with this and the condition I want to prove, that being $\mu(\{x\in X: f(x)>0\})>0.$ For the $\impliedby$ direction, I am just as lost, but I think understanding the first direction could make the converse easier for me to understand.
So, could any of you provide me with a hint, or maybe help me understand in a more intuitive way what this question is asking? I would really appreciate it!
Edit: I do believe it is assumed that $f$ is a nonnegative function.
Hint
Assume that $0\le a_k\chi_{A_k}\le f.$ Then we have that
$$a_k\mu(A_k)\le a_k\mu(\{x\in X: f(x)>0\}).$$
What do you get if $a_k>0$ and $\mu(\{x\in X: f(x)>0\})\le 0?$