diff(f(x),x);
diff(sin(x),x); cos(x)
diff(sin(x),x,x); // x で sin(x) を二階微分 -sin(x)
diff(sin(x*y),x,y); // sin(xy) を x, y で一回ずつ微分 cos(x y) - x y sin(x y)