Examples 5 to 9 of chain rule