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

Finding a Potential Function by Line Integrals

IKey Formulas

FormulaNameWhat it says
f(x1,y1)=โˆซCFโƒ—โ‹…drโƒ—+f(0,0)f(x_1, y_1) = \displaystyle\int_C \vec F\cdot d\vec r + f(0, 0)Fundamental theorem, backwardsCC runs from the origin to (x1,y1)(x_1, y_1); any such path
C1C_1: y=0y = 0, dy=0dy = 0 โ€…โ€Šโ‡’โ€…โ€Š\;\Rightarrow\; โˆซ0x1M(x,0)โ€‰dx\displaystyle\int_0^{x_1} M(x, 0)\,dxAlong the xx-axisOnly Mโ€‰dxM\,dx survives
C2C_2: x=x1x = x_1, dx=0dx = 0 โ€…โ€Šโ‡’โ€…โ€Š\;\Rightarrow\; โˆซ0y1N(x1,y)โ€‰dy\displaystyle\int_0^{y_1} N(x_1, y)\,dyVertical pieceOnly Nโ€‰dyN\,dy survives
f=43x3+y3+4x2y+cf = \tfrac43 x^3 + y^3 + 4x^2 y + cPotential of โŸจ4x2+8xy,ย 3y2+4x2โŸฉ\langle 4x^2 + 8xy,\ 3y^2 + 4x^2\rangleCheck: fx=Mf_x = M, fy=Nf_y = N

Key Insight: f(0,0)f(0, 0) is a free constant: โˆ‡(f+c)=โˆ‡f\nabla(f + c) = \nabla f, so the line integral determines the potential up to +โ€‰c+\,c.

IIAny Path from the Origin Gives the Same Value

Each route to (x1,y1)(x_1, y_1) splits the work differently, but the total is always f(x1,y1)f(x_1, y_1).

IIIA Different Starting Point Shifts Every Value Equally

Starting from a base point BB instead of the origin changes ff by the constant โˆ’f(B)-f(B), the same at every point.

IVQuiz Questions

Problem 1 ยท Two Straight Pieces

Given: Fโƒ—=โŸจ2x+y,ย x+2yโŸฉ\vec F = \langle 2x + y,\ x + 2y\rangle (it passes the test: My=1=NxM_y = 1 = N_x). Integrate along the xx-axis to (x1,0)(x_1, 0), then vertically to (x1,y1)(x_1, y_1), with f(0,0)=0f(0,0) = 0. Find f(x,y)f(x, y).

โœ… Correct! x12x_1^2 from C1C_1 plus x1y1+y12x_1 y_1 + y_1^2 from C2C_2.
โŒ Counted xyxy twice. On C1C_1, y=0y = 0, so the yy in M=2x+yM = 2x + y contributes nothing there.
โŒ Lost a term. On C2C_2, xx is the fixed number x1x_1, not 00: N(x1,y)=x1+2yN(x_1, y) = x_1 + 2y.
โŒ Not quite. Do each piece separately; check by taking the gradient.
Show solution

On C1C_1: y=0y = 0, dy=0dy = 0, so the integral is โˆซ0x12xโ€‰dx=x12\displaystyle\int_0^{x_1} 2x\,dx = x_1^2.

On C2C_2: x=x1x = x_1, dx=0dx = 0, so the integral is โˆซ0y1(x1+2y)โ€‰dy=x1y1+y12\displaystyle\int_0^{y_1} (x_1 + 2y)\,dy = x_1 y_1 + y_1^2.

Adding: f(x1,y1)=x12+x1y1+y12f(x_1, y_1) = x_1^2 + x_1 y_1 + y_1^2, so f=x2+xy+y2f = x^2 + xy + y^2. Check: fx=2x+y=Mf_x = 2x + y = M, fy=x+2y=Nf_y = x + 2y = N.

Problem 2 ยท What Survives on the x-Axis

Given: Fโƒ—=โŸจ3x2y+2,ย x3+4yโŸฉ\vec F = \langle 3x^2 y + 2,\ x^3 + 4y\rangle. On the piece C1C_1 along the xx-axis from (0,0)(0,0) to (x1,0)(x_1, 0), find โˆซC1Mโ€‰dx+Nโ€‰dy\displaystyle\int_{C_1} M\,dx + N\,dy.

โœ… Correct! With y=0y = 0, M(x,0)=2M(x, 0) = 2 and dy=0dy = 0, so the integral is โˆซ0x12โ€‰dx=2x1\int_0^{x_1} 2\,dx = 2x_1.
โŒ On C1C_1, yy is 00. The end point's y1y_1 does not appear until the vertical piece.
โŒ The Nโ€‰dyN\,dy term vanishes on C1C_1, because dy=0dy = 0 along the xx-axis.
โŒ Not quite. Set y=0y = 0 and dy=0dy = 0 before integrating.
Show solution

