Compute the rate of change of f(x,y) at a point in any direction. Get gradient, unit vector, and step-by-step explanation.
The directional derivative measures the rate at which a function f(x,y) changes at a point (x₀,y₀) as we move in a specified direction v = (u,v). It generalizes partial derivatives (which are directional derivatives along the coordinate axes).
where ∇f = (∂f/∂x, ∂f/∂y) is the gradient vector, and û = v / ||v|| is the unit vector in the direction of v.
The directional derivative is the slope of the tangent line to the curve obtained by intersecting the surface z = f(x,y) with a vertical plane parallel to the direction û. It tells how steep the surface is in that direction.
The concept extends to functions of any number of variables. For f(x₁,…,xₙ), the directional derivative in the direction of unit vector u = (u₁,…,uₙ) is ∇f · u. A function must be differentiable at the point for the gradient to exist and the directional derivative formula to hold.
How to use this calculator: Enter a function f(x,y) using standard mathematical notation (e.g., x^2 + y^2, sin(x)*cos(y), exp(x*y)). Provide the point (x₀,y₀) and the direction vector (u,v). The calculator computes the gradient analytically using nerdamer, evaluates it at the point, normalizes the direction, and outputs the directional derivative. All steps are shown.
The function must be differentiable at the point. If the gradient is undefined (e.g., division by zero), an error will appear.
nerdamer.diff(expr, variable) for maximum compatibility. If you still encounter issues, please refresh and try again.
^ for exponent: x^2, exp(x) = e^xsin(x), cos(y), tan(x)log(x) or ln(x) for natural logsqrt(x) for square root* for multiplication: x*y not xysin(x*y)