∫Calc Practice

Conservative fields and potential functions

Problem 12.253 · medium

Show that \( \displaystyle \mathbf F = \left(\cos{\left(y \right)}\right)\mathbf i + \left(- x \sin{\left(y \right)}\right)\mathbf j \) is conservative, find a potential function \( \displaystyle f \), and evaluate \( \displaystyle \int_C \mathbf F \cdot d\mathbf r \) along any path from \( \displaystyle (2, 2) \) to \( \displaystyle (2, -1) \).
  1. \[ \left[\begin{matrix}\frac{\partial}{\partial x} \left(- x \sin{\left(y \right)}\right)\\\frac{d}{d y} \cos{\left(y \right)}\end{matrix}\right] = \left[\begin{matrix}- \sin{\left(y \right)}\\- \sin{\left(y \right)}\end{matrix}\right] \]
    ∂Q/∂x = ∂P/∂y: F is conservative.✓ Proved
  2. Integrate the first component in x, then fix the 'constant' (a function of the other variables) by matching the other components.
    Reviewed
  3. \[ \left[\begin{matrix}\frac{\partial}{\partial x} x \cos{\left(y \right)}\\\frac{\partial}{\partial y} x \cos{\left(y \right)}\end{matrix}\right] = \left[\begin{matrix}\cos{\left(y \right)}\\- x \sin{\left(y \right)}\end{matrix}\right] \]
    f = x*cos(y) has gradient F.✓ Proved
  4. \[ - 2 \cos{\left(2 \right)} + 2 \cos{\left(1 \right)} \]
    ∫_C F·dr = f(end) − f(start), for any path.✓ Proved
Answer \( f = x \cos{\left(y \right)} + C,\quad \int_C \mathbf F\cdot d\mathbf r = - 2 \cos{\left(2 \right)} + 2 \cos{\left(1 \right)} \)

✓ Nihil obstat Lines: 3 proved, 1 reviewed. 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
2Reviewedreviewers: gpt-oss:20b, qwen3.6:27b-mlxa sentence; read, not computed
3✓ Provedsympy 1.14.0simplify(lhs - rhs) reduced to 0
4✓ Provedsympy 1.14.0simplify(lhs - rhs) reduced to 0
answer, a second way✓ Checked independentlysympy 1.14.0 + mpmath 1.3.0the line integral computed numerically along two different paths

Reviewers

  • gpt-oss:20b: pass
  • qwen3.6:27b-mlx: pass
Every verdict on record (4)
  • gpt-oss:20b: pass 2026-10-09
  • qwen3.6:27b-mlx: pass 2026-10-09
  • qwen3.6:27b-mlx: pass 2026-10-09
  • gpt-oss:20b: pass 2026-10-09

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/conservative_fields, checked 2026-10-09 with SymPy 1.14.0.