Say I have a function $f(x) = x^2 + 2$
This function never touches the x-axis, but it could be easily transformed to touch it by cancelling the constant as in $g(x) = (x^2 + 2) - 2$
Is there any way to generalize this, so that I can make any function "magnet" to the x-axis?