Multivariable-Calculus ยท Unit 19 ยท Video 1 ยท Interactive Practice

The Gradient Field Test: My = Nx, and Where It Breaks

IKey Formulas

FormulaNameWhat it says
Fโƒ—=โˆ‡fโ€…โ€Šโ‡’โ€…โ€ŠMy=Nx\vec F = \nabla f \;\Rightarrow\; M_y = N_xThe testFrom M=fxM = f_x, N=fyN = f_y and fxy=fyxf_{xy} = f_{yx}
My=NxM_y = N_x everywhere, Fโƒ—\vec F defined on the whole plane โ€…โ€Šโ‡’โ€…โ€ŠFโƒ—=โˆ‡f\;\Rightarrow\; \vec F = \nabla fThe converseNeeds Fโƒ—\vec F continuously differentiable at every point
โŸจโˆ’y,โ€‰xโŸฉ\langle -y,\, x\rangle: My=โˆ’1โ‰ 1=NxM_y = -1 \ne 1 = N_xRotation fieldFails the test: not a gradient field
Gโƒ—=โŸจโˆ’y,โ€‰xโŸฉx2+y2\vec G = \dfrac{\langle -y,\, x\rangle}{x^2+y^2}, โˆฎx2+y2=1Gโƒ—โ‹…drโƒ—=2ฯ€\displaystyle\oint_{x^2+y^2=1} \vec G \cdot d\vec r = 2\piThe counterexamplePasses the test off the origin, yet is not a gradient field

Key Insight: My=NxM_y = N_x must hold identically, as expressions in xx and yy; it is never an equation to solve for xx.

IIAgreement Everywhere, Not at One Point

For โŸจ4x2+Axy,ย 3y2+4x2โŸฉ\langle 4x^2 + Axy,\ 3y^2 + 4x^2\rangle, My=AxM_y = Ax and Nx=8xN_x = 8x; only A=8A = 8 makes every loop's work zero.

๐Ÿ’ก Challenge: with Aโ‰ 8A \ne 8, find where to put the loop so its work is zero, and explain why that does not make the field conservative.

IIIOne Missing Point Breaks the Converse

Gโƒ—\vec G satisfies My=NxM_y = N_x wherever it is defined, but a loop around the origin picks up work 2ฯ€2\pi.

IVQuiz Questions

Problem 1 ยท Apply the Test

Which of these fields, all defined on the whole plane, is a gradient field?

โœ… Correct! My=1=NxM_y = 1 = N_x and the field is defined everywhere; indeed โŸจy,xโŸฉ=โˆ‡(xy)\langle y, x\rangle = \nabla(xy).
โŒ Not quite. That is the rotation field: My=โˆ’1M_y = -1 but Nx=1N_x = 1.
โŒ Not quite. Here My=1M_y = 1 and Nx=โˆ’1N_x = -1, so the test fails.
โŒ Not quite. The test pairs MM with yy and NN with xx: My=xM_y = x and Nx=yN_x = y, which differ.
โŒ Not quite. Compute MyM_y and NxN_x for each field.
Show solution

For each field compute MyM_y and NxN_x:

  • โŸจโˆ’y,xโŸฉ\langle -y, x\rangle: My=โˆ’1M_y = -1, Nx=1N_x = 1 โ€” fails.
  • โŸจy,xโŸฉ\langle y, x\rangle: My=1M_y = 1, Nx=1N_x = 1 โ€” passes.
  • โŸจy,โˆ’xโŸฉ\langle y, -x\rangle: My=1M_y = 1, Nx=โˆ’1N_x = -1 โ€” fails.
  • โŸจxy,xyโŸฉ\langle xy, xy\rangle: My=xM_y = x, Nx=yN_x = y โ€” not equal as expressions, fails.

Only โŸจy,xโŸฉ\langle y, x\rangle passes, and since it is defined on the whole plane the converse makes it a gradient field: โˆ‡(xy)=โŸจy,xโŸฉ\nabla(xy) = \langle y, x\rangle.

Problem 2 ยท Find the Constant

Given: Fโƒ—=(aโ€‰xy2+2x)โ€‰ฤฑ^+(6x2yโˆ’1)โ€‰ศท^\vec F = (a\,x y^2 + 2x)\,\hat\imath + (6x^2 y - 1)\,\hat\jmath โ€” find every value of aa that makes Fโƒ—\vec F a gradient field.

