Choosing a Suitable Function

Two canonical choices are to choose f so that either

or