Divergence Calculator
Enter the three components of a vector field and compute its divergence ∂P/∂x + ∂Q/∂y + ∂R/∂z at any point.
Vector Field F = (P, Q, R)
Use x, y, z as variables. JavaScript Math.* functions are supported.
Evaluation Point
Result
div F = ∂P/∂x + ∂Q/∂y + ∂R/∂z
—
Partial Derivatives
∂P/∂x
—
∂Q/∂y
—
∂R/∂z
—
Quick Examples
Summary
Enter the three components of a vector field and compute its divergence ∂P/∂x + ∂Q/∂y + ∂R/∂z at any point.
How it works
- Enter the three component expressions P(x,y,z), Q(x,y,z), and R(x,y,z) of your vector field.
- Specify the evaluation point (x₀, y₀, z₀).
- The tool computes ∂P/∂x, ∂Q/∂y, and ∂R/∂z at the given point using a central-difference method.
- The divergence is displayed as the sum of the three partial derivatives.
- A negative result indicates convergence (sink); positive indicates divergence (source); zero is a divergence-free field.
Use cases
- Verify textbook divergence problems for vector calculus courses.
- Check whether a vector field is incompressible (div F = 0) in fluid mechanics.
- Evaluate divergence of electric or magnetic fields in physics problems.
- Quickly test numerical partial derivatives before implementing them in code.
- Explore how divergence varies by plugging in different evaluation points.
Frequently Asked Questions
Last updated: 2026-07-23 ·
Reviewed by Nham Vu