Multivariable chain rule and directional derivatives