Lambda function for Taylor series formulation.