Consider the function f(x) which is defined to be -x when x < 0 and 2x when x> 0. This function has a corner at the orgin and so is not smooth there. We could replace f by a smooth function g if we could find a parabola that is tangent to f at two points. The new function g would be defined to agree with f, except between the two points of tangency where it would agree with the parabola.

More than one parabola would do for this purpose. Big ones would give smoother transitions than small ones. Find any one.

As always any help/hints are greatly appreciated!