Quadratic and linear fubction