Vector Fields
You must include this line before you can plot vector fields
In[1]:=
Here we define a vector field explicitly
In[2]:=
In[3]:=
Out[3]=
We plot the vecor field with the command:
In[5]:=
Out[5]=
This time will compute the vector field which is the gradient of a function f:
In[6]:=
In[7]:=
Out[7]=
Mathematica can compute the partial derivatives for us:
In[8]:=
Out[8]=
Out[9]=
Now, create a new function which gives us the gradient of f at the point (x,y):
In[10]:=
In[11]:=
Out[11]=
Now, we plot this new vector field
In[12]:=
Out[12]=
Here we plot more points
In[13]:=
Out[13]=
In[14]:=
Out[14]=
Created by Mathematica (October 21, 2004)