Polynomial Fields and Potential Functions
A polynomial vector field has components built from sums of powers and products of the coordinate variables. This makes its derivatives and integrals manageable, but mixed terms still require care: integrating one component leaves an unknown function of the other variables.
The practical task is to do two things: test whether the components are compatible with being derivatives of a single scalar function, and, if they are, reconstruct that function. The mixed-partial tests from earlier material provide the criterion; component integration turns that criterion into a method.
In two variables, write \(\mathbf{F}(x,y)=\langle P(x,y),Q(x,y)\rangle\). A potential must satisfy \(\phi_x=P\) and \(\phi_y=Q\). In three variables, write \(\mathbf{F}(x,y,z)=\langle P,Q,R\rangle\); then the required equations are \(\phi_x=P\), \(\phi_y=Q\), and \(\phi_z=R\).
Compatibility Tests for Polynomial Fields
If the components are polynomials, their first and second partial derivatives are continuous everywhere. Thus, on \(\mathbb{R}^2\), the mixed-partial compatibility test is \(P_y=Q_x\). On \(\mathbb{R}^3\), the corresponding conditions are \(P_y=Q_x\), \(P_z=R_x\), and \(Q_z=R_y\). The domain matters: these tests guarantee a potential on the entire space \(\mathbb{R}^2\) or \(\mathbb{R}^3\), which is open and simply connected. On more general domains, a zero-curl test alone may not guarantee a global potential.
Necessity follows from equality of the mixed partial derivatives of a potential. Sufficiency follows from the criterion for curl-free fields on a simply connected domain established in the earlier material. For finding the potential, we can use component integration directly, keeping the unknown terms that integration cannot determine.
A Component-Integration Method
In two variables, integrate \(P\) with respect to \(x\). The result contains an unknown function \(g(y)\), not just a constant, because differentiating any function of \(y\) with respect to \(x\) gives zero. Then differentiate the candidate potential with respect to \(y\) and match it with \(Q\) to determine \(g\).
In three variables, integrating \(P\) with respect to \(x\) leaves an unknown function \(g(y,z)\). Matching the \(y\)-derivative with \(Q\) determines its \(y\)-dependence, but may leave a function of \(z\). Matching the \(z\)-derivative with \(R\) determines what remains.
Compare the required mixed partial derivatives before attempting to recover a potential.
Integrate with respect to its coordinate and include an unknown function of the remaining coordinates.
Differentiate the candidate with respect to each remaining coordinate to determine the unknown function.
Compute the full gradient and check that it equals the original field component by component.
This method works because integrating one component enforces one equation, while the unknown function records exactly the freedom left by that equation. The other component equations remove that freedom in turn. The compatibility conditions ensure that the resulting requirements agree.
Worked Examples in Two Variables
Worked Example: A Compatible Field with Mixed Terms
Consider \(\mathbf{F}(x,y)=\langle 3x^2y+2y,\;x^3+2x+4y^3\rangle\). Set \(P=3x^2y+2y\) and \(Q=x^3+2x+4y^3\). First test the mixed partials:
They agree everywhere, so the field is conservative on \(\mathbb{R}^2\). Integrate \(P\) with respect to \(x\):
Differentiate this expression with respect to \(y\) and match it with \(Q\):
Therefore \(g'(y)=4y^3\), so \(g(y)=y^4+C\), where \(C\) is an arbitrary constant. One potential is \(\phi(x,y)=x^3y+2xy+y^4\). Verify by differentiating:
Both components of the gradient reproduce the field, as required.
Worked Example: A Polynomial Field That Fails the Test
Consider \(\mathbf{F}(x,y)=\langle xy,\;x^2+y\rangle\), so \(P=xy\) and \(Q=x^2+y\). The mixed partials are
These are not equal everywhere; for instance, at \(x=1\), they have values \(1\) and \(2\). Therefore no potential exists on \(\mathbb{R}^2\). The failure also appears if we try component integration. Integrating \(P\) with respect to \(x\) gives
Matching its \(y\)-derivative with \(Q\) would require
The left side depends only on \(y\), but the right side also depends on \(x\). No function \(g(y)\) can satisfy this identity for every \(x\) and \(y\). This confirms that a potential cannot be recovered.
Worked Example in Three Variables
Worked Example: Recovering a Potential with Mixed Terms
Let \(\mathbf{F}(x,y,z)=\langle 2xy+z^2,\;x^2+2yz,\;2xz+y^2\rangle\). Set \(P=2xy+z^2\), \(Q=x^2+2yz\), and \(R=2xz+y^2\). Check all three compatibility conditions:
All conditions hold, so the field is conservative on \(\mathbb{R}^3\). Integrate \(P\) with respect to \(x\), retaining an unknown function of \(y,z\):
Differentiate with respect to \(y\) and match with \(Q\):
Integrating this equation with respect to \(y\), while allowing an undetermined function of \(z\), gives \(g(y,z)=y^2z+h(z)\). Thus
Now differentiate with respect to \(z\) and match with \(R\):
Hence \(h\) is constant, and one potential is \(\phi(x,y,z)=x^2y+xz^2+y^2z\). Check all components directly:
The final gradient matches the given field exactly.
Why the Unknown Terms Matter
A common mistake is to integrate one component and then treat the result as the complete potential. In the first example, integrating \(P\) with respect to \(x\) gives \(x^3y+2xy\), but this is not yet the potential. Its \(y\)-derivative is \(x^3+2x\), which omits the \(4y^3\) term in \(Q\). The correction \(g(y)=y^4\) is essential.
There is also a useful consistency check in the reverse direction. If matching a remaining component forces a function of \(y\) to depend on \(x\), or forces a function of \(z\) to depend on \(x\) or \(y\), the equations cannot be satisfied as written. A failed mixed-partial test detects this incompatibility before the integration work.
On a connected domain, any two potentials for the same field differ by an additive constant: their difference has zero gradient and is therefore constant. Thus finding one potential is enough; the arbitrary constant does not affect the field.
Check Your Understanding
For each question, use the compatibility test before attempting any integration.
- For \(\mathbf{F}(x,y)=\langle 2xy+1,\;x^2+3y^2\rangle\), do the mixed partials agree?
- When integrating \(P(x,y,z)\) with respect to \(x\), what variables may appear in the undetermined function?
- For a field \(\mathbf{F}=\langle P,Q,R\rangle\) on \(\mathbb{R}^3\), state the three mixed-partial conditions for conservativeness.
- If integration yields \(g_y(y,z)=2yz\), what is the general form of \(g(y,z)\)?
- Why does a failure of \(P_y=Q_x\) at even one point rule out a potential on all of \(\mathbb{R}^2\)?