Geometric Visualization of Directional Derivative

Geometric Visualization of Directional Derivative
Loading the math board and drawing, please wait…
2015-01-06 10:50
In collections Calculus - GeoGebra Book
This GeoGebra example demonstrates the geometric interpretation of the directional derivative of a multivariable function. It visualizes the directional derivative of f(x,y) at a given point along a specified direction vector u on a 3D surface, including the tangent plane, direction vector, partial derivatives f_x and f_y, and the limit definition. Users can adjust the point position and direction angle theta using interactive sliders, observing how the directional derivative emerges as a linear combination of the partial derivatives weighted by the direction cosines, namely D_u f equals f_x times cosine of theta plus f_y times sine of theta. The applet clearly displays the tangent plane to the surface at the chosen point, the direction vector projected onto the xy-plane, and the slope of the surface in the specified direction. It also illustrates the limit definition of the directional derivative, showing how the rate of change is computed along the chosen direction. This tool is well suited for teaching and learning multivariable differential calculus in a calculus course, helping students build intuition about how partial derivatives combine to produce directional rates of change and reinforcing the geometric relationship between tangent planes, directional slopes, and the gradient.

GeoGebra Commands & Parameters

  1. PointIn(z = 0) → C0
  2. PointIn(z = 0) → P
  3. CurveCartesian(s, y0, f(s, y0), s, -10, 10) → curveY0
  4. CurveCartesian(x0, s, f(x0, s), s, -10, 10) → curveX0
  5. Segment(P, Q) → segPQ
  6. Derivative(f, x) → f_x
  7. Derivative(f, y) → f_y
  8. Vector(Q, Q + (1, 0, f_x(x0, y0))) → u_x
  9. Vector(Q, Q + (0, 1, f_y(x0, y0))) → u_y
  10. Vector(Q, Q + ((-f_x(x0, y0)), (-f_y(x0, y0)), 1)) → nQ
  11. IntersectPath(planeY0, planeTangent) → tangentX
  12. IntersectPath(planeX0, planeTangent) → tangentY
  13. Circle(P, 1, xOyPlane) → circleP
  14. Point(circleP) → P_u
  15. Vector(P, P_u) → u
  16. IntersectPath(planePu, planeTangent) → tangentU
  17. CurveCartesian(x0 + (s * x(u)), y0 + (s * y(u)), f(x0 + (s * x(u)), y0 + (s * y(u))), s, -10, 10) → curveU
  18. Vector(Q, Q + (x(u), y(u), (f_x(x0, y0) * x(u)) + (f_y(x0, y0) * y(u)))) → u_t

AI Drawing Prompt Reference

Draw a 3D surface f(x,y) and its tangent plane at a specified point P. Adjust the position of point P and the direction angle θ to observe how the directional derivative D_θf is a linear combination of the partial derivatives f_x and f_y. Draw the direction vector u and the partial derivative vectors u_x and u_y, as well as the normal vector n. Show the intersection lines tangentX and tangentY of the tangent plane with the x0 and y0 planes, and the projection of direction vector u on the tangent plane tangentU. Finally, draw the curve curveU representing the directional derivative D_θf.
The prompt above was compiled from the original drawing commands and is for reference only.