Prove that if $f$ is continuous and nonnegative in the interval $[a,b]$, then the integral is greater than or equal to $0$

2k Views Asked by At

Prove that if $f$ is continuous and nonnegative in the interval $[a,b]$, then $$A=\int_a^b f(x) \, dx \ge 0$$

My attempted proof: Suppose otherwise i.e. $$\int_a^b f(x) \, dx < 0$$ Then by definition $\exists \delta$ such that $\forall \delta$-fine subdivisions of $[a,b]$ and any choice of $\xi_i[x_{i-1},x_i]$ then $$\left|\sum_{i=0}^n f(\xi_i)\Delta x_i-A\right|<0<\epsilon$$ This implies that $$\sum_{i=0}^n f(\xi_i)\Delta x_i-A$$ is negative.

I'm stuck at this point, any help? Also, is it possible to prove this directly? I think (I could be wrong) it's somewhat trivial since the function is nonnegative on $[a,b]$ i.e. $f(x)=0$ or $f(x)>0$ then then it should just follow that the integral would be just that.

UPDATE: John Don pointed out how I was defining the integral. I am not using Darboux definition (unfortunately) but the following:

Let$f(x)$ be a function on $[a,b]$. We say that $\int_a^b f(x) \, dx$ exists and equals A if $\forall \epsilon > 0, \exists \delta > 0$ such that $\forall$ subdivisions of [a,b] which are $\delta$-fine (i.e. $\Delta x_i < \delta$, $\forall i$) and $\forall \xi_i\in [x_{i-1},x_i]$, then $$\left|\sum_{i=0}^n f(\xi_i)\Delta x_i-A\right|<\epsilon$$

3

There are 3 best solutions below

2
On

Without loss of generality, assume that $[a,b]=[0,1]$. Because $f$ is Riemann integrable, by the definition you can easily deduce that $A=\lim_{n\rightarrow\infty}\displaystyle\sum_{k=1}^{n}f\left(\dfrac{k}{n}\right)\dfrac{1}{n}$. Now $f(k/n)\geq 0$ so $\displaystyle\sum_{k=1}^{n}f\left(\dfrac{k}{n}\right)\dfrac{1}{n}\geq 0$, then so is its limit.

4
On

Let $m$ be the minimum value and $M$ the maximum value of the continuous function $f$ on the interval $[a,b]$. Then $$ m(b-a)\le\int_a^b f(x)\,dx\le M(b-a) $$

More generally, for a Riemann integrable function $f$ over $[a,b]$, if $l$ is a lower bound for $f$, then $$ l(b-a)\le \int_a^b f(x)\,dx $$ Just take a Riemann sum relative to the trivial subdivision.

0
On

Be $F$ one primitive of $f$ ( If $f$ is conntinuous, $F$ is differentiable and $F'(x)=f(x)$)

$\displaystyle A=\int_a^b f(x) \, dx= F(b)-F(a)$ but as $f(x)\ge 0$ on $[a,b]$ then $F$ is increasing so $A=F(b)-F(a)\ge0$