Изображение
Вот здесь подробно разбирают: http://mathprofi.ru/proizvodnaya_slozhnoi_funkcii.html