Recognizing Shapes of Nonlinear Functions