We used to have to do those kinds of problems a lot in calculus... Unfortunatly it was so painful I seemed to have blotted it out from my memory...