∫Calc Practice

Gradient and directional derivatives

Problem 10.18 · medium Video

Find the directional derivative of \( \displaystyle f(x, y) = x e^{y} \) at \( \displaystyle (1, 2) \) in the direction of \( \displaystyle \langle 1, 0 \rangle \).
  1. \[ \left[\begin{matrix}\frac{\partial}{\partial x} x e^{y}\\\frac{\partial}{\partial y} x e^{y}\end{matrix}\right] = \left[\begin{matrix}e^{y}\\x e^{y}\end{matrix}\right] \]
    ∇f.✓ Proved
  2. \[ \left[\begin{matrix}e^{2}\\e^{2}\end{matrix}\right] \]
    ∇f at the point.
  3. \[ \left[\begin{matrix}1\\0\end{matrix}\right] \]
    The unit direction u.
  4. \[ e^{2} \]
    D_u f = ∇f · u.
Answer \( e^{2} \)
A contour map of f(x, y) = x·e^(y): each curve joins points where f has the same value. At (1, 2) the gradient arrow points straight uphill, across the contours, and the direction of travel is drawn beside it.

Lines: 1 proved, 3 not checked. The answer was also checked a second way, without looking at the solution. The reviewers disagree about how one step is explained; every verdict is in the receipt. How we verify

The full receipt
LineStatusChecked byDetail
1✓ Provedsympy 1.14.0simplify(lhs - rhs) reduced to 0
2Not checked—both sides are the same expression: the line states a value, and the working that produced it is not on the line
3Not checked—both sides are the same expression: the line states a value, and the working that produced it is not on the line
4Not checked—both sides are the same expression: the line states a value, and the working that produced it is not on the line
answer, a second way✓ Checked independentlysympy 1.14.0 + mpmath 1.3.0f differenced along the unit direction agrees

Reviewers

  • gpt-oss:20b: fail (misleading) — The dot product of ∇f(1,2)=(e²,e²) with the unit vector (1,0) is a single scalar e², but the solution lists two numbers in step 4, implying a vector result. This misleads a student into thinking the directional derivative is a vector or two values.
  • qwen3.6:27b-mlx: pass — The solution correctly computes the gradient, evaluates it at the given point, identifies the direction vector (which is already a unit vector), and performs the dot product to find the directional derivative.
Every verdict on record (6)
  • qwen3.6:27b-mlx: pass 2026-09-28 — The solution correctly computes the gradient, evaluates it at the given point, identifies the direction vector (which is already a unit vector), and performs the dot product to find the directional derivative.
  • gpt-oss:20b: fail (misleading) 2026-09-28 — The dot product of ∇f(1,2)=(e²,e²) with the unit vector (1,0) is a single scalar e², but the solution lists two numbers in step 4, implying a vector result. This misleads a student into thinking the directional derivative is a vector or two values.
  • qwen3.6:27b-mlx: pass 2026-09-27
  • gpt-oss:20b: fail (misleading) 2026-09-27 — The solution lists two numbers for the directional derivative, but the dot product of the gradient and the unit vector yields a single scalar value e^2. The second value is extraneous and could mislead a student.
  • qwen3.6:27b-mlx: pass 2026-09-26
  • gpt-oss:20b: fail (misleading) 2026-09-26 — The final line claims the directional derivative is "exp(2), exp(2)" which suggests two values; the correct result is a single scalar exp(2).

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