使用sympy进行微分

Functions

differentiate(expr[, wrt, wrt_list])

返回表达式的导数。