Loading…

Gradient and Directional Derivative Tool

Math Calculus • Multivariable Calculus

View all topics

You may type constants like pi, e and expressions like 1/sqrt(2). Graph shows a contour slice \(f(x,y,z_0)\) (using your \(z_0\) if 3D). Drag to pan, mouse wheel to zoom, double-click to reset. Hover the graph to probe the actual numeric value \(f(x,y)\) at the cursor.

Graph settings (optional)
Ready
Enter a function and click “Calculate”.

Graph

Contour slice: \(f(x,y,z_0)\)

Axes units are in your x/y input units. The arrow \(\nabla f\) (steepest ascent) and the unit direction \(u\) are shown at \((x_0,y_0)\) when defined.

Contour levels (actual numeric values used)

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is the gradient of a function f(x,y,z)?

The gradient is the vector of partial derivatives: ∇f = <∂f/∂x, ∂f/∂y, ∂f/∂z>. It points in the direction of steepest increase of the scalar field.

How is the directional derivative computed?

The directional derivative at a point uses the dot product D_uf(P) = ∇f(P) · u_hat. The direction must be a unit vector u_hat to represent change per 1 unit of distance.

Why does the tool normalize the direction vector?

If u is not unit length, the dot product scales with the length of u and no longer represents rate of change per unit distance. Normalizing uses u_hat = u / ||u|| to fix the direction length to 1.

What does the contour slice f(x,y,z0) mean for a 3D function?

For f(x,y,z), the graph shows the cross-section obtained by holding z fixed at your chosen z0 and plotting the contours in the x-y plane. This helps visualize how the function behaves around (x0, y0) at that z level.