Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Visualize the directional derivative in a 3D plot
ResourceFunction["DirectionalDerivativePlot3D"][f,{x,xmin,xmax},{y,ymin,ymax},pt,v]]] returns a plot of f along with a plot of the directional derivative vector at the point pt in the direction of the vector v. Several points and/or vectors can be given in a list. |
"ArrowSize" | Medium | changes the arrow size |
"BaseVectorPosition" | Automatic | determines the position of the base vector if drawn |
"DrawBaseVector" | False | whether to draw the base vector |
"DrawPlane" | False | whether to draw the plane determining the section |
"SectionStyle" | { { Red , Thickness [ Medium ] } } | style for the section |
"PointStyle" | PointSize [ Large ] | graphics directive to specify the style for the point(s) |
"UseLimit" | False | whether to use the limit definition to calculate the directional derivative |
"VectorStyle" | { { Red , Thickness [ Medium ] } } | graphics directive to specify the style for the vector(s) |
Visualize a directional derivative:
In[1]:= |
|
Out[1]= |
|
Plot using two direction vectors:
In[2]:= |
|
Out[2]= |
|
Plot using two direction vectors and two points:
In[3]:= |
|
Out[3]= |
|
If "DrawBaseVector" is set to True, then the vector determining the direction is plotted at the bottom of the plot:
In[4]:= |
|
Out[4]= |
|
Include the plane determining the section along with the base vector in the plot:
In[5]:= |
|
Out[5]= |
|
The option "BaseVectorPosition" allows the vector to be plotted in any plane:
In[6]:= |
|
Out[6]= |
|
Set a style for the vectors:
In[7]:= |
|
Out[7]= |
|
Add the base vectors and lower their position:
In[8]:= |
|
Out[8]= |
|
Limits are sometimes required to find the directional derivative of the following function:
In[9]:= |
|
Out[12]= |
|
Check that the directional derivative is not 0:
In[13]:= |
|
Out[13]= |
|
In[14]:= |
|
Out[14]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License