I am trying to evaluate the line integral (2xy)dx++dy where C is the ellipse +=1 from (5,0) to (0,4).(x,y) = ∇f . [ (2xy) + ] where ∇f = + = 2xy, = +
∫
c
2
x
2
y
2
x
25
2
y
16
F
i
+
2
x
2
y
j
∂f
∂x
i
∂f
∂y
j
∂f
∂x
∂f
∂y
2
x
2
y
Solving for the potential and then plugging in the end points gives
64
3
In[]:=
DSolve[{Grad[f[x,y],{x,y}]=={2xy,+}},f[x,y],{x,y}]
2
x
2
y
Out[]=
f[x,y]y++
2
x
3
y
3
1
f[x_,y_]:=y+f[0,4]-f[5,0]
2
x
3
y
3
64
3
Function LineIntegrate[] using ImplicitRegion[] gives error
In[]:=
LineIntegrate{2xy,+},{x,y}∈ImplicitRegion+==1,{{5<=x<=0},{0<=y<=4}}
2
x
2
y
2
x
25
2
y
16
Out[]=
LineIntegrate{2xy,+},{x,y}∈ImplicitRegion+1,{{5≤x≤0},{0≤y≤4}}
2
x
2
y
2
x
25
2
y
16
Function LineIntegrate[] using ILine[] gives correct answer (Path Independent)
In[]:=
LineIntegrate[{2xy,+},{x,y}∈Line[{{5,0},{0,4}}]]
2
x
2
y
Out[]=
64
3
