# 4.E: Line and Surface Integrals (Exercises)

$$\newcommand{\vecs}{\overset { \rightharpoonup} {\mathbf{#1}} }$$ $$\newcommand{\vecd}{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}{\| #1 \|}$$ $$\newcommand{\inner}{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}{\| #1 \|}$$ $$\newcommand{\inner}{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$$$\newcommand{\AA}{\unicode[.8,0]{x212B}}$$

## 4.1: Line Integrals

#### A

For Exercises 1-4, calculate $$\int_C f (x, y)\,ds$$ for the given function $$f (x, y)$$ and curve $$C$$.

4.1.1. $$f (x, y) = x y;\quad C : x = \cos t, y = \sin t, 0 ≤ t ≤ π/2$$

4.1.2. $$f (x, y) = \frac{x}{ x^ 2} +1 ;\quad C : x = t, y = 0, 0 ≤ t ≤ 1$$

4.1.3. $$f (x, y) = 2x+ y;\quad C:\text{ polygonal path from }(0,0) \text{ to }(3,0)\text{ to }(3,2)$$

4.1.4. $$f (x, y) = x + y^2 ;\quad C: \text{ path from }(2,0)\text{ counterclockwise along the circle }x^ 2 + y^ 2 = 4 \text{ to the point }(−2,0)\text{ and then back to }(2,0)\text{ along the }x\text{-axis}$$

4.1.5. Use a line integral to find the lateral surface area of the part of the cylinder $$x^ 2 + y^ 2 = 4$$ below the plane $$x+2y+ z = 6$$ and above the $$x y$$-plane.

For Exercises 6-11, calculate $$\int_C \textbf{f}· d\textbf{r}$$ for the given vector field $$\textbf{f}(x, y)$$ and curve $$C$$.

4.1.6. $$\textbf{f}(x, y) = \textbf{i}−\textbf{j};\quad C : x = 3t, y = 2t, 0 ≤ t ≤ 1$$

4.1.7. $$\textbf{f}(x, y) = y\textbf{i}− x\textbf{j};\quad C : x = \cos t, y = \sin t, 0 ≤ t ≤ 2π$$

4.1.8. $$\textbf{f}(x, y) = x\textbf{i}+ y\textbf{j};\quad C : x = \cos t, y = \sin t, 0 ≤ t ≤ 2π$$

4.1.9. $$\textbf{f}(x, y) = (x^ 2 − y)\textbf{i}+(x− y^ 2 )\textbf{j};\quad C : x = \cos t, y = \sin t, 0 ≤ t ≤ 2π$$

4.1.10. $$\textbf{f}(x, y) = x y^2 \textbf{i}+ x y^3 \textbf{j};\quad C :\text{ the polygonal path from }(0,0)\text{ to }(1,0)\text{ to }(0,1)\text{ to }(0,0)$$

4.1.11. $$\textbf{f}(x, y) = (x^ 2 + y^ 2 )\textbf{i};\quad C : x = 2+\cos t, y = \sin t, 0 ≤ t ≤ 2π$$

#### B

4.1.12. Verify that the value of the line integral in Example 4.1 is unchanged when using the parametrization of the circle $$C$$ given in formulas Equation (4.8).

4.1.13. Show that if $$\textbf{f} ⊥ \textbf{r} ′ (t)$$ at each point $$\textbf{r}(t)$$ along a smooth curve $$C$$, then $$\int_C \textbf{f}· d\textbf{r} = 0$$.

4.1.14. Show that if $$\textbf{f}$$ points in the same direction as $$\textbf{r} ′ (t)$$ at each point $$\textbf{r}(t)$$ along a smooth curve $$C$$, then $$\int_C \textbf{f}· d\textbf{r} = \int_C \norm{ \textbf{f}}\,ds$$.

#### c

4.1.15. Prove that $$\int_C f (x, y)\,ds = \int_{−C} f (x, y)\,ds$$. (Hint: Use formulas Equation (4.9).)

4.1.16. Let $$C$$ be a smooth curve with arc length $$L$$, and suppose that $$\textbf{f}(x, y) = P(x, y)\textbf{i}+Q(x, y)\textbf{j}$$ is a vector field such that $$\norm{\textbf{f}(x, y)} ≤ M$$ for all $$(x, y) \text{ on }C$$. Show that $$\left | \int_C \textbf{f}· d\textbf{r} \right | ≤ ML$$. (Hint: Recall that $$\left | \int_a^b g(x)\,dx \right | ≤ \int_a^b | g(x) |\,dx$$ for Riemann integrals.)

4.1.17. Prove that the Riemann integral $$\int_a^b f (x)\,dx$$ is a special case of a line integral.

## 4.2: Properties of Line Integrals

#### A

4.2.1. Evaluate $$\oint_C (x^ 2 + y^ 2 )\,dx+2x y\, d y$$ for $$C : x = \cos t, y = \sin t, 0 ≤ t ≤ 2π.$$

4.2.2. Evaluate $$\int_C (x^2 + y^ 2 )\,dx+2x y\, d y$$ for $$C : x = \cos t, y = \sin t, 0 ≤ t ≤ π$$

4.2.3. Is there a potential $$F(x, y) \text{ for }\textbf{f}(x, y) = y\textbf{i}− x\textbf{j}$$? If so, find one.

4.2.4. Is there a potential $$F(x, y) \text{ for }\textbf{f}(x, y) = x\textbf{i}− y\textbf{j}$$? If so, find one.

4.2.5. Is there a potential $$F(x, y) \text{ for }\textbf{f}(x, y) = x y^2 \textbf{i}+ x^ 3 y\textbf{j}$$? If so, find one.

#### B

4.2.6. Let $$\textbf{f}(x, y) \text{ and }\textbf{g}(x, y)$$ be vector fields, let $$a \text{ and }b$$ be constants, and let $$C$$ be a curve in $$\mathbb{R}^ 2$$. Show that

$\int_C (a\textbf{f}± b\textbf{g})· d\textbf{r} = a \int_C \textbf{f}· d\textbf{r} ± b \int_C \textbf{g}· d\textbf{r} .$

4.2.7. Let $$C$$ be a curve whose arc length is $$L$$. Show that $$\int_C 1\,ds = L$$.

4.2.8. Let $$f (x, y) \text{ and }g(x, y)$$ be continuously differentiable real-valued functions in a region $$R$$. Show that

$\oint_C f ∇g · d\textbf{r} = −\oint_C g∇f · d\textbf{r}$

for any closed curve $$C$$ in $$R$$. (Hint: Use Exercise 21 in Section 2.4.)

4.2.9. Let $$\textbf{f}(x, y) = \frac{−y}{ x^ 2+y^ 2} \textbf{i}+ \frac{x}{ x^ 2+y^ 2} \textbf{j}$$ for all $$(x, y) \neq (0,0)$$, and $$C : x = \cos t, y = \sin t, 0 ≤ t ≤ 2π.$$

(a) Show that $$\textbf{f} = ∇F,\text{ for }F(x, y) = \tan^{−1} (y/x)$$.

(b) Show that $$\oint_C \textbf{f}· d\textbf{r} = 2π$$. Does this contradict Corollary 4.6? Explain.

#### C

4.2.10. Let $$g(x) \text{ and }h(y)$$ be differentiable functions, and let $$\textbf{f}(x, y) = h(y)\textbf{i}+ g(x)\textbf{j}$$. Can f have a potential $$F(x, y)$$? If so, find it. You may assume that $$F$$ would be smooth. (Hint: Consider the mixed partial derivatives of $$F$$.)

## 4.3: Green’s Theorem

#### A

For Exercises 1-4, use Green’s Theorem to evaluate the given line integral around the curve $$C$$, traversed counterclockwise.

4.3.1. $$\oint_C (x^ 2 − y^ 2 )\,dx+2x y \,d y; C\text{ is the boundary of }R = {(x, y) : 0 ≤ x ≤ 1, 2x^ 2 ≤ y ≤ 2x}$$

4.3.2. $$\oint_C x^ 2 y \,dx+2x y \,d y; C \text{ is the boundary of }R = {(x, y) : 0 ≤ x ≤ 1, x^ 2 ≤ y ≤ x}$$

4.3.3. $$\oint_C 2y\, dx−3x\, d y; C \text{ is the circle }x^ 2 + y^ 2 = 1$$

4.3.4. $$\oint_C (e^{ x^ 2} + y^ 2 )\,dx + (e^{ y^ 2} + x^ 2 )\,d y; C \text{ is the boundary of the triangle with vertices }(0,0), (4,0) \text{ and }(0,4)$$

4.3.5. Is there a potential $$F(x, y) \text{ for }\textbf{f}(x, y) = (y^ 2 +3x^ 2 )\textbf{i}+2x y\textbf{j}$$? If so, find one.

4.3.6. Is there a potential $$F(x, y) \text{ for }\textbf{f}(x, y) = (x^ 3 \cos (x y) + 2x\sin (x y))\textbf{i} + x^ 2 y\cos (x y)\textbf{j}$$? If so, find one.

4.3.7. Is there a potential $$F(x, y) \text{ for }\textbf{f}(x, y) = (8x y+3)\textbf{i}+4(x^ 2 + y)\textbf{j}$$? If so, find one.

4.3.8. Show that for any constants $$a, b \text{ and any closed simple curve }C, \oint_C a\, dx+ b \,d y = 0$$.

#### B

4.3.9. For the vector field f as in Example 4.8, show directly that$$\oint_C \textbf{f}· d\textbf{r} = 0$$, where $$C$$ is the boundary of the annulus $$R = {(x, y) : 1/4 ≤ x^ 2 + y^ 2 ≤ 1}$$ traversed so that $$R$$ is always on the left.

4.3.10. Evaluate $$\oint_C e^ x \sin y \,dx+(y^ 3 + e^ x \cos y)\,d y$$, where $$C$$ is the boundary of the rectangle with vertices $$(1,−1), (1,1), (−1,1) \text{ and }(−1,−1)$$, traversed counterclockwise.

#### C

4.3.11. For a region $$R$$ bounded by a simple closed curve $$C$$, show that the area $$A \text{ of }R$$ is

$A = −\oint_C y\, dx = \oint_C x \,d y = \frac{1}{ 2}\oint_C x \,d y− y \,dx ,$

where $$C$$ is traversed so that $$R$$ is always on the left. (Hint: Use Green’s Theorem and the fact that $$A = \iint\limits_R 1\,d A.$$)

## 4.4: Surface Integrals and the Divergence Theorem

#### A

For Exercises 1-4, use the Divergence Theorem to evaluate the surface integral $$\iint_Σ \textbf{f}· d\textbf{σ}$$ of the given vector field $$\textbf{f}(x, y, z)$$ over the surface $$Σ$$.

4.4.1. $$\textbf{f}(x, y, z) = x\textbf{i}+2y\textbf{j}+3z\textbf{k}, Σ : x^ 2 + y^ 2 + z^ 2 = 9$$

4.4.2. $$\textbf{f}(x, y, z) = x\textbf{i}+ y\textbf{j}+ z\textbf{k}, Σ :\text{ boundary of the solid cube }S = {(x, y, z) : 0 ≤ x, y, z ≤ 1}$$

4.4.3. $$\textbf{f}(x, y, z) = x^ 3 \textbf{i}+ y^ 3 \textbf{j}+ z^ 3\textbf{k}, Σ : x^ 2 + y^ 2 + z^ 2 = 1$$

4.4.4. $$\textbf{f}(x, y, z) = 2\textbf{i}+3\textbf{j}+5\textbf{k}, Σ : x^ 2 + y^ 2 + z^ 2 = 1$$

#### B

4.4.5. Show that the flux of any constant vector field through any closed surface is zero.

4.4.6. Evaluate the surface integral from Exercise 2 without using the Divergence Theorem, i.e. using only Definition 4.3, as in Example 4.10. Note that there will be a different outward unit normal vector to each of the six faces of the cube.

4.4.7. Evaluate the surface integral $$\iint_Σ \textbf{f}· d\textbf{σ}$$, where $$\textbf{f}(x, y, z) = x^ 2 \textbf{i}+ x y\textbf{j}+ z\textbf{k}\text{ and }Σ$$ is the part of the plane $$6x + 3y + 2z = 6 \text{ with }x ≥ 0, y ≥ 0, \text{ and }z ≥ 0$$, with the outward unit normal n pointing in the positive $$z$$ direction.

4.4.8. Use a surface integral to show that the surface area of a sphere of radius $$r$$ is $$4πr^2$$. (Hint: Use spherical coordinates to parametrize the sphere.)

4.4.9. Use a surface integral to show that the surface area of a right circular cone of radius $$R$$ and height $$h$$ is $$πR \sqrt{ h^ 2 + R^2}$$. (Hint: Use the parametrization $$x = r \cos θ, y = r \sin θ, z = \frac{h}{ R} r, \text{ for }0 ≤ r ≤ R \text{ and }0 ≤ θ ≤ 2π.$$)

4.4.10. The ellipsoid $$\frac{x^ 2}{ a^ 2} + \frac{y^ 2}{ b^ 2} + \frac{z^ 2}{ c^ 2} = 1$$ can be parametrized using ellipsoidal coordinates

$x = a\sin φ \cos θ ,\, y = b\sin φ \sin θ , \,z = c \cos φ ,\text{ for } 0 ≤ θ ≤ 2π \text{ and }0 ≤ φ ≤ π.$

Show that the surface area $$S$$ of the ellipsoid is

$S = \int_0^π \int_0^2π \sin φ \sqrt{ a^ 2 b^ 2 \cos^2 φ+ c^ 2(a^ 2 \sin^2 θ + b^ 2 \cos^2 θ)\sin^2 φ}\, dθ\, dφ .$

(Note: The above double integral can not be evaluated by elementary means. For specific values of $$a, b \text{ and }c$$ it can be evaluated using numerical methods. An alternative is to express the surface area in terms of elliptic integrals. )

#### C

4.4.11. Use Definition 4.3 to prove that the surface area $$S$$ over a region $$R$$ in $$\mathbb{R}^ 2$$ of a surface $$z = f (x, y)$$ is given by the formula

$S = \iint\limits_R \sqrt{ 1+ \left ( \frac{∂f}{ ∂x} \right )^2 + \left ( \frac{ ∂f}{ ∂y} \right )^2} \,d A .$

(Hint: Think of the parametrization of the surface.)

## 4.5: Stokes’ Theorem

#### A

For Exercises 1-3, calculate $$\int_C f (x, y, z)\,ds$$ for the given function $$f (x, y, z)$$ and curve $$C$$.

4.5.1. $$f (x, y, z) = z; \quad C : x = \cos t, y = \sin t, z = t, 0 ≤ t ≤ 2π$$

4.5.2. $$f (x, y, z) = \frac{x}{ y} + y+2yz;\quad C : x = t^ 2 , y = t, z = 1, 1 ≤ t ≤ 2$$

4.5.3. $$f (x, y, z) = z^ 2 ;\quad C : x = t\sin t, y = t \cos t, z = \frac{2 \sqrt{ 2}}{ 3} t^{ 3/2}, 0 ≤ t ≤ 1$$

For Exercises 4-9, calculate $$\int_C \textbf{f}· d\textbf{r}$$ for the given vector field $$\textbf{f}(x, y, z) \text{ and curve }C$$.

4.5.4. $$\textbf{f}(x, y, z) = \textbf{i}−\textbf{j}+\textbf{k};\quad C : x = 3t, y = 2t, z = t, 0 ≤ t ≤ 1$$

4.5.5. $$\textbf{f}(x, y, z) = y\textbf{i}− x\textbf{j}+ z\textbf{k};\quad C : x = \cos t, y = \sin t, z = t, 0 ≤ t ≤ 2π$$

4.5.6. $$\textbf{f}(x, y, z) = x\textbf{i}+ y\textbf{j}+ z\textbf{k};\quad C : x = \cos t, y = \sin t, z = 2, 0 ≤ t ≤ 2π$$

4.5.7. $$\textbf{f}(x, y, z) = (y−2z)\textbf{i}+ x y\textbf{j}+(2xz + y)\textbf{k};\quad C : x = t, y = 2t, z = t^ 2 −1, 0 ≤ t ≤ 1$$

4.5.8. $$\textbf{f}(x, y, z) = yz \textbf{i}+ xz \textbf{j}+ x y\textbf{k};\quad C : \text{ the polygonal path from }(0,0,0) \text{ to }(1,0,0)\text{ to }(1,2,0)$$

4.5.9. $$\textbf{f}(x, y, z) = x y\textbf{i}+(z − x)\textbf{j}+2yz\textbf{k};\quad C :\text{ the polygonal path from }(0,0,0) \text{ to }(1,0,0) \text{ to }(1,2,0) \text{ to }(1,2,−2)$$

For Exercises 10-13, state whether or not the vector field $$\textbf{f}(x, y, z)$$ has a potential in $$\mathbb{R}^ 3$$ (you do not need to find the potential itself).

4.5.10. $$\textbf{f}(x, y, z) = y\textbf{i}− x\textbf{j}+ z\textbf{k}$$

4.5.11. $$\textbf{f}(x, y, z) = a\textbf{i}+ b\textbf{j}+ c\textbf{k} (a, b, c \text{ constant})$$

4.5.12. $$\textbf{f}(x, y, z) = (x+ y)\textbf{i}+ x\textbf{j}+ z^ 2\textbf{k}$$

4.5.13. $$\textbf{f}(x, y, z) = x y\textbf{i}−(x− yz^2 )\textbf{j}+ y^ 2 z\textbf{k}$$

#### B

For Exercises 14-15, verify Stokes’ Theorem for the given vector field $$\textbf{f}(x, y, z)$$ and surface $$Σ$$.

4.5.14. $$\textbf{f}(x, y, z) = 2y\textbf{i}− x\textbf{j}+ z\textbf{k};\quad Σ : x ^2 + y^ 2 + z^ 2 = 1, z ≥ 0$$

4.5.15. $$\textbf{f}(x, y, z) = x y\textbf{i}+ xz \textbf{j}+ yz\textbf{k};\quad Σ : z = x^ 2 + y^ 2 , z ≤ 1$$

4.5.16. Construct a Möbius strip from a piece of paper, then draw a line down its center (like the dotted line in Figure 4.5.3(b)). Cut the Möbius strip along that center line completely around the strip. How many surfaces does this result in? How would you describe them? Are they orientable?

4.5.17. Use Gnuplot (see Appendix C) to plot the Möbius strip parametrized as:

$\textbf{r}(u,v) = \cos u(1+ v\cos \frac{u}{ 2} )\textbf{i}+\sin u(1+ v\cos \frac{u}{ 2} )\textbf{j}+ v\sin \frac{u}{ 2} \textbf{k} ,\, 0 ≤ u ≤ 2π , -\frac{1}{ 2} ≤ v ≤ \frac{1}{ 2}$

#### C

4.5.18. Let $$Σ$$ be a closed surface and $$\textbf{f}(x, y, z)$$ a smooth vector field. Show that $$\iint\limits_Σ (\text{curl } \textbf{f})· \textbf{n}dσ = 0$$. (Hint: Split $$Σ$$ in half.)

4.5.19. Show that Green’s Theorem is a special case of Stokes’ Theorem.

## 4.6: Gradient, Divergence, Curl, and Laplacian

#### A

For Exercises 1-6, find the Laplacian of the function $$f (x, y, z)$$ in Cartesian coordinates.

4.6.1. $$f (x, y, z) = x+ y+ z$$

4.6.2. $$f (x, y, z) = x^ 5$$

4.6.3. $$f (x, y, z) = (x^ 2 + y^ 2 + z^ 2 )^{ 3/2}$$

4.6.4. $$f (x, y, z) = e^{ x+y+z}$$

4.6.5. $$f (x, y, z) = x^ 3 + y^ 3 + z^ 3$$

4.6.6. $$f (x, y, z) = e^{ −x^ 2−y^ 2−z^ 2}$$

4.6.7. Find the Laplacian of the function in Exercise 3 in spherical coordinates.

4.6.8. Find the Laplacian of the function in Exercise 6 in spherical coordinates.

4.6.9. Let $$f (x, y, z) = \frac{z}{ x^ 2 + y^ 2}$$ in Cartesian coordinates. Find $$∇f$$ in cylindrical coordinates.

4.6.10. For $$\textbf{f}(r,θ, z) = r\textbf{e}_r + z \sin θ \textbf{e}_θ + rz\textbf{e}_z$$ in cylindrical coordinates, find div f and curl f.

4.6.11. For $$\textbf{f}(ρ,θ,φ) = \textbf{e}_ρ +ρ \cos θ \textbf{e}_θ +ρ \textbf{e}_φ$$ in spherical coordinates, find div f and curl f.

#### B

For Exercises 12-23, prove the given formula ($$r = \norm{\textbf{r}}$$ is the length of the position vector field $$\textbf{r}(x, y, z) = x\textbf{i}+ y\textbf{j}+ z\textbf{k}$$).

4.6.12. $$∇(1/r) = −\textbf{r}/r^ 3$$

4.6.13. $$∆(1/r) = 0$$

4.6.14. $$∇· (\textbf{r}/r^ 3 ) = 0$$

4.6.15. $$∇(\ln r) = \textbf{r}/r^ 2$$

4.6.16. div $$(\textbf{F}+\textbf{G}) = \text{div }\textbf{F} + \text{div }\textbf{G}$$

4.6.17. curl $$(\textbf{F}+\textbf{G}) = \text{curl }\textbf{F} + \text{curl }\textbf{G}$$

4.6.18. div $$(f \textbf{F}) = f \text{div }\textbf{F} + \textbf{F}· ∇f$$

4.6.19. div $$(\textbf{F}× \textbf{G}) = \textbf{G}· \text{curl }\textbf{F} − \textbf{F}· \text{curl }\textbf{G}$$

4.6.20. div $$(∇f × ∇g) = 0$$

4.6.21. curl $$(f \textbf{F}) = f \text{curl }\textbf{F} + (∇f )× \textbf{F}$$

4.6.22. curl (curl $$\textbf{F}$$) = $$∇(\text{div }\textbf{F}) − ∆\textbf{F}$$

4.6.23. $$∆(f g) = f ∆ g + g∆ f + 2(∇f · ∇g)$$

#### C

4.6.24. Prove Theorem 4.17.

4.6.25. Derive the gradient formula in cylindrical coordinates: $$∇F = \frac{∂F}{ ∂r} \textbf{e}_r + \frac{1}{ r} \frac{∂F}{ ∂θ} \textbf{e}_θ + \frac{∂F}{ ∂z} \textbf{e}_z$$

4.6.26. Use $$\textbf{f} = u∇v$$ in the Divergence Theorem to prove:

(a) Green’s first identity: $$\iiint\limits_S (u∆v + (∇u)· (∇v))\,dV = \iint\limits_Σ (u∇v)· dσ$$

(b) Green’s second identity: $$\iiint\limits_S (u∆v − v∆u)\,dV = \iint\limits_Σ (u∇v − v∇u)· dσ$$

4.6.27. Suppose that $$∆u = 0$$ (i.e. $$u$$ is harmonic) over $$\mathbb{R}^ 3$$. Define the normal derivative $$\frac{∂u}{ ∂n}$$ of $$u$$ over a closed surface $$Σ$$ with outward unit normal vector n by $$\frac{∂u}{ ∂n} = D_n u = \textbf{n}· ∇u$$. Show that $$\iint\limits_Σ \frac{∂u}{ ∂n}\, dσ = 0$$. (Hint: Use Green’s second identity.)

This page titled 4.E: Line and Surface Integrals (Exercises) is shared under a GNU Free Documentation License 1.3 license and was authored, remixed, and/or curated by Michael Corral via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.