Skip to main content

Section 3.6 Poincare's lemma for one-forms

We left one question unanswered: how do we determine whether a one-form is exact? How do we know whether a vector field is conservative? With the Fundamental Theorem of line integrals under our belts, we will be able to answer this question, which is known as Poincare's lemma.

Subsection 3.6.1 One-forms defined on all of Rn

Recall the definition of closed one-forms from Definition 2.2.9 and Definition 2.2.14. We know that exact one-forms are necessarily closed, see Lemma 2.2.10 and Lemma 2.2.15. But is the converse statement true? Are closed one-forms necessarily exact? We know that this cannot always be true, as we have already studied an example of a closed one-form that was not exact (see Exercise 3.4.3.2). So when are closed forms necessarily exact?

This is an important question, because showing that a one-form is closed is much easier than showing that it is exact: one only needs to calculate the partial derivatives of its cooordinate functions and show that they satisfy the requirements in Definition 2.2.9 and Definition 2.2.14.)

It turns out that the answer to the question is fairly subtle. There is one simple case however when the statement is always true: it is when the one-form is defined (and smooth, by definition) on all of Rn.

The proof is rather interesting, and in fact constructive, as it provides a way of calculating the function f such that Ο‰=df if Ο‰ is closed. We will write the proof only for R2, but a similar proof works in Rn.

First, we notice that one direction of implication is clear: we already know from Lemma 2.2.10 that exact one-forms are closed. So all we need to show is the other direction of implication, namely that closed one-forms are exact.

Assume that Ο‰=f(x,y) dx+g(x,y) dy is defined on all of R2, and that it is closed. From Definition 2.2.9, this means that βˆ‚fβˆ‚y=βˆ‚gβˆ‚x.

Let us now construct a function q as follows. We take our one-form Ο‰, and we integrate it along a curve in R2 which consists of, first, a horizontal line from the origin (0,0) to the point (x0,0) for some fixed x0>0, and then a vertical line from the point (x0,0) to the point (x0,y0) for some fixed y0>0. This is a piecewise-parametric curve, but we can easily parametrize each line segment. For the line segment from (0,0) to (x0,0), we use the parametrization Ξ±1:[0,x0]β†’R2 with Ξ±1(t)=(t,0), and for the second line segment from (x0,0) to (x0,y0), we use the parametrization Ξ±2:[0,y0]β†’R2 with Ξ±2(t)=(x0,t). The pullbacks of the one-form Ο‰ are Ξ±1βˆ—Ο‰=f(t,0) dt and Ξ±2βˆ—Ο‰=g(x0,t) dt. We construct our new function as q as the line integral of Ο‰ along this curve:

q(x0,y0)=∫α1Ο‰+∫α2Ο‰=∫0x0f(t,0) dt+∫0y0g(x0,t) dt.

q is a function of (x0,y0). Now we rename the variables (x0,y0) to be (x,y), and extend the function to all (x,y)∈R2, not just positive numbers, as the integrals on the right-hand-side remain well defined. So we get the function

q(x,y)=∫0xf(t,0) dt+∫0yg(x,t) dt

defined on R2.

Our claim is that this new function q(x,y) is in fact the potential function for Ο‰, i.e., Ο‰=dq, which would of course show that Ο‰ is exact. So let us compute dq. To do so, we need βˆ‚qβˆ‚x and βˆ‚qβˆ‚y. First,

βˆ‚qβˆ‚y=βˆ‚βˆ‚y∫0xf(t,0) dt+βˆ‚βˆ‚y∫0yg(x,t) dt=g(x,y)

where we used the Fundamental Theorem of Calculus part 1 for the second integral (recalling that x is kept fixed when we evaluate the partial derivative with respect to y) and the fact that the first integral does not depend on y at all. As for the partial derivative with respect to x, we get:

βˆ‚qβˆ‚x=βˆ‚βˆ‚x∫0xf(t,0) dt+βˆ‚βˆ‚x∫0yg(x,t) dt=f(x,0)+∫0yβˆ‚g(x,t)βˆ‚x dtby FTC Part 1 for the first term=f(x,0)+∫0yβˆ‚f(x,t)βˆ‚t dtsince βˆ‚g(x,t)βˆ‚x=βˆ‚f(x,t)βˆ‚t, as Ο‰ is closed, =f(x,0)+f(x,y)βˆ’f(x,0)=f(x,y).

Therefore,

dq=βˆ‚qβˆ‚x dx+βˆ‚qβˆ‚y dy=f(x,y) dx+g(x,y) dy=Ο‰,

and we have shown that Ο‰ is exact. Moreover, we found an explicit expression for the potential function as a line integral of Ο‰.

So we now have a clear criterion to determine whether a one-form on Rn is exact: we simply need to show that is closed. In terms of vector fields, all we have to do is show that it passes the screening test.

