Skip to content
Tutorials Center
My learning

Topics

Lesson 36 of 39 · Projects and Practice

Practice Set: Optimization and Integrals

Eight worked practice problems on critical points, Lagrange multipliers, double and triple integrals, each with a SymPy checker so you can test your own answers.

This practice set covers the second half of the course so far: optimization and multiple integrals. Try each problem on paper first, then open the checker. The checkers compute the answer with SymPy, so you can compare numbers rather than trusting a printed solution.

A good routine is: sketch, set up the limits or equations, solve, then compare. If the numbers disagree, find the first line where your work and the computer's work differ.

Part A: Optimization

Problem 1. Find and classify all critical points of f(x, y) = x³ + y³ - 3xy.

Problem 2. Find the absolute maximum and minimum of f(x, y) = x² + y² - x - y on the triangle with vertices (0, 0), (2, 0), (0, 2). (Check three edges and the interior.)

Problem 3. Use Lagrange multipliers to find the point on the plane x + 2y + 3z = 14 closest to the origin. (Minimize x² + y² + z².)

Problem 4. A rectangular box without a lid has volume 32 cubic units. What dimensions use the least material?

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.

For Problem 1, the discriminant test classifies (0, 0) and (1, 1); the checker prints D and fxx for each so you can see which rule applies.

Part B: Double and triple integrals

Problem 5. Evaluate ∬_R (x y² + 2x) dA over R = [0, 1] × [0, 3].

Problem 6. Evaluate ∬_D (x + y) dA, where D is the region bounded by y = x² and y = 2x. First find where the curves meet.

Problem 7. Use polar coordinates to find the volume under z = 9 - x² - y² above the xy-plane.

Problem 8. Find the volume of the region inside the sphere x² + y² + z² = 4 and above the cone z = √(x² + y²).

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.

Hints and common pitfalls

  • Problem 2: the minimum on a closed region can be at an interior critical point, as in this problem, even if the boundary also has a small value. Always compare everything.
  • Problem 3: the constraint x + 2y + 3z = 14 has gradient ⟨1, 2, 3⟩, so the closest point lies along that direction from the origin.
  • Problem 4: express the height through the volume constraint, then you have an unconstrained two-variable problem. A cube-like symmetry does not hold here because the top is open.
  • Problem 6: sketch the region first. Between x = 0 and x = 2, the line y = 2x lies above the parabola y = x².
  • Problem 7: forgetting the factor r is the most common error.
  • Problem 8: the cone is φ = π/4, and the region above it is 0 ≤ φ ≤ π/4.

If your answer disagrees with the checker, test your limits by integrating 1 over your region. For a region with a known area or volume, the result is a quick sanity check.

Self-grading with tolerance

When you solve by computer, compare floating-point numbers with a tolerance rather than exact equality. Here is a tiny grader you can reuse: type your answers into the dictionary and it reports which ones match the exact values.

Python Check your own answers

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.

The exact column uses closed forms worked out by hand: √14 for the closest distance, 15/2 for Problem 5, 81π/2 for the paraboloid volume and 8π(2 - √2)/3 for the cone-in-sphere volume. Edit the numbers in mine and see which ones the grader accepts.

Check your understanding

Quick check · 3 questions

of 3 answered You scored / 3 · perfect!

  1. 1. In Problem 3, which direction does the closest point lie in, relative to the origin?

    The shortest segment from a point to a plane is perpendicular to the plane, that is, along its normal vector.
  2. 2. When classifying a critical point, D < 0 means:

    A negative Hessian determinant means eigenvalues of opposite sign.
  3. 3. The volume under z = 9 - r² above the xy-plane equals:

    ∫₀^{2π} ∫₀³ (9 - r²) r dr dθ = 2π · (81/2 - 81/4) = 2π · 81/4 = 81π/2.

Summary

  • Optimization: find critical points, classify them, compare with the boundary, use multipliers for constraints.
  • Integrals: sketch the region, choose coordinates (Cartesian, polar, cylindrical, spherical), and include the right factor.
  • Check every result with an independent method: a computer algebra system, a numerical grid or a known volume.

Next: Practice Set: Vector Calculus