Multivariable-Calculus · Unit 19 · Video 3 · Interactive Practice
Finding a Potential Function by Partial Antiderivatives
IKey Formulas
Step
For F=⟨4x2+8xy,3y2+4x2⟩
Why
Integrate fx=M in x
f=34x3+4x2y+g(y)
The "constant" may depend on y
Differentiate in y, match fy=N
4x2+g′(y)=3y2+4x2⇒g′(y)=3y2
g′ must contain no x
Integrate g′
g=y3+c, so f=34x3+4x2y+y3+c
Now c is a true constant
Key Insight: integrate one equation, then differentiate and match the other — never integrate both and merge. If an x survives in g′(y), the field is not a gradient field (or there is a slip).
IIThe Missing Piece Is a Function of y Alone
The gradient of the partial answer misses F by exactly ⟨0,g′(y)⟩, a gap that depends on y only.
Step 1 — Integrate fx=4x2+8xy in x
f=34x3+4x2y+g(y)
Step 2 — Differentiate in y and match fy=N
fy=4x2+g′(y)=3y2+4x2
g′(y)=3y2(no x)
Step 3 — Integrate g′
g=y3+c,f=34x3+4x2y+y3+c
Step 1 — Integrate fy=3y2+4x2 in y
f=y3+4x2y+h(x)
Step 2 — Differentiate in x and match fx=M
fx=8xy+h′(x)=4x2+8xy
h′(x)=4x2(no y)
Step 3 — Integrate h′
h=34x3+c,f=y3+4x2y+34x3+c
IIIThe Method Checks Itself
With 8xy replaced by Axy, the leftover g′(y)=3y2+(4−2A)x2 is free of x only when A=8.
💡 A legitimate g′(y) is the same all along each horizontal line, so every row of arrows must be uniform.
IVQuiz Questions
Problem 1 · The Right Integration Constant
Given:F=⟨2xy+3,x2+4y⟩. After integrating fx=2xy+3 with respect to x, which expression is correct?
✅ Correct! Anything with zero x-derivative can be added, so the constant is a function g(y).
❌ Too narrow. A term such as 2y2 also has zero partial in x; the constant must be allowed to depend on y.
❌ Wrong variable. A function of x has a nonzero x-derivative in general; the unknown depends on y.
❌ Not quite. Integrate in x, treating y as constant.
Show solution
Treat y as a constant: ∫(2xy+3)dx=x2y+3x, plus anything whose x-derivative is zero, i.e. a function of y:
f=x2y+3x+g(y).
Problem 2 · Match the Other Equation
Continue Problem 1: using fy=N=x2+4y, findg′(y).
✅ Correct!fy=x2+g′(y) must equal x2+4y, so g′=4y — no x, as it must be. Then f=x2y+3x+2y2+c.
❌ Subtract what is already there.fy of x2y+3x is x2, which cancels against N's x2.
❌ An x survived — that signals an algebra slip here, since the field does pass the test.
❌ That is g, not g′.
❌ Not quite. Differentiate x2y+3x+g(y) in y and match N.
Show solution
fy=∂y∂(x2y+3x+g(y))=x2+g′(y).
Matching fy=x2+4y: the x2 terms cancel, leaving g′(y)=4y, so g=2y2+c and f=x2y+3x+2y2+c.
Problem 3 · A Trigonometric Potential
Given:F=⟨ycos(xy)+2x,xcos(xy)+3y2⟩, a gradient field. Find a potential f.
✅ Correct!fx=ycos(xy)+2x and fy=xcos(xy)+3y2.
❌ Counted sin(xy) twice. That is the risk of integrating both equations and merging.
❌ Check the antiderivative.∂xcos(xy)=−ysin(xy); you need sin(xy).
❌ Missing g(y). Matching fy leaves g′(y)=3y2.
❌ Not quite. Integrate in x, then match fy.
Show solution
Integrate fx in x: f=sin(xy)+x2+g(y).
Differentiate in y: fy=xcos(xy)+g′(y). Matching xcos(xy)+3y2 gives g′(y)=3y2, so g=y3+c:
f=sin(xy)+x2+y3+c.
Problem 4 · When an x Survives
Given:F=⟨3x2y+ay2,x3+4xy⟩. Integrating fx in x gives f=x3y+axy2+g(y). Which value of a leaves g′(y) free of x, and what is g′(y) then?
✅ Correct!g′(y)=(4−2a)xy is free of x only for a=2, and then g′=0; the test agrees: My=3x2+2ay, Nx=3x2+4y.
❌ Check the derivative.∂y(axy2)=2axy, so matching 4xy needs 2a=4.
❌ That g′ still contains x. With a=2 the 4xy terms cancel.
❌ Not quite. Differentiate f in y and match x3+4xy.
Show solution
fy=x3+2axy+g′(y)=x3+4xy⇒g′(y)=(4−2a)xy.
A function of y alone cannot contain x, so 4−2a=0: a=2, and then g′(y)=0, g=c, f=x3y+2xy2+c.
The x-derivative of the leftover, (4−2a)y, is exactly Nx−My=(3x2+4y)−(3x2+2ay).