Consider the example from Example 3.4.4. The one-form was Ο‰=y2z dx+2xyz dy+xy2 dz, and we know that it is exact, as it can be written as Ο‰=df for f(x,y,z)=xy2z. But suppose that we don't know that. How can we determine quickly whether it is exact or not?

First, we notice that Ο‰ is well defined on all of R3. So to determine that it is exact, all that we need to do is show that it is closed.

Let us write Ο‰=f1 dx+f2 dy+f3 dz. We calculate partial derivatives:

βˆ‚f1βˆ‚y=2yz,βˆ‚f1βˆ‚z=y2,βˆ‚f2βˆ‚z=2xy,

and

βˆ‚f2βˆ‚x=2yz,βˆ‚f3βˆ‚x=y2,βˆ‚f3βˆ‚y=2xy.

The statement that Ο‰ is closed is just that the partial derivatives in the first line are equal to the partial derivatives in the second line, which is indeed true. Thus Ο‰ is closed, and by Poincare's lemma we can conclude that it must be exact.

That doesn't tell us how to find the potential function f though. To find f, we proceed as usual. Let us do it here for completeness.

We want to find a function f=f(x,y,z) such that df=βˆ‚fβˆ‚x dx+βˆ‚fβˆ‚y dy+βˆ‚fβˆ‚z dz=y2z dx+2xyz dy+xy2 dz. First, we want:

βˆ‚fβˆ‚x=y2z.

We can integrate the partial derivative -- the β€œconstant of integration” here will be any function g(y,z) that is independent of x. Thus we get:

f=∫0xy2z dx+g(y,z)=xy2z+g(y,z).

Next, we want

βˆ‚fβˆ‚y=2xyz.

Using the fact that f=xy2z+g(y,z), this equation reads

2xyz+βˆ‚gβˆ‚y=2xyzβ‡”βˆ‚gβˆ‚y=0.

Integrating, we get:

g(y,z)=h(z),

where h(z) is a function of z alone. Putting this together, we have f=xy2z+h(z). Finally, we must satisfy the remaining equation:

βˆ‚fβˆ‚z=xy2.

Using the fact that f=xy2z+h(z), this becomes

xy2+dhdz=xy2⇔dhdz=0⇔h=C,

for some constant C. As we are only interested in one function f such that df=Ο‰, we can set the constant C=0. We obtain that Ο‰=df with f(x,y,z)=xy2z, as stated in Example 3.4.4.

In fact, we can go a little further and state the following theorem, which gives equivalent formulations of what it means for a one-form to be exact (or a vector field to be conservative) on all of Rn.

We want to prove equivalence of the four statements. To do so, it is sufficient to prove that (1)β‡’(2), (2)β‡’(3), (3)β‡’(4), and (4)β‡’(1). We will write a proof only for R2.

(1)β‡’(2). All exact one-forms are closed, see Lemma 2.2.10.

(2)β‡’(3). By Poincare's lemma, Theorem 3.6.1, we know that closed one-forms defined on all of Rn are exact, so (1)⇔(2). We also know that if Ο‰ is exact, then its line integral along closed curves always vanishes: this is Corollary 3.4.3, which follows from the Fundamental Theorem of line integrals. So (2)β‡’(3).

(3)β‡’(4). This follows from Exercise 3.4.3.5. Indeed, suppose that P0 is on the closed curve that you are integrating along. Pick P1=P0. Then we know that the line integral of Ο‰ is path independent for all curves starting at P0 and ending at P1=P0, since by (3) the line integrals all vanish. It then follows from Exercise 3.4.3.5 that the line integrals are path independent everywhere, which is (4).

(4)β‡’(1). For this one we need to do a bit more work. We want to show that if the line integrals of Ο‰=f dx+g dy are path independent, then Ο‰ is exact. We proceed like in the proof of Theorem 3.6.1. First, consider a curve C1 which consists in a horizontal line from (0,0) to a fixed point (x0,0), and then a vertical line from (x0,0) to a fixed point (x0,y0), with x0,y0>0. We parametrize it by Ξ±1:[0,x0]β†’R2 with Ξ±1(t)=(t,0), and Ξ±2:[0,y0]β†’R2 with Ξ±2(t)=(x0,t). The pullbacks are Ξ±1βˆ—Ο‰=f(t,0) dt, Ξ±2βˆ—Ο‰=g(x0,t) dt. The line integral then reads

q(x0,y0):=∫C1Ο‰=∫0x0f(t,0) dt+∫0y0g(x0,t) dt.

