Professional Documents
Culture Documents
Reconstructing A Function From Its Gradient
Reconstructing A Function From Its Gradient
∂f ∂f
∇f (x, y) = (x, y)i + (x, y)j.
∂x ∂y
In Part 2 we show that, although all gradients ∇f (x, y) are expressions of the form
(set P = ∂f
∂x
and Q = ∂f∂y
), not all such expressions are gradients. In Part 3 we tackle
the problem of recognizing which expressions P (x, y)i+Q(x, y)j are actually gradients.
Part 1
Problem1. Find f given that
Solution. Since
∂f ∂f
∇f (x, y) = (x, y)i + (x, y)j.
∂x ∂y
we have
∂f ∂f
(x, y) = y 2 , (x, y) = 2xy − 1.
∂x ∂y
Integrating ∂f /∂x with respect to x, we have
f (x, y) = xy 2 + φ(y)
Part 2
The next problem shows that not all linear combinations P (x, y)i + Q(x, y)j are gra-
dients.
Problem 3. Show that yi − xj is not a gradient.
Solution. Suppose on the contrary that it is a gradient. Then there exists a function
f such that
∇f (x, y) = yi − xj.
Obviously
∂f ∂f
(x, y) = y, (x, y) = −x
∂x ∂y
∂ 2f ∂f
(x, y) = 1, (x, y) = −1
∂y∂x ∂x∂y
and thus
∂ 2f ∂f
(x, y) 6= (x, y).
∂y∂x ∂x∂y
This contradicts the mixed partial derivative theorem: the four partial derivatives
under consideration are everywhere continuous and thus, according to the mixed partial
derivative theorem, we must have
∂ 2f ∂f
(x, y) = (x, y).
∂y∂x ∂x∂y
This contradiction shows that yi − xj is not a gradient.
Part 3
We come now to the problem of recognizing which linear combinations
are actually gradients. But first we need to review some ideas and establish some new
terminology.
An open set (in the plane or in three-space) is said to be connected if any two points
of the set can be joined by a polygonal path that lies entirely within the set. An open
connected set is called an open region. A curve
C : r = r(t), t ∈ [a, b]
r(a) = r(b).
As is intuitively clear, a simple closed curve in the plane separates the plane into two
disjoint open connected sets: a bounded inner region consisting of all points surrounded
by the curve and an unbounded outer region consisting of all points not surrounded by
the curve. (Jordan Curve Theorem.)
Finally, we come to the notion we need in our work with gradients:
Let Ω be an open region of the plane, and let C be an arbitrary simple closed curve.
Ω is said to be simply connected if C is in Ω implies the inner region of C is in Ω.
THEOREM Let P and Q be functions of two variables, each continuously differen-
tiable on a simply connected open region Ω. The linear combination P (x, y)i+Q(x, y)j
is a gradient on Ω if and only if
∂P ∂Q
(x, y) = (x, y)
∂y ∂x
Since
∂f ∂f
∇f (x, y) = (x, y)i + (x, y)j.
∂x ∂y
we have
∂f ∂f
P = and Q = .
∂x ∂y
Since P and Q have continuous first partials, f has continuous second partials. Thus,
according to the mixed partials theorem we have
∂P ∂ 2f ∂ 2f ∂Q
= = = .
∂y ∂y∂x ∂x∂y ∂x
Conversely, suppose that
∂P ∂Q
(x, y) = (x, y) for all (x, y) ∈ Ω.
∂y ∂x
We must show that P (x, y)i + Q(x, y)j is a gradient on Ω. To do this, we choose a
point (x0 , y0 ) from Ω and form the function
Z x Z y
f (x, y) = P (u, y0 ) du + Q(x, v) dv, (x, y) ∈ Ω.
x0 y0
The first integral is independent of y. Hence it follows from the fundamental theo-
rem of calculus that
Z y
∂f ∂
(x, y) = Q(x, v) dv = Q(x, y).
∂y ∂y y0
The first term is P (x, y0 ) since once again we are differentiating with respect to the
upper limit. In the second term the variable x appears under the sign of integration.
It can be shown that, since Q and ∂Q/∂x are continuous,
Z y Z y
∂ ∂
Q(x, v) dv = Q(x, v) dv.
∂x y0 y0 ∂x
Anticipating this result, we have
Z !
∂f y ∂
(x, y) = P (x, y0 ) + Q(x, v) dv
∂x y0 ∂x
Z !
y ∂
= P (x, y0 ) + P (x, v) dv
y0 ∂y
= P (x, y0 ) + P (x, y) − P (x, y0 ) = P (x, y).
We have now shown that
∂f ∂f
P (x, y) = (x, y) and Q(x, y) = (x, y) for all (x, y) ∈ Ω.
∂x ∂y
It follows that P (x, y)i + Q(x, y)j is the gradient of f on Ω.
Example 4. The vector functions
are both everywhere defined. The first vector function is the gradient of a function
everywhere defined:
∂P ∂Q
(x, y) = 2x cos y = (x, y) for all (x, y).
∂y ∂x
The second is not a gradient:
∂P ∂Q
(x, y) = x, (x, y) = (x + 1)y 2
∂y ∂x
and so
∂P ∂Q
(x, y) =
6 (x, y).
∂y ∂x
Example 5. The vector function defined on the punctured disc 0 < x2 + y 2 < 1 by
setting
y x
F (x, y) = 2 i − j
x + y2 x2 + y 2
satisfying
∂P ∂Q
(x, y) = (x, y) on that punctured disk.
∂y ∂x
We will see later that F is not a gradient on that set. The set is not simply connected
so the theorem does not apply.
we first introduced some auxiliary notions: partition P , upper sum Uf (P ), and lower
sum Lf (P ). We were then able to define
Z b
f (x) dx
a
We will follow exactly the same procedure to define the double integral
ZZ
f (x, y) dxdy.
R
Thus
z = f (x, y)
represents a surface that lies above R. In this case the double integral
ZZ
f (x, y) dxdy.
R
gives the volume of the solid that is bounded below by R and bounded above by the
surface z = f (x, y).
To see this, consider a partition P of R. P breaks up R into subrectangles Rij ; and
thus the entire solid T into parts Tij . Since Tij contains a rectangular solid with base
Rij and height mij , we must have
Since Tij is contained in a rectangular solid with base Rij and height Mij , we must
have
Lf (P ) ≤ volume of T ≤ Uf (P ).
gives the volume of a solid of constant height 1 erected over R. In square units this is
just the area of R: ZZ
area of R = dxdy.
R
Some Computations
Double integrals are generally computed by techniques that we will take up later. It is
possible, however, to evaluate simple double integrals directly from the definition.
Problem 2. Evaluate ZZ
α dxdy
R
and a partition
P2 : c = y0 < y1 < y2 < · · · < yn = d of [c, d].
This gives
P = P1 × P2 = {(xi , yj ) : 0 ≤ i ≤ m, 0 ≤ j ≤ n}
= α(b − a)(d − c)
Similarly
Lf (P ) = α(b − a)(d − c).
Since
Lf (P ) ≤ α(b − a)(d − c) ≤ Uf (P )
and P was chosen arbitrarily, the inequality must hold for all partitions P of R. This
means that ZZ
f (x, y) dxdy = α(b − a)(d − c).
R
Remark. If α > 0, ZZ
α dxdy = α(b − a)(d − c).
R
gives the volume of the rectangular solid of constant height α erected over the rectangle
R.
Problem 3. Evaluate ZZ
(y − 2x) dxdy
R
and a partition
P2 : c = y0 < y1 < y2 < · · · < yn = d of [3, 5]
we have
P = P1 × P2 = {(xi , yj ) : 0 ≤ i ≤ m, 0 ≤ j ≤ n}
as an arbitrary partition of R. On each rectangle Rij the function
f (x, y) = y − 2x
has a maximum
and a minimum
Thus m X
n
X
Uf (P ) = (yj − 2xi−1 )(xi − xi−1 )(yj − yj−1 )
i=1 j=1
and m X
n
X
Lf (P ) = (yj−1 − 2xi )(xi − xi−1 )(yj − yj−1 ).
i=1 j=1
1
= (2 − 1)(25 − 9) = 8.
2
The second double sum reduces to
m X
X n m
X n
X
− (xi2 − x2i−1 )(yj − yj−1 ) = − (x2i − x2i−1 ) (yj − yj−1 )
i=1 j=1 i=1 j=1
Remark. This last integral should not be interpreted as a volume. The expression
y − 2x does not keep a constant sign on R = [1, 2] × [3, 5].