How can I assign a derivative result to a function?



Hello,

I'm a beginner user of Maxima and I'm trying to do something like:

f(x):=x^3;
g(x):=diff(f(x));

But when I try to get the value of g(x) (g(3), for example) Maxima only
show me 0.

How would be the correct syntax of this assignment?

Thanks in advance.

Marcos Paulo Serafim