Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
For an explicit example, you might try $$ f(x) = \sum_{n=1}^\infty \dfrac{1}{n^2} (\tanh(n^2(x-n)) - 1)$$$$ f(x) = \sum_{n=1}^\infty \dfrac{1}{n^2} (1 - \tanh(n^2(x-n)))$$ noting that $f'(n) < -1$.
For an explicit example, you might try $$ f(x) = \sum_{n=1}^\infty \dfrac{1}{n^2} (\tanh(n^2(x-n)) - 1)$$ noting that $f'(n) < -1$.
For an explicit example, you might try $$ f(x) = \sum_{n=1}^\infty \dfrac{1}{n^2} (1 - \tanh(n^2(x-n)))$$ noting that $f'(n) < -1$.