∫Calc Practice

Gradient and directional derivatives

Problem 10.22 · hard

Find the directional derivative of \( \displaystyle f(x, y) = x e^{y} \) at \( \displaystyle (2, 1) \) in the direction of \( \displaystyle \langle 1, 1 \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\end{matrix}\right] \]
    ∇f at the point.✓ Proved
  3. \[ \left[\begin{matrix}\frac{\sqrt{2}}{2}\\\frac{\sqrt{2}}{2}\end{matrix}\right] \]
    The unit direction u.✓ Proved
  4. \[ \frac{3 \sqrt{2} e}{2} \]
    D_u f = ∇f · u.✓ Proved
Answer \( \frac{3 \sqrt{2} e}{2} \)

Every line of this solution was proved by the computer algebra system SymPy. The answer was also checked a second way, without looking at the solution. The explanation has not been reviewed yet.

The full receipt
LineStatusChecked byDetail
1✓ Provedsympy 1.14.0simplify(lhs - rhs) reduced to 0
2✓ Provedsympy 1.14.0simplify(lhs - rhs) reduced to 0
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.0f differenced along the unit direction agrees

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-09-26 with SymPy 1.14.0.