This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
How to | Take a Derivative
Mathematica makes it easy to take even the most complicated derivatives involving any of its huge range of differentiable special functions.
Define a function with one variable, :
 Out[1]=
To find , type and press Shift+Enter:
 Out[2]=
This method works for any order; just add more primes:
 Out[3]=
Or use D. Its first argument is the function and its second argument is the variable:
 Out[4]=
For higher-order derivatives using D, the second argument is a list, :
 Out[5]=
Define a function with two variables, :
 Out[6]=
Take the first derivative with respect to and the second with respect to by combining the two forms (single variable and list):
 Out[7]=

The Heaviside theta function is treated as if it had an infinite pulse at zero, where it is undefined:
 Out[8]=
The HeavisideTheta function has special derivative properties:
 Out[9]=
This plots the HeavisideTheta (green) and DiracDelta (red) functions:
 Out[10]=