Next, we consider a second curve C2 which consists in a vertical line from (0,0) to (0,y0), and then a horizontal line from (0,y0) to (x0,y0). A parametrization is Ξ²1:[0,y0]β†’R2 with Ξ²1(t)=(0,t), and Ξ²2:[0,x0]β†’R2 with Ξ²2(t)=(t,y0). The pullbacks are Ξ²1βˆ—Ο‰=g(0,t) dt, and Ξ²2βˆ—Ο‰=f(t,y0) dt. The line integral reads

p(x0,y0):=∫C2Ο‰=∫0y0g(0,t) dt+∫0x0f(t,y) dt.

Note that the two curves C1 and C2 start at (0,0) and end at the same point (x0,y0). Since by (4) we know that the line integrals are path independent, we know that

q(x0,y0)=p(x0,y0).

As in the proof of Theorem 3.6.1, we then rename the variables (x0,y0)β†’(x,y) and extend the domain of definition of the function q(x,y)=p(x,y) to all (x,y)∈R2, since the integrals on the right-hand-side remain well defined.

Since q(x,y)=p(x,y), the partial derivatives of q and p are also equal. In particular,

βˆ‚qβˆ‚y=βˆ‚βˆ‚y∫0yg(x,t) dt=g(x,y),

and

βˆ‚qβˆ‚x=βˆ‚pβˆ‚x=βˆ‚βˆ‚x∫0xf(t,y) dt=f(x,y),

where in both cases we used FTC part 1. We conclude that

dq=βˆ‚qβˆ‚x dx+βˆ‚qβˆ‚y dy=f(x,y) dx+g(x,y) dy=Ο‰,

and hence Ο‰ is exact, which is (1).

Subsection 3.6.2 One-forms on simply connected subsets of Rn

Going back to Poincare's lemma, the proof of Theorem 3.6.1 relied on the fact that we could take x and y to be any two real numbers, which was possible because Ο‰ was assumed to be a (smooth) one-form on all of R2. But if the one-form is defined on an open subset UβŠ†R2, does the proof still work? The answer is: not always. For instance, it would work if U is an open rectangle in R2; however, it wouldn't work if U is R2βˆ–{(0,0)}, that is R2 minus the origin.

In other words, it isn't always true that closed one-forms are exact. The precise statement is that it is true if Ο‰ is a one-form defined on an open subset UβŠ†Rn that is β€œsimply connected”. What does this mean?

We say that a set U is path connected if any two points can be connected by a path (or a parametric curve). In other words, the set contains only one piece. Then, we say that it is simply connected if it is path connected, with the extra property that any simple closed curve (loop) in U can be continuously contracted to a point. Intuitively, a simply connected region in R2 consists of only one piece and has no holes.

For instance, open rectangles and open disks in R2 are simply connected. However, if you consider U=R2βˆ–{(0,0)}, while it is path connected as you can connect any two points by a path, it is not simply connected, since loops around the origin cannot be contracted to a point within U (there is a hole at the origin).

We will state the more general Poincare's lemma here for completeness, but without a proof, as it would go beyond the scope of this course.

We saw in Example 2.2.13 an example of a one-form that is closed but not exact. The one-form was

Ο‰=βˆ’yx2+y2 dx+xx2+y2 dy.

We showed that it is closed. But we also showed in Exercise 3.4.3.2 that it is not exact, since its line integral around a closed curve is non-vanishing. Does that contradict Poincare's lemma? No. The reason is that Ο‰ is not defined on all of R2. Indeed, its coefficient functions are only defined for (x,y)∈R2βˆ–{(0,0)}, as at the origin one would be dividing by zero. As (x,y)∈R2βˆ–{(0,0)} is not simply connected, Poincare's lemma does not apply.

Exercises 3.6.3 Exercises

1.

Determine whether the one-form Ο‰=y2exy dx+(1+xy)exy dy is exact. If it is, find a function f such that Ο‰=df.

Solution.

First, we notice that the component functions are smooth on R2, so we know that Ο‰ is exact if and only if it is closed. We calculate the partial derivatives of the component functions:

βˆ‚βˆ‚y(y2exy)=2yexy+xy2exy,βˆ‚βˆ‚x((1+xy)exy)=yexy+y(1+xy)exy.

We see that the two expressions are equal. Thus Ο‰ is closed, and hence it is also exact.

We are looking for a function f such that

df=βˆ‚fβˆ‚x dx+βˆ‚fβˆ‚y dy=y2exy dx+(1+xy)exy dy.

Integrating the partial derivative in x, we get

f=yexy+g(y).

Substituting in the partial derivative for y, we get

exy+xyexy+gβ€²(y)=(1+xy)exy,

from which we conclude that gβ€²(y)=0, i.e. g(y)=C, which we set to zero. We thus have found a function f such that Ο‰=df:

f(x,y)=yexy.

2.

Determine whether the field F(x,y)=(ex+ey,xey+x) is conservative. If it is, find a potential function.

