Li-Fan Chen says to YSITD https://math.stackexchange.com/questions/728094/approximate-x-with-a-smooth-function