I wanted to understand defination of schwartz class function .
So I am trying to find example of function f(x) such that
$\lim_{|x|\to \infty}f^{(n)}(x)=0$ where $n\in \mathbb N\cup\{0\}$ (this should true for all n)
But $\lim_{|x|\to \infty}x^af^{(n)}(x)\neq 0$ where $n\in \mathbb N\cup\{0\}$ for some $a>1$
I tried many examples but did not get.
Please Help me to find such an example
Any help will be appreciated
Let $f(x)=\frac 1 {x^{2}}$. Then the conditions are satisfied with $a=2, n=0$. If you insist on an example where $f$ is smooth on the whole line you could multiply this function by a smooth function $g(x)$ such that $g=0$ in $(-1,1)$ and $g(x)=1$ for $|x| >2$.