Maple hints
To compute the line integral of the vector field F(x,v)=(x^2,
y^2) along the line segment from (1,1) to (1,2)
parametrized by g(t)=(1,1+t) for t in (0,1), execute
the following Maple commands.
- Define the vector field F:
F:=[x^2,y^2];
- Evaluate F along the curve g:
G:= subs(x=1, y=1+t, F);
- Take the dot product with g'(t):
Q:= innerprod( G, diff([1,1+t], t) );
- Integrate:
evalf(Int(Q, t=0..1));
Up: By George, it's Hamiltonian!
Bob Thurman;thurman@geom.umn.edu>
Last modified: Tue Apr 2 13:37:00 1996