trigonometric functions and the chain rule 1863545