Examples 1 to 4 of chain rule