Non-unit direction
For f=x²y+y³ at (1,2), ∇f = ⟨4,13⟩. The direction ⟨3,4⟩ becomes ⟨3/5,4/5⟩.
The directional derivative is 4(3/5)+13(4/5)=12.8.
Enter a multivariable function, a point, and any nonzero direction vector. The calculator finds the symbolic gradient, evaluates it at the point, normalizes the direction, and computes the directional derivative—all locally in your browser.
Use ^ for powers and * between variables: x*y, not xy. Supported functions include sin, cos, exp, ln, sqrt, and abs.
Use 2–6 distinct single-letter variables.
For x, y enter x first, then y.
Any nonzero vector; it is normalized automatically.
Keyboard shortcut: Ctrl/⌘ + Enter.
Gradient, normalization, and dot-product steps will appear here.
x^2*y + y^3. Use explicit multiplication between different variables.For a scalar function of n variables, the gradient collects its first partial derivatives:
If v is a nonzero direction vector, first form the unit vector u = v/‖v‖. For a differentiable function at point p:
The gradient points in the direction of fastest increase when it is nonzero, and ‖∇f(p)‖ is the maximum directional derivative. This formula and the normalization of arbitrary direction vectors follow the standard treatment in OpenStax Calculus, Volume 3, section 4.6.
For f=x²y+y³ at (1,2), ∇f = ⟨4,13⟩. The direction ⟨3,4⟩ becomes ⟨3/5,4/5⟩.
The directional derivative is 4(3/5)+13(4/5)=12.8.
For f=xyz, ∇f = ⟨yz,xz,xy⟩. At (1,2,3), it is ⟨6,3,2⟩.
Use the same coordinate order for every point and direction vector.
For f=x²+y² at (0,0), ∇f = ⟨0,0⟩.
The gradient-based directional derivative is zero in every direction, and no unique steepest direction is selected.
For a differentiable function and unit vector u, the directional derivative at p is ∇f(p) · u. It is a scalar rate of change per unit distance.
No. Enter any nonzero vector. The calculator divides it by its Euclidean magnitude before applying the dot-product formula.
Each position must refer to the same variable throughout. If the variable list is x,y,z, then point and direction components must also be entered in x, y, z order.
At a differentiable point with a nonzero gradient, it points in the direction of steepest increase. Its magnitude equals the largest possible directional derivative there.
The dot product with every unit direction is zero. That makes the point stationary to first order, but it does not by itself prove the point is a maximum or minimum.
Yes. The dot-product formula requires differentiability at the point. A function can have missing partial derivatives, a corner, or other nondifferentiable behavior. The calculator flags non-real or undefined values but cannot certify differentiability for every expression.
No. Parsing, symbolic differentiation, evaluation, normalization, and dot products run on your device.