Given \(f(x,y,z)=x^2 z+y^3 z^2-xyz\) we want to find its directional derivative along the vector \(n\).
One way
n:=<-1,0,3>; g:=VectorCalculus[Gradient](x^2*z+y^3*z^2-x*y*z, [x,y,z]); Student[VectorCalculus][DotProduct](g,n/LinearAlgebra[Norm](n,2))
Gives
Another is
Gives the same result.