Divergence Calculator

Type a vector field (P, Q, R) to find its divergence.

Write the components in x, y and z, separated by commas, as (P, Q, R). Two components are read as (P, Q).

Try

Result

You entered∇⋅(sin⁡x,cos⁡y,z)\nabla\cdot\left(\sin x, \cos y, z\right)

∇⋅F=cos⁡x−sin⁡y+1\displaystyle \nabla\cdot\mathbf{F} = \cos x - \sin y + 1
Show the work
  1. Divergence

    The divergence of F=(P,Q,R)\mathbf{F} = (P, Q, R) adds the rate of change of each component in its own direction: it measures how much the field spreads out from a point.

    Using ∇⋅F=∂P∂x+∂Q∂y+∂R∂z\nabla\cdot\mathbf{F} = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z}

    F=(sin⁡x,cos⁡y,z)\mathbf{F} = \left(\sin x, \cos y, z\right)
  2. Partial derivative of each component

    Differentiate PP, QQ, RR with respect to xx, yy, zz in turn.

    ∂P∂x=cos⁡x∂Q∂y=−sin⁡y∂R∂z=1\begin{gathered} \frac{\partial P}{\partial x} = \cos x \\ \frac{\partial Q}{\partial y} = -\sin y \\ \frac{\partial R}{\partial z} = 1 \end{gathered}
  3. Result

    The sum of the three partial derivatives.

    ∇⋅F=cos⁡x−sin⁡y+1\nabla\cdot\mathbf{F} = \cos x - \sin y + 1

Worked examples