Multivariable calculus
Divergence of F = (x^2 y, y^2 z, z^2 x)
For F(x, y, z) = (x^2 y, y^2 z, z^2 x) the divergence is 2xy + 2yz + 2zx. Each component is differentiated with respect to its own variable only: x^2 y gives 2xy, y^2 z gives 2yz, and z^2 x gives 2zx. The cyclic structure of the field carries straight through to the answer.
Three components, three diagonal partials, one sum
In three dimensions the rule extends by one term and changes in no other way.
Each component is a square times a single other variable, so the other variable is a frozen coefficient and only the square gets differentiated.
Adding gives , or if you prefer it factored. That grouping is worth keeping, because it makes the sign analysis below much easier.
The mistake: pairing a component with the wrong variable
A 3D field has nine first partial derivatives. Divergence uses three of them, the ones on the diagonal, and the cyclic naming here makes it unusually easy to grab the wrong one.
The classic wrong move is differentiating with respect to , because is sitting right there in the expression. That yields , and the answer is wrong at almost every point.
Label before you differentiate. Write , , on their own lines, then attach to , to , to . The position of the component in the list, not the letters inside it, decides the variable.
The other nine-partials trap is summing everything. Adding all nine is not a divergence, not a curl, and not any object that appears in the course.
Where this field sources and where it sinks
Factored, the divergence is , so its sign is the sign of the symmetric expression .
- At the divergence is , a strong source.
- At it is , a sink.
- At it is .
The surface is a cone through the origin, and it is exactly the dividing wall between source regions and sink regions. Points with all three coordinates of the same sign always sit strictly inside a source region.
Checked on every build: each component is differentiated numerically with respect to its own variable, and the sum is compared against the divergence above at six sample points.
Frequently asked questions
How many partial derivatives does a 3D divergence need?
Three of the nine. Only , and appear. The other six carry the curl information and play no part here.
Is this field ever divergence free?
Yes, on the cone . That includes the origin and points such as , where the three products sum to zero.