Skip to main content
4 of 4
added 266 characters in body
Iosif Pinelis
  • 127.8k
  • 8
  • 107
  • 229

Let $$f_\pm(x):=e^x(1\pm c\sin x)$$ for some $c\in(0,1/2]$ and all real $x$.

Then $f'_\pm(x)=e^x(1\pm c(\cos x+\sin x))>0$ and $f''_\pm(x)=e^x(1\pm 2c\cos x)\ge0$ for all real $x$.

So, $f_+$ and $f_-$ are increasing differentiable convex functions that agree exactly on the countable set $\pi\mathbb Z$.


Moreover, one can modify this example to make the derivatives of $f_+$ and $f_-$ agree on the set $\pi\mathbb Z$ as well. This can be done by the formula $$f_\pm(x):=e^x(1+c\sin x+\tfrac12\,(c\pm c)\sin^2x )$$ for some $c\in(0,1/4]$ and all real $x$.

Iosif Pinelis
  • 127.8k
  • 8
  • 107
  • 229