Differentiation of functions of functions (simple problem based on it)