var('z')
f=function('f',z);f
f=(i*z**3+3*z**2)**3;f
var('x')
x=diff(f,z);x
x(0+2*I)