Skip to main content
1 of 2
Willie Wong
  • 39k
  • 4
  • 94
  • 176

Let $f$ be your two-piece linear function. Let $\varphi\in C^\infty_0((-\epsilon,\epsilon))$ for some small $\epsilon$, such that

  • $\varphi$ is even
  • the integral $\int \varphi = 1$
  • $x\varphi' \leq 0$

Then you can check that the convolution $\varphi*f$ is increasing, smooth, and agrees with $f$ outside $(-2\epsilon,2\epsilon)$.

Taking appropriately rescaled versions of $\varphi$ you get uniform approximations.

Willie Wong
  • 39k
  • 4
  • 94
  • 176