simple derivative function question



How about:

f(x) := block([y], subst(x, y, diff(y^3 , y)))$
f(10);
                 300
f(x);
                3x^2

Michel