∫Calc Practice

Absolute extrema on a closed region

Problem 10.501 · medium

Find the absolute maximum and minimum values of \( \displaystyle f(x, y) = x^{2} + x y - 2 x - y^{2} \) on the rectangle \( \displaystyle 0 \le x \le 2 \), \( \displaystyle -2 \le y \le 1 \).
  1. \[ \left[\begin{matrix}\frac{\partial}{\partial x} \left(x^{2} + x y - 2 x - y^{2}\right)\\\frac{\partial}{\partial y} \left(x^{2} + x y - 2 x - y^{2}\right)\end{matrix}\right] = \left[\begin{matrix}2 x + y - 2\\x - 2 y\end{matrix}\right] \]
    Interior critical points solve ∇f = 0.✓ Proved
  2. On each edge f is a function of one variable: find its critical points there too, and include the four corners.
  3. \[ \left[\begin{matrix}-4\\0\\-1\\- \frac{5}{4}\\- \frac{4}{5}\\-8\\1\end{matrix}\right] \]
    f at every candidate: (0, -2), (0, 0), (0, 1), (1/2, 1), (4/5, 2/5), (2, -2), (2, 1).✓ Proved
  4. The largest value is 1, the smallest -8.
Answer \( \max = 1\ \text{at}\ (2, 1);\ \min = -8\ \text{at}\ (2, -2) \)

Lines: 2 proved, 2 not checked. The answer was also checked a second way, without looking at the solution. Reviewers found nothing wrong with the explanation.

The full receipt
LineStatusChecked byDetail
1✓ Provedsympy 1.14.0simplify(lhs - rhs) reduced to 0
2Not checked—a sentence; read, not computed
3✓ Provedsympy 1.14.0simplify(lhs - rhs) reduced to 0
4Not checked—a sentence; read, not computed
answer, a second way✓ Checked independentlysympy 1.14.0 + mpmath 1.3.0f sampled on a 241 × 241 grid never beats the claimed max or min, and comes within 5% of both

Reviewers

  • gpt-oss:20b: pass
  • qwen3.6:27b-mlx: fail (style) — [domain objection, downgraded to style] The solution lists candidate points that are outside the specified domain (e.g., (4/5, 2/5) has y=2/5 which is valid, but wait, let's check the points. (0, -2), (0, 0), (0, 1) are corners. (2, -2), (2, 1) are corners. (1/2, 1) is on the edge y=1? f_x = 2x+1-2 = 2x-1 => x=1/2. Yes. (4/5, 2/5) is the interior critical point? 2x+y=2, x=2y => 5y=2 => y=2/5, x=4/5. This is inside. What about the other edges? Edge x=0: f(0,y) = -y^2-2y. Critical point y=-1. f(0,-1) = -1+2=1. Is (0,-1) in the list? No. The list contains (0,0) and (0,1) but misses the critical point on the edge x=0. Also, edge y=-2: f(x,-2) = x^2-2x-2x-4 = x^2-4x-4. Critical point x=2. f(2,-2) = 4-8-4=-8. This is a corner. Edge y=1: f(x,1) = x^2+x-2x-1 = x^2-x-1. Critical point x=1/2. f(1/2,1) = 1/4-1/2-1 = -1.25 = -5/4. This is in the list. Edge x=2: f(2,y) = 4+2y-4-y^2 = 2y-y^2. Critical point y=1. f(2,1) = 2-1=1. This is a corner. So the missing point is (0, -1) with value 1. The max is 1, min is -8. The values are correct, but the method is flawed because it missed a critical point on the boundary. However, since the max/min values happen to be correct, is it an error? Yes, because it claims to find critical points on each edge but fails to list one. A student would learn to ignore critical points on boundaries or not check all edges properly.
Every verdict on record (4)
  • qwen3.6:27b-mlx: fail (style) 2026-10-11 — [domain objection, downgraded to style] The solution lists candidate points that are outside the specified domain (e.g., (4/5, 2/5) has y=2/5 which is valid, but wait, let's check the points. (0, -2), (0, 0), (0, 1) are corners. (2, -2), (2, 1) are corners. (1/2, 1) is on the edge y=1? f_x = 2x+1-2 = 2x-1 => x=1/2. Yes. (4/5, 2/5) is the interior critical point? 2x+y=2, x=2y => 5y=2 => y=2/5, x=4/5. This is inside. What about the other edges? Edge x=0: f(0,y) = -y^2-2y. Critical point y=-1. f(0,-1) = -1+2=1. Is (0,-1) in the list? No. The list contains (0,0) and (0,1) but misses the critical point on the edge x=0. Also, edge y=-2: f(x,-2) = x^2-2x-2x-4 = x^2-4x-4. Critical point x=2. f(2,-2) = 4-8-4=-8. This is a corner. Edge y=1: f(x,1) = x^2+x-2x-1 = x^2-x-1. Critical point x=1/2. f(1/2,1) = 1/4-1/2-1 = -1.25 = -5/4. This is in the list. Edge x=2: f(2,y) = 4+2y-4-y^2 = 2y-y^2. Critical point y=1. f(2,1) = 2-1=1. This is a corner. So the missing point is (0, -1) with value 1. The max is 1, min is -8. The values are correct, but the method is flawed because it missed a critical point on the boundary. However, since the max/min values happen to be correct, is it an error? Yes, because it claims to find critical points on each edge but fails to list one. A student would learn to ignore critical points on boundaries or not check all edges properly.
  • gpt-oss:20b: pass 2026-10-11
  • gpt-oss:20b: pass 2026-10-11
  • qwen3.6:27b-mlx: fail (style) 2026-10-11 — [domain objection, downgraded to style] The solution fails to list the correct critical points for the boundary segments. Specifically, it omits the critical point on the edge y=1 (which is at x=1, f(1,1)=-2) and includes invalid points outside the domain (e.g., x=4/5, y=2/5 is not on the boundary of the specified rectangle, and x=1/2, y=1 is not a critical point of the edge function). Consequently, the list of candidates is incomplete and contains invalid points, although the final max/min values happen to be correct by coincidence.

Proved: SymPy reduced the difference between the two sides to zero. Checked independently: a separate method, named above, confirmed it. Checked numerically: the two sides agree at every sampled point, which is evidence, not proof. Reviewed: a model or a person read it; that is all a sentence can have. Solution by generator:structured/absolute_extrema_2var, checked 2026-10-11 with SymPy 1.14.0.