Solution.

The component functions are smooth on R2, so the vector field is conservative if and only if it passes the screening test. We calculate the partial derivatives:

βˆ‚βˆ‚y(ex+ey)=ey,βˆ‚βˆ‚x(xey+x)=ey+1.

As these two expressions are not equal, we conclude that the vector field is not conservative on R2.

3.

Determine whether or not the following sets are (a) open, (b) path connected, and (c) simply connected:

  1. S={(x,y)∈R2 | yβ‰₯0}

  2. U={(x,y)∈R2 | (x,y)β‰ (1,1)}

  3. T={(x,y)∈R2 | yβ‰ 0}

  4. The unit circle in R2

  5. The unit sphere in R3

  6. V=R3βˆ–{(0,0,0)}

Solution.

Recall that a set is open if for all points in the set, there is an open ball centered at that point that lies within the set. It is path connected if any two points in the set can be connected by a path. It is simply connected if it is path connected, and all closed curves can be contracted to a point within the set.

  1. S consists in the upper half of the xy-plane, including the x-axis. First, it is not open, since any point on the x-axis cannot be the centre of an open disk within S (as points below the x-axis are not in S). It is however path connected, as any two points can be connected by a path, and it is simply connected, as all closed curves can be contracted to a point within S.

  2. U is the xy-plane minus the point (1,1). It is certainly open and path connected, but it is not simply connected as any closed curve surrounding (1,1) cannot be contracted to a point in U (as there is a hole at (1,1)).

  3. T is the xy-plane with the x-axis removed. It is an open set. However, it is not path connected, since two points on both sides of the x-axis cannot be connected by a path within T. It then follows that it is also not simply connected.

  4. The unit circle in R2, i.e. the solutions to the equation x2+y2=1, is not open in R2. Indeed, there is no point on the unit circle that can be surrounded by an open disk within the circle itself (note that we are considering only the circle itself here, not the disk). It is path connected, as you can connect any two points on the circle by a path on the circle (the arc between the two points). But it is not simply connected, as the circle itself (which is a closed loop) cannot be contracted to a point (recall that the interior of the circle is not part of our set).

  5. The unit sphere in R3 is not open, just as for the circle in R2. It is path connected, and in this case it is also simply connected, as all closed loops on the sphere can be contracted to a point within the sphere.

  6. V is R3 minus the origin. It is certainly open, as we are just removing one point from R3, and it is path connected, as any two points can be connected by a path within the set V. Is it also simply connected? The answer is yes, it is simply connected. Indeed, pick any closed curve within V; you can always contract it to a point in V. The hole at the origin does not create any issue here, because we are in R3; informally, the point is that even if you pick, say, a closed curve in the xy-plane that surrounds the origin, then you can still contract it to a point within the set V, since you can move up in the z-direction while you contract (you don't have to stick to the xy-plane in the contraction process, as V is a subset in R3). The upshot here is that it's important to keep in mind that the interpretation of simply-connectedness as meaning β€œno holes” is only true in R2. For instance, in R3, you can convince yourself that the requirement that all closed curves can be contracted to a point within the set could instead be interpreted as meaning that there are no β€œmissing lines” in the set. Ultimately, it is easier to just use the definition of simply connectedness, i.e. that the set is path connected and that all closed curves can be contracted to a point within the set, to check whether a set is simply connected.

4.

Consider the one-form Ο‰=2x|y| dxβˆ’x2y2 dy on the open subset U={(x,y)∈R2 | y<0}. Determine whether Ο‰ is exact, and if it is find a function f such that Ο‰=df.

Solution.

Since we are restricting to y<0, we can replace |y|=βˆ’y. The one-form is then

Ο‰=βˆ’2xy dxβˆ’x2y2 dy.

Since U is simply connected, Poincare's lemma applies. We calculate partial derivatives:

βˆ‚βˆ‚y(βˆ’2xy)=2xy2,βˆ‚βˆ‚x(βˆ’x2y2)=βˆ’2xy2.

As the two expressions are not equal, we conclude that Ο‰ is not closed on U, and thus it cannot be exact.

We remark here that the choice of U was very important. If we had instead defined the one-form on the open subset V={(x,y)∈R2 | y>0}, then we would have obtained a different result! Indeed, on V, |y|=y. It then follows that Ο‰ is closed, and since Poincare's lemma applies as V is simply connected, it is also exact on V. Indeed, one can check that Ο‰=df with f(x,y)=x2y on V.

In fact, the largest domain of definition for Ο‰ would be UβˆͺV, i.e. the set {(x,y)∈R2 | yβ‰ 0}. However, this is not a simply connected set, so we cannot apply Poincare's lemma. In any case, Ο‰ is not exact on this larger set, as it cannot be written as Ο‰=df on all of UβˆͺV.