Second Order Polynomial Function