Linear and Nonlinear patterns and functions