โœ… Correct! My=2axyM_y = 2axy and Nx=12xyN_x = 12xy agree for all x,yx, y exactly when a=6a = 6.
โŒ Check the derivative. โˆ‚y(axy2)=2axy\partial_y(a x y^2) = 2axy, not axyaxy.
โŒ That is solving for xx. The test asks for My=NxM_y = N_x at every point, as expressions.
โŒ Not quite. Compute MyM_y and NxN_x and compare coefficients of xyxy.
Show solution
My=โˆ‚โˆ‚y(axy2+2x)=2aโ€‰xy,Nx=โˆ‚โˆ‚x(6x2yโˆ’1)=12โ€‰xy.M_y = \frac{\partial}{\partial y}\big(a x y^2 + 2x\big) = 2a\,xy, \qquad N_x = \frac{\partial}{\partial x}\big(6x^2 y - 1\big) = 12\,xy.

Both are multiples of xyxy; they agree for every (x,y)(x, y) only when the coefficients agree: 2a=122a = 12, so a=6a = 6. The components are polynomials, so Fโƒ—\vec F is defined on the whole plane and the converse applies.

Equality at x=0x = 0 (or y=0y = 0) holds for every aa, but that is not the question.

Problem 3 ยท Passing the Test Is Not Enough

Given: Gโƒ—=โˆ’yโ€‰ฤฑ^+xโ€‰ศท^x2+y2\vec G = \dfrac{-y\,\hat\imath + x\,\hat\jmath}{x^2+y^2}, defined for (x,y)โ‰ (0,0)(x, y) \ne (0, 0), with โˆฎCGโƒ—โ‹…drโƒ—=2ฯ€\displaystyle\oint_C \vec G\cdot d\vec r = 2\pi around the unit circle. Which statement is correct?

โœ… Correct! The converse needs Gโƒ—\vec G defined everywhere; the missing origin breaks it, and the nonzero loop settles the question.
โŒ Not quite. The converse requires the field to be defined at every point of the plane; Gโƒ—\vec G is not defined at the origin.
โŒ Recompute. Both partials equal y2โˆ’x2(x2+y2)2\dfrac{y^2 - x^2}{(x^2+y^2)^2}.
โŒ Not quite. The test alone cannot decide, but the work 2ฯ€2\pi around a closed curve can.
โŒ Not quite. Compute MyM_y and NxN_x, then use the work around the circle.
Show solution

With M=โˆ’yx2+y2M = \dfrac{-y}{x^2+y^2} and N=xx2+y2N = \dfrac{x}{x^2+y^2}:

My=โˆ’(x2+y2)+2y2(x2+y2)2=y2โˆ’x2(x2+y2)2,Nx=(x2+y2)โˆ’2x2(x2+y2)2=y2โˆ’x2(x2+y2)2.M_y = \frac{-(x^2+y^2) + 2y^2}{(x^2+y^2)^2} = \frac{y^2-x^2}{(x^2+y^2)^2}, \qquad N_x = \frac{(x^2+y^2) - 2x^2}{(x^2+y^2)^2} = \frac{y^2-x^2}{(x^2+y^2)^2}.

So Gโƒ—\vec G passes the test wherever it is defined. But a gradient field is conservative, and its work around every closed curve would be 00. The work around the unit circle is 2ฯ€2\pi, so Gโƒ—\vec G is not a gradient field. The converse does not apply because Gโƒ—\vec G is undefined at the origin.

Problem 4 ยท Two Unknown Constants

Given: Fโƒ—=(aโ€‰x2y+y3)โ€‰ฤฑ^+(x3+bโ€‰xy2)โ€‰ศท^\vec F = (a\,x^2 y + y^3)\,\hat\imath + (x^3 + b\,x y^2)\,\hat\jmath โ€” find the values of aa and bb that make Fโƒ—\vec F a gradient field.

โœ… Correct! My=ax2+3y2M_y = a x^2 + 3y^2 and Nx=3x2+by2N_x = 3x^2 + b y^2; matching the x2x^2 and y2y^2 coefficients gives a=3a = 3, b=3b = 3.
โŒ Wrong pairing. Comparing Mx=2axyM_x = 2axy with Ny=2bxyN_y = 2bxy is not the test; differentiate MM in yy and NN in xx.
โŒ Check the y2y^2 terms. โˆ‚y(y3)=3y2\partial_y(y^3) = 3y^2 must match โˆ‚x(bxy2)=by2\partial_x(b x y^2) = b y^2.
โŒ Not quite. Compute MyM_y and NxN_x and match coefficients term by term.
Show solution
My=ax2+3y2,Nx=3x2+by2.M_y = a x^2 + 3y^2, \qquad N_x = 3x^2 + b y^2.

For these to agree at every point, the coefficients of x2x^2 and of y2y^2 must agree: a=3a = 3 and b=3b = 3. The field is polynomial, so it is defined everywhere and the converse applies. (Indeed Fโƒ—=โˆ‡(x3y+xy3)\vec F = \nabla(x^3 y + x y^3).)

Solved: 0 / 4