D
D[f, x] gives the partial derivative of f with respect to x.
D[f, {x, n}] gives the nth derivative.
Examples
First derivative:
D[x^3, x]
(* 3 x^2 *)Second derivative:
D[Sin[x], {x, 2}]
(* -Sin[x] *)Partial derivative:
D[x^2 y, x]
(* 2 x y *)Please visit the official Wolfram Language Reference for more details.