Identify linear and nonlinear functions