Chain Rule
Clear[f,x,y,t] D[f[x[t],y[t]],t]
Let's look at it in another way.
Clear[f]
grad2[f][x[t],y[t]].{x'[t],y'[t]}If you have a parametric curve r(t)=(x(t), y(t)), the dot (inner) product of the gradient vector with the derivative vector of the curve is the derivative of f(r(t)) or f(x(t),y(t)).
Up to The Gradient