# How to | Take a Derivative

The Wolfram Language 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, :

 In[1]:=
 Out[1]=

To find , type f'[x] and press :

 In[2]:=
 Out[2]=

This method works for any order; just add more primes:

 In[3]:=
 Out[3]=

Or use D. Its first argument is the function and its second argument is the variable:

 In[4]:=
 Out[4]=

For higher-order derivatives using D, the second argument is a list, {variable,order}:

 In[5]:=
 Out[5]=

Define a function with two variables, :

 In[6]:=
 Out[6]=

Take the first derivative with respect to and the second with respect to by combining the two forms (single variable and list):

 In[7]:=
 Out[7]=

The Heaviside theta function is treated as if it had an infinite pulse at zero, where it is undefined:

 In[1]:=
 Out[1]=

The HeavisideTheta function has special derivative properties:

 In[2]:=
 Out[2]=

This plots the HeavisideTheta (green) and DiracDelta (red) functions:

 In[3]:=
 Out[3]=