Skip to content
Tutorials Center
My learning

Topics

Lesson 37 of 39 · Projects and Practice

Practice Set: Vector Calculus

Eight practice problems on vector fields, line integrals, conservative fields, surface integrals, Green, Stokes and the divergence theorem, with SymPy checkers.

This practice set covers the last four chapters: vector fields, line and surface integrals, and the big theorems. Each problem has a short statement. Solve it by hand, then run the checker to compare.

A useful habit for this topic: before computing, decide which tool fits. Is the field conservative? Is the curve closed? Is the surface closed? Is the divergence or curl simple? The right choice can shorten a page of work to two lines.

Part A: Line integrals and potentials

Problem 1. Compute ∫_C xy ds, where C is the line segment from (0, 0) to (3, 4).

Problem 2. Compute the work done by F = ⟨y, -x⟩ along the curve r(t) = ⟨t, t²⟩, 0 ≤ t ≤ 1.

Problem 3. Show that F = ⟨3x²y + 2, x³ + 4y⟩ is conservative, find a potential function, and compute the work from (0, 0) to (1, 2).

Python Checker for Part A

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Part B: Green, divergence, curl

Problem 4. Use Green's theorem to evaluate ∮_C (x² - y) dx + (x + y²) dy where C is the circle x² + y² = 4 counterclockwise.

Problem 5. Compute div F and curl F for F = ⟨x y z, x² + z, y e^{x}⟩.

Problem 6. Use the divergence theorem to find the outward flux of F = ⟨x, 2y, 3z⟩ through the sphere x² + y² + z² = 9.

Python Checker for Part B

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Part C: Surfaces and Stokes

Problem 7. Find the surface area of the part of the plane x + y + z = 1 in the first octant (the triangle with vertices on the three axes at distance 1).

Problem 8. Use Stokes' theorem to compute ∮_C F · dr for F = ⟨y, -x, z²⟩, where C is the circle x² + y² = 1, z = 0, counterclockwise seen from above.

Python Checker for Part C

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check Problem 7 geometrically: the triangle with vertices (1, 0, 0), (0, 1, 0), (0, 0, 1) is equilateral with side √2, so its area is (√3/4)·2 = √3/2.

How to choose a method

flowchart TD
    A["Line integral of F"] --> B{"Is F conservative?"}
    B -- "yes" --> C["Use the potential: f(B) - f(A)"]
    B -- "no" --> D{"Is the curve closed?"}
    D -- "yes, in the plane" --> E["Green's theorem"]
    D -- "yes, in space" --> F["Stokes' theorem"]
    D -- "no" --> G["Parametrize and integrate"]

A quick decision guide for line integrals.

For flux through a closed surface, first compute div F. If it is simple, use the divergence theorem. If the surface is open, parametrize it directly, or close it with extra faces and subtract their flux.

The big theorems need their hypotheses. A field that blows up inside the region, a curve that crosses itself, or a surface with the wrong orientation all lead to wrong answers.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. The work of a conservative field around a closed curve is:

    By path independence, start and end point coincide, so f(B) - f(A) = 0.
  2. 2. In Problem 6, div F for F = ⟨x, 2y, 3z⟩ is:

    1 + 2 + 3 = 6, constant, so the flux is 6 times the volume of the ball.
  3. 3. For Problem 4, why is the answer 8π?

    ∂Q/∂x - ∂P/∂y = 1 + 1 = 2, and 2 · 4π = 8π.
  4. 4. Which tool turns a flux integral over a closed surface into a volume integral?

    The divergence theorem equates outward flux with the triple integral of the divergence.

Summary

  • Decide first: conservative, closed curve, closed surface, simple curl or divergence?
  • Conservative: use a potential. Closed plane curve: Green. Closed space curve: Stokes. Closed surface: divergence theorem.
  • Otherwise parametrize and integrate.
  • Check every answer with an independent calculation.

Next: Project: Gradient Descent on a Landscape