Skip to content
    Calculus

    What Is Divergence? Vector Field Divergence Explained

    Is water spreading out from a point, like a tap, or draining into it, like a plughole? Divergence measures exactly that for any flow. This guide explains what the number means, how to compute it in two quick derivatives, and what its sign tells you.

    Math Solver Academic Editorial Board5 min read

    Key takeaways

    • Divergence in 2D: ∇·F = ∂P/∂x + ∂Q/∂y, where F = (P, Q).
    • Positive means a source (spreading out); negative means a sink (gathering in).
    • Divergence is one number at each point, not a vector.
    • Pair P with x and Q with y. The mixed pairs belong to curl.
    In this guide
    1. 01What is divergence?
    2. 02Why does divergence matter?
    3. 03The formula
    4. 04How to calculate divergence step by step
    5. 05Common mistakes to avoid
    6. 06Tips and tricks
    7. 07Where you'll use it in real life
    8. 08Quick summary
    9. 09Worked example
    10. 10Frequently asked questions

    What is divergence?

    A vector field puts an arrow at every point, such as the velocity of water on a pond. Now draw a tiny circle around one point and watch the flow crossing its edge.

    • If more water leaves the circle than enters, the point acts like a source. Divergence is positive.
    • If more enters than leaves, the point is a sink. Divergence is negative.
    • If in and out balance, divergence is zero. The flow is just passing through.

    Why does divergence matter?

    Divergence is how physics writes down the idea 'nothing is created or lost'. Water can't be squashed, so a water flow with no taps or drains has divergence zero everywhere. If the maths gives a non-zero divergence, something is being added or removed there.

    In electricity, divergence finds where electric charge sits: field lines spread out from positive charge and gather into negative charge. This is Gauss's law, one of the four Maxwell's equations.

    Divergence answers one simple question at every point: is stuff coming out here, or going in?

    The formula

    ∇·F = ∂P/∂x + ∂Q/∂y
    SymbolWhat it meansExample
    F = (P, Q)The vector field. Here P = xⁿ and Q = yᵐ(x², y²)
    ∂P/∂xHow fast the x-part grows as you move in x2x = 2
    ∂Q/∂yHow fast the y-part grows as you move in y2y = 6
    (x₀, y₀)The point where you measure(1, 3)
    ∇·FThe divergence (say "del dot F")8

    This calculator uses the field F = (xⁿ, yᵐ). Then ∂P/∂x = n·xⁿ⁻¹ and ∂Q/∂y = m·yᵐ⁻¹, and you choose n, m and the point (x₀, y₀).

    How to calculate divergence step by step

    1. 1Identify P and Q. P is the x-component, Q is the y-component.
    2. 2Find ∂P/∂x. Differentiate P in x, treating y as a constant. See the partial derivative calculator.
    3. 3Find ∂Q/∂y. Differentiate Q in y, treating x as a constant.
    4. 4Add and evaluate. Add the two and put in the point (x₀, y₀).

    Try your own field below. Choose the powers and a point, and the calculator shows both derivatives and their sum.

    Try it yourself

    Pre-filled with the example — change any value.

    🧮
    Calculus
    University

    Divergence ∇·F (2D)

    Compute divergence of F = (x^n, y^m) at point (x₀, y₀).

    ∇·F = ∂P/∂x + ∂Q/∂y for F = (P, Q) = (axⁿyᵐ, bxᵖyq)

    f'(x) slope
    Tangent Line dy/dx
    120
    120
    0.120
    120

    💡 Example

    Reference
    Inputs:n=2, m=3, x0=1, y0=2
    Result:14
    Open the full Divergence ∇·F (2D) calculator

    Common mistakes to avoid

    • Expecting a vector. Divergence is one number at each point, not an arrow.
    • Confusing it with the gradient. The gradient turns a number-valued function into a vector; divergence turns a vector field into a number.
    • Forgetting to evaluate at the point. The divergence usually changes from place to place.
    • Subtracting instead of adding. Divergence is a sum.

    Tips and tricks

    • Spin without spread: F = (−y, x) swirls in circles and has divergence 0.
    • 3D version: add a third term, ∂R/∂z, for fields F = (P, Q, R).
    • Sign check: in F = (xⁿ, yᵐ) with positive x and y, a positive power always gives positive divergence.

    Where you'll use it in real life

    • Fluid flow: zero divergence means an incompressible liquid like water.
    • Electricity: Gauss's law links divergence of the electric field to charge.
    • Weather: maps of where air spreads out (divergence) or piles up (convergence).
    • Heat flow: positive divergence of heat flow marks a heat source, like a heater.

    Quick summary

    Divergence ∇·F = ∂P/∂x + ∂Q/∂y measures how much a flow spreads out from a point: positive for a source, negative for a sink, zero for balanced flow. Differentiate each part in its own variable, add and evaluate. Use the calculator above for any field (xⁿ, yᵐ).

    Worked example

    A model of air flow on a map uses F = (x², y²). At the point (1, 3), is air spreading out or gathering in, and how strongly? Enter n = 2, m = 2, x₀ = 1 and y₀ = 3.

    1. 01Vector field F = (P, Q) = (x^2, y^2)
    2. 02∂P/∂x = 2x^1 → at x=1: 2
    3. 03∂Q/∂y = 2y^1 → at y=3: 6
    4. 04∇·F = ∂P/∂x + ∂Q/∂y
    5. 05= 2 + 6
    6. 06= 8

    These numbers are pre-filled in the calculator above.

    Frequently asked questions

    What does zero divergence mean?

    The flow neither spreads out nor gathers at that point. A field with zero divergence everywhere is called incompressible or solenoidal, like the flow of water.

    What is the difference between divergence and curl?

    Divergence measures spreading out (source or sink). Curl measures spinning. In 2D, divergence is ∂P/∂x + ∂Q/∂y, while curl is ∂Q/∂x − ∂P/∂y.

    What is the divergence of F = (x², y³) at (1, 2)?

    ∂P/∂x = 2x = 2 and ∂Q/∂y = 3y² = 12, so the divergence is 2 + 12 = 14.

    Is divergence a vector or a scalar?

    A scalar. It gives one number at each point, which tells you how strongly the field spreads out or gathers in there.

    #Calculus#University#Divergence ∇·F (2D)
    Updated

    Keep reading

    Sponsored ToolsAd

    More tools on Ytools →
    Calcu.click — 25+ Free Smart Calculators preview

    Calcu.click — 25+ Free Smart Calculators

    Brand new calculation platform with 0ms reactive math, 100% client-side privacy, and dedicated subdomains. Fast calculators for EMI, SIP, Mortgage, Income Tax, BMI, Age, Percentage, and more.

    25+ CalculatorsFinanceHealth0ms Real-TimeFree
    Keyboard Arena preview

    Keyboard Arena

    Master touch typing with real-time WPM speed tests, mechanical switch audio, A-Z finger biomechanics drills, 40+ structured lessons, and competitive arcade games.

    Typing TestWPMTouch Typing
    Flutter Log Explorer preview

    Flutter Log Explorer

    Real-time structured log viewer and search explorer for Flutter & Dart. Zero-config capture from Debug Adapter (DAP) & Dart VM Service with smart classification and filters.

    FlutterDartVS Code ExtensionOpen VSX