The divergence theorem states that for a continuously differentiable vector field on a bounded region with outward unit normal and suitably regular, possibly piecewise smooth, boundary,
For a differentiable homogeneous function, differentiate at to get Euler theorem for homogeneous functions:
Only positive near one is needed for this derivative, so no interpretation of noninteger powers at negative is required. Applying the product rule gives . The volume integral of a homogeneous function is therefore
The condition is needed for division; at that degree the divergence theorem instead gives only zero net boundary flux. The field must also be regular on the region, or singularities must be treated by excision and limiting boundary terms. Neither issue arises for the polynomial in the final calculation.
Write . In the cone, and . The polynomial has degree four. Its direct volume integral is
On the lateral cone the outward normal is proportional to , so is proportional to . Thus the lateral contribution vanishes. The cap is , , with outward normal , so
Multiplying by reproduces , verifying the formula. The cap edge and apex have zero surface measure, and the piecewise smooth version of the divergence theorem applies.