Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I need to find an infinitely differentiable function from $\mathbb{R}$ to $\mathbb{R}$ which is zero for all negative values and nonzero fo all positive values.

Thank you in advance

share|improve this question
    
math.stackexchange.com/q/98577/8581 –  B. S. Oct 31 '12 at 11:21
    
A standard example is $f(x)=e^{-1/x}$ if $x>0$ and $f(x)=0$ otherwise. –  wj32 Oct 31 '12 at 11:22
add comment

1 Answer

up vote 1 down vote accepted

$$f(x)=\left\{\begin{array}{rcl} 0 &\mbox{if} & x\leq 0 \\ \exp\left(-\frac{1}{x^2}\right)&\mbox{if}&x>0\end{array}\right.$$ is a good candidate. For any $n\in\mathbb{N}$ we have: $$\frac{d^n}{dx^n}\exp\left(-1/x^2\right) = p(1/x) \exp\left(-1/x^2\right)$$ where $p$ is a polynomial, so: $$\lim_{x\to 0^+} \frac{d^n}{dx^n}\exp\left(-1/x^2\right) = \lim_{z\to +\infty} p(z)\,e^{-z^2} = 0.$$

share|improve this answer
    
Is there a way to show that this function is infinitely differentiable ? –  user43418 Oct 31 '12 at 11:23
    
@user43418: See en.wikipedia.org/wiki/Non-analytic_smooth_function –  wj32 Oct 31 '12 at 11:26
add comment

Your Answer

 
discard

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.