Diff

Diff

Diff[ expr, var ] returns the derivative of an expression with respect to a variable.

Usages

Diff[ expr, var ]

Diff[ expr, var ] returns the derivative of expr with respect to var.

Example in rendered reduced
The derivative of a x^2 with respect to x. Diff[ a x^2, x ] ( a x^2 )' 2a x

Diff[ expr, var, n ]

Diff[ expr, var, n ] returns the n-th derivative of expr with respect to var.

Example in rendered reduced
The second derivative of x^3 with respect to x. Diff[ x^3, x, 2 ] ( x^3 )'' 6x