On C1C_1, y=0y = 0 and dy=0dy = 0. The Nโ€‰dyN\,dy term disappears, and M(x,0)=3x2โ‹…0+2=2M(x, 0) = 3x^2\cdot 0 + 2 = 2:

โˆซC1Mโ€‰dx+Nโ€‰dy=โˆซ0x12โ€‰dx=2x1.\int_{C_1} M\,dx + N\,dy = \int_0^{x_1} 2\,dx = 2x_1.

(The vertical piece then gives โˆซ0y1(x13+4y)โ€‰dy=x13y1+2y12\int_0^{y_1}(x_1^3 + 4y)\,dy = x_1^3 y_1 + 2y_1^2, so f=x3y+2x+2y2f = x^3 y + 2x + 2y^2.)

Problem 3 ยท A Potential with an Exponential

Given: Fโƒ—=โŸจyโ€‰exy,ย xโ€‰exy+2yโŸฉ\vec F = \langle y\,e^{xy},\ x\,e^{xy} + 2y\rangle, which passes the test. Using the xx-axis then the vertical piece, with f(0,0)=0f(0,0) = 0, find f(x1,y1)f(x_1, y_1).

โœ… Correct! C1C_1 gives 00; C2C_2 gives [ex1y+y2]0y1=ex1y1+y12โˆ’1\big[e^{x_1 y} + y^2\big]_0^{y_1} = e^{x_1 y_1} + y_1^2 - 1.
โŒ Check the lower limit. At y=0y = 0, ex1โ‹…0=1e^{x_1\cdot 0} = 1, which must be subtracted when f(0,0)=0f(0,0) = 0.
โŒ That is the integrand, not its antiderivative. โˆ‚yโ€‰ex1y=x1ex1y\partial_y\, e^{x_1 y} = x_1 e^{x_1 y}.
โŒ Not quite. On C1C_1, M(x,0)=0M(x, 0) = 0; integrate N(x1,y)N(x_1, y) in yy.
Show solution

On C1C_1: y=0y = 0, so M(x,0)=0โ‹…e0=0M(x, 0) = 0\cdot e^{0} = 0 and the integral is 00.

On C2C_2: x=x1x = x_1, so

โˆซ0y1(x1ex1y+2y)โ€‰dy=[ex1y+y2]0y1=ex1y1+y12โˆ’1.\int_0^{y_1}\big(x_1 e^{x_1 y} + 2y\big)\,dy = \Big[e^{x_1 y} + y^2\Big]_0^{y_1} = e^{x_1 y_1} + y_1^2 - 1.

Check: โˆ‡(exy+y2โˆ’1)=โŸจyexy,ย xexy+2yโŸฉ\nabla(e^{xy} + y^2 - 1) = \langle y e^{xy},\ x e^{xy} + 2y\rangle. (Dropping the โˆ’1-1 gives another valid potential, but not the one with f(0,0)=0f(0,0) = 0.)

Problem 4 ยท Choosing the Constant

Given: Fโƒ—=โŸจ2x+y,ย x+2yโŸฉ\vec F = \langle 2x + y,\ x + 2y\rangle from Problem 1. Find the potential ff with f(1,1)=5f(1, 1) = 5.

โœ… Correct! f(1,1)=3+c=5f(1,1) = 3 + c = 5 gives c=2c = 2.
โŒ Not quite. The constant is f(1,1)f(1,1) minus the value of x2+xy+y2x^2 + xy + y^2 there, which is 33.
โŒ Check the sign. 3+c=53 + c = 5 means c=+2c = +2.
โŒ Not quite. Potentials differ only by an added constant; scaling ff changes its gradient.
Show solution

Every potential of Fโƒ—\vec F is x2+xy+y2+cx^2 + xy + y^2 + c. At (1,1)(1,1) this is 1+1+1+c=3+c1 + 1 + 1 + c = 3 + c. Setting 3+c=53 + c = 5 gives c=2c = 2:

f=x2+xy+y2+2.f = x^2 + xy + y^2 + 2.

Multiplying by a constant is not allowed: โˆ‡(53(x2+xy+y2))=53Fโƒ—โ‰ Fโƒ—\nabla\big(\tfrac53(x^2+xy+y^2)\big) = \tfrac53\vec F \ne \vec F.

Solved: 0 / 4