Hints
Although you do not need Maple to solve the line integral of
grad(P) over the path [6+t,0], here is one method to get
Maple to do the necessary computations:
- Compute the vector field:
F:= grad(1/sqrt(x^2+y^2), [x,y]); # F=grad(P)
- To compute F(g(t)), you need to replace x and
y with their parametrizations:
G:= subs(x=6+t, y=0, eval(F)); # compute F(g(t))
- To compute the inner product of F(g(t)) and g'(t),
we use Maple's
innerprod
command:
Q:= innerprod( G, diff([6+t,0], t) ); # F(g(t)).g'(t)
- The line integral is then
evalf(Int(Q, t=0..1)); # integral of F(g(t)).g'(t)
Previous: The Definition of Work
Frederick J. Wicklin <fjw@geom.umn.edu>
Last modified: Tue Mar 7 12:54:09 1995