answered 6 years ago
Does this :
sage: f=function("f") sage: latex(diff(f(x),x)) \frac{\partial}{\partial x}f\left(x\right)
answers your question ?