Use the chain rule to find and , where
First the pieces:



And putting it all together:
and