Multivariable calculus
Divergence of F = (x, y) / (x^2 + y^2 + 1)
For F(x, y) = (x, y) divided by x^2 + y^2 + 1, the divergence is 2 divided by (x^2 + y^2 + 1) squared. Each quotient rule leaves a term in x squared and one in y squared, and those cancel when the two partials are added. The divergence is positive everywhere but decays fast away from the origin.
Quotient rule on each component, then add the numerators
Write for the shared denominator. Both components are something over , and depends on both variables, so the quotient rule is unavoidable.
The second partial is the same computation with the roles of and exchanged, which you may write down directly rather than redo.
The denominators already match, so add the numerators. The terms cancel, the terms cancel, and only survives.
The mistake: treating the denominator as a constant
In the first component the numerator is a bare , so it is easy to differentiate that and leave alone, reporting . But contains , so it changes as changes and the quotient rule owes you a second term.
Skipping it gives for the divergence, which is too large by a factor of . It is right only at the origin, where , and the factor it is out by grows without bound as you move outward.
A quick self-test before you differentiate: circle every appearance of the variable you are working in. In you should circle two of them, not one.
What the +1 in the denominator is doing
Drop the and you get the classic plane field , whose arrows point outward with length . Run the same two quotient rules on it and the numerators come out as and , which cancel completely.
So that field has divergence everywhere except the origin, where it is undefined. The whole source sits at the single point the formula cannot see, which is why the divergence theorem needs care on any region that contains the origin.
Adding smooths that puncture away. The field is now defined at the origin, the divergence is there, and it falls off like for large , so the source is spread over the whole plane instead of concentrated at a point.
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
Why does the final answer contain no x or y in the numerator?
Because the two numerators are and . Adding them cancels both squared terms and leaves the constant , though the denominator still depends on position.
What happens if the +1 is removed?
The field has divergence at every point where it is defined, and is undefined at the origin. Removing the moves all the source behaviour to that one puncture.