Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a continuous positive function whose integral over $(0,\infty)$ converges but whose limit is not zero?

closest I could think of is the Riemann or tent functions. but they are defined as $0$ in an endless number of points. I am looking for a function that is greater than $0$

does that even exists?

share|cite|improve this question
Take your tent functions and add, for example, $e^{-x}$. This sum would be strictly positive and integrable. – Jose27 Jan 26 '12 at 17:26
Note that if these is a limit, it has to be zero. – Najib Idrissi Jan 26 '12 at 17:28
Thanks guys!! really helpfull! :) – YNWA Jan 26 '12 at 18:30
up vote 6 down vote accepted

Yes, there is such a function:

Consider the function $f$ with domain $[0,\infty)$ whose graph coincides with the non-negative $x$-axis except around the positive integers. At a positive integer $n$, the graph of $f$ is a "spike" (an inverted V shape) of height one and width $1/2^{n-1}$, centered around $n$. These are your "tent" functions.

Now, following Jose27's comment, take $g(x)=f(x)+e^{-x}$.

Then $\limsup\limits_{x\rightarrow\infty}\ g(x)=1$, because of the spikes, while $\liminf\limits_{x\rightarrow\infty}\ g(x)=0$; thus $\lim\limits_{x\rightarrow\infty} g(x)$ does not exist.


$$ \int_0^\infty e^{-x}\,dx= 1 $$ and $$ \int_0^\infty f(x)\, dx =\sum_{n=1}^\infty {1\over 2^n }=1. $$ Thus, the integral $\int_0^\infty g(x)\,dx$ converges to 2.

Finally, note that $g$ is continuous and $g(x)=e^{-x}+f(x)\ge e^{-x}>0$ on $[0,\infty)$.

share|cite|improve this answer
oh my god! thats it...thanks to everybody...your the best! – YNWA Jan 26 '12 at 18:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.