Derivatives and Completing the Square