from sympy import * x = symbols('x')
f = Function('f') f= (x**3 * log(x)) f_prime = f.diff(x) (f_prime/x**2).subs(x, E)