Given gradient and hessian of $\phi$ and the first and second derivatives of $h$ I would like to find the gradient and hessian matrix of $f$
Where $f:R^n \longrightarrow R$
$\phi:R^n \longrightarrow R$
$h:R \longrightarrow R$
According to the chain rule: $\nabla f = h'(\phi(x))\nabla\phi(x)$ Is it correct and trivial and doesn't need any other proof? And how can I find the hessian of $f$?