Let's say I have the function $$f(x)=\begin{Bmatrix} x & \textrm{,} & \textrm{if } x\leqslant 1.5\\ \frac{x}{3}+1 & \textrm{,} & \textrm{otherwise} \end{Bmatrix}$$ which has a sharp edge at 1.5, i.e. a discontinuity in the first derivative. I would like to smooth that transition with some other function. In practice I would like to set a window around the sharp edge in which the transition happens: $$f(x)=\begin{Bmatrix} x & \textrm{, } & \textrm{if } x\leqslant 1.5-t\\ s(x) & \textrm{, } & \textrm{if } 1.5-t\leqslant x\leqslant 1.5+t\\ \frac{x}{3}+1 & \textrm{, } & \textrm{otherwise} \end{Bmatrix}$$ with s(x) being my transition function and t being half the window width. I could choose a quadratic but that would create a sharp edge in the first derivative (i.e. a discontinuity in the second derivative). I'd like a function f(x) that ends up with no discontinuities in any of the derivatives and is monotonically nondecreasing.
If anyone can point me in the right direction of what I'm looking for, I'd be thankful.

