# Math Help - Integrable C-infinity function

1. ## Integrable C-infinity function

Is there a function $f(x)$ of class $C^{\infty}$ defined on $(0,\infty)$ such that $\lim_{x\to0}f(x)=\infty$ and $\int_0^{\infty}f(x)\,dx$ exists and is finite?

I found a function:

$f(x)=\left\{\begin{array}{lr}\frac{1}{\sqrt{x}}:&0

which fits everything except it's only class $C^1$ (because $f''(1)$ DNE).

Any ideas? I'm sure such a function exists; I'm just not sure whether it can be expressed in terms of elementary functions.

This is not a homework problem; I was just thinking.

2. What about $e^{-x}/\sqrt x$? It is $C^\infty$, it goes to ∞ at x=0, it's integrable on (0,1] (by comparison with $1/\sqrt x$), and it's integrable on [1,∞) (by comparison with $e^{-x}$).

3. Excellent. I believe $\int_0^{\infty}\frac{e^{-x}}{\sqrt{x}}\,dx=\sqrt{\pi}$, for those curious.