Radial Fields and Distance from the Origin
A radial vector field points directly toward or away from the origin. Its magnitude may vary with distance, but it has no tangential component. Such fields appear in models with spherical symmetry, including idealized force and flow fields.
Let \(\mathbf{x}=(x,y,z)\) be a point in \(\mathbb{R}^3\), and let \(r=\|\mathbf{x}\|=\sqrt{x^2+y^2+z^2}\). For \(r>0\), the radial unit vector is \(\mathbf{x}/r\). A radial field can be written in either of two useful ways: as a scalar magnitude times the radial unit vector, or as a scalar function times the position vector.
These forms are equivalent away from the origin: \(g(r)=f(r)/r\), or \(f(r)=r g(r)\). The distinction matters because their divergence formulas look different. The curl, in contrast, is zero for either form wherever the field is differentiable and \(r>0\).
Deriving the Formulas in Cartesian Coordinates
We derive the results using Cartesian partial derivatives, so no formulas for other coordinate systems are needed. Write a general radial field as \(\mathbf{F}(\mathbf{x})=a(r)\mathbf{x}\). This includes the unit-radial form by taking \(a(r)=f(r)/r\), and the position-vector form by taking \(a(r)=g(r)\).
For each coordinate \(x_j\), the chain rule gives \(\partial r/\partial x_j=x_j/r\) when \(r>0\). Writing \(F_i=a(r)x_i\), the product rule therefore gives the entries of the Jacobian matrix:
Here \(\delta_{ij}\) equals \(1\) when \(i=j\) and \(0\) otherwise. The divergence is the trace of this matrix. The curl is formed from differences of paired off-diagonal entries.
To see the divergence, sum the diagonal entries of the Jacobian. Since \(x^2+y^2+z^2=r^2\), the sum is \(3a+(a'/r)r^2=3a+ra'\). For the curl, the Jacobian is symmetric: its \(i,j\) entry equals its \(j,i\) entry. Each component of the curl is a difference of such paired partial derivatives, so every component is zero. This proves both claims wherever the derivatives exist and \(r>0\).
For \(\mathbf{F}=f(r)\mathbf{x}/r\), substitute \(a(r)=f(r)/r\). Differentiating gives \(a'(r)=f'(r)/r-f(r)/r^2\). Thus \(3a+ra'=3f/r+f'-f/r=f'+2f/r\).
Worked Examples
Worked Example: A Quadratically Growing Radial Magnitude
Let \(\mathbf{F}(\mathbf{x})=r^2\mathbf{x}/r\), for \(r>0\). Here \(f(r)=r^2\), so \(f'(r)=2r\). The formulas give
Check this directly at \(\mathbf{x}=(1,2,2)\). There \(r=\sqrt{1+4+4}=3\), and \(\mathbf{F}=r\mathbf{x}\). Its Jacobian is \(r\mathbf{I}+\mathbf{x}\mathbf{x}^{\top}/r\), so at this point it is
The trace is \((10+13+13)/3=12\), agreeing with \(4r=12\). The matrix is symmetric, so the curl components, which are differences of paired off-diagonal entries, are all zero.
Worked Example: An Inverse-Cube Position-Vector Field
For \(r>0\), let \(\mathbf{F}(\mathbf{x})=\mathbf{x}/r^3\). In the position-vector form, \(g(r)=r^{-3}\) and \(g'(r)=-3r^{-4}\). Therefore
To check the calculation, differentiate its components \(F_i=x_i r^{-3}\):
This matrix is symmetric. Its trace is \(3/r^3-3(x^2+y^2+z^2)/r^5=3/r^3-3r^2/r^5=0\), as required. This check applies only when \(r>0\); the field itself is undefined at the origin.
Worked Example: A Radial Field with Nonzero Divergence
Let \(\mathbf{F}(\mathbf{x})=\mathbf{x}/r^2\), for \(r>0\). This is \(f(r)\mathbf{x}/r\) with \(f(r)=1/r\). Since \(f'(r)=-1/r^2\),
At \((1,0,0)\), \(r=1\). Writing \(\mathbf{F}=a(r)\mathbf{x}\) gives \(a(r)=r^{-2}\) and \(a'(r)=-2r^{-3}\). The Jacobian is \(a\mathbf{I}+(a'/r)\mathbf{x}\mathbf{x}^{\top}\); at this point it is the diagonal matrix with entries \(-1,1,1\). Its trace is \(1\), matching \(1/r^2=1\), and its off-diagonal entries are equal in opposite pairs, giving zero curl.
Why the Origin Requires Separate Attention
The formulas above are ordinary divergence and curl formulas on the punctured space \(r>0\). They do not automatically define either derivative at the origin. Both \(\mathbf{x}/r\) and \(\mathbf{x}/r^3\) are undefined there, and expressions such as \(f'(r)+2f(r)/r\) can also fail to have a finite limit as \(r\) approaches zero.
For example, the field \(\mathbf{F}=\mathbf{x}/r\) has \(f(r)=1\), so its divergence is \(2/r\) away from the origin. Its direction depends on the direction of approach to the origin, so assigning a value at the origin does not make this field continuous there. The field \(\mathbf{x}/r^3\) has zero divergence at every point where it is defined, but that fact is not a claim that it has a divergence at the origin.
Some radial fields do extend smoothly to the origin. For instance, if \(f(r)=r\), then \(f(r)\mathbf{x}/r=\mathbf{x}\), including at the origin when defined by \(\mathbf{F}(\mathbf{0})=\mathbf{0}\). Its divergence is \(3\) and its curl is zero everywhere. The key is to check the field and its derivatives at the origin separately rather than substituting \(r=0\) into a formula derived for \(r>0\).
A Common Formula Error
A frequent mistake is to calculate the divergence of \(f(r)\mathbf{x}/r\) as just \(f'(r)\), as though only the change in radial magnitude mattered. For \(f(r)=r^2\), that mistaken calculation gives \(2r\). It omits the change in the direction of the radial unit vector as position varies.
The correct result includes the additional term \(2f(r)/r\):
The Cartesian derivation explains the correction: divergence sums changes in all three coordinate directions, and the radial components vary with position as well as with distance. A useful check is to rewrite the field as \(a(r)\mathbf{x}\), compute \(3a+ra'\), and then simplify.
Using the Two Forms Efficiently
Choose the form that matches the expression given. If the field is specified by its radial magnitude, \(f(r)\), use \(f'+2f/r\). If it is given as a scalar times the position vector, \(g(r)\mathbf{x}\), use \(3g+rg'\). Both forms give zero curl away from the origin under the differentiability assumptions used above.
| Field representation | Divergence for \(r>0\) | Curl for \(r>0\) |
|---|---|---|
| \(f(r)\mathbf{x}/r\) | \(f'(r)+2f(r)/r\) | \(\mathbf{0}\) |
| \(g(r)\mathbf{x}\) | \(3g(r)+rg'(r)\) | \(\mathbf{0}\) |
The two divergence formulas agree when \(f(r)=rg(r)\). In fact, \(f'(r)=g(r)+rg'(r)\), so \(f'(r)+2f(r)/r=g(r)+rg'(r)+2g(r)=3g(r)+rg'(r)\). This is a useful consistency check when changing representations.
Check Your Understanding
Use the formulas for \(r>0\), and state whether the origin needs separate consideration.
- For \(\mathbf{F}=r^3\mathbf{x}/r\), find the divergence and curl.
- For \(\mathbf{F}=r^{-2}\mathbf{x}\), find the divergence and curl.
- Rewrite \(f(r)\mathbf{x}/r\) in the form \(g(r)\mathbf{x}\). What is \(g(r)\)?
- Why does zero curl away from the origin not establish that a field has a curl at the origin?
- For \(\mathbf{F}=\mathbf{x}\), verify the divergence using both radial-field representations.