Functions of Several Variables

This is no big deal. For example, let g(x,y)=sin(xy)

In[32]:=

  p3=Plot3D[Sin[x y],{x,0,3},{y,0,3}]

Out[33]=

  -SurfaceGraphics-

In[34]:=

  Show[p3,ViewPoint->{0,-2,0}]

Out[35]=

  -SurfaceGraphics-

In[36]:=

  Show[p3,Shading->False]
  

Out[37]=

  -SurfaceGraphics-

Partial derivatives hold one or more of the variables constant and differentiate with respect to the variable that is not fixed.

Here are some first partial derivatives.

In[38]:=

  D[x^2 y + 2 Sin[y],x]

Out[38]=

  2 x y

In[39]:=

  D[x^2 y + 2 Sin[y],y]

Out[39]=

   2
  x  + 2 Cos[y]

Here are some second partial derivatives.

First Dxy, that is, partial with respect to x first, then with
respect to y.

In[40]:=

  D[x^2 y + 2 Sin[y],y,x]

Out[40]=

  2 x

Next Dyx

In[41]:=

  D[x^2 y + 2 Sin[y],x,y]

Out[41]=

  2 x

Now, D^3y, the third partial with respect to y.

In[42]:=

  D[x^2 y + 2 Sin[y],{y,3}]

Out[42]=

  -2 Cos[y]

You will recall that for "nice" functions, that is, functions whose first and second partials, along with f itself, are continuous, we always have the mixed second partials being equal.

In[43]:=

  
  Clear[x,y,z,g,h]
  g[x_,y_]:=Sin[x^2 y]
  h[x_,y_,z_]:=x Exp[y] Sin[Pi z]

The following (double equal signs, ==) is Mathematica's way of asking if something is true or false.

In[44]:=

  D[g[x,y],x,y]==D[g[x,y],y,x]

Out[44]=

  True

In[45]:=

  D[h[x,y,z],x,y]==D[h[x,y,z],y,x]

Out[45]=

  True

In[46]:=

  D[h[x,y,z],x,z]==D[h[x,y,z],z,x]

Out[46]=

  True

In[47]:=

  D[h[x,y,z],z,y]==D[h[x,y,z],y,z]

Out[47]=

  True

Up to Some Multivariable Calculus Ideas