- To use linear algebra functions, execute the Maple command with
`with(linalg):`

- In Maple a vector is enclosed in square brackets, for example:
`f:=[y,-x^3+x+(3/2)*x^2+y-x^2*y];`

- If
*g(t)=[x(t),y(t)]*, then*f(g(t))*can be written in Maple as`G:=subs(x=x(t),y=y(t),f);`

(Note: substitute your parametrization of the circle for x(t) and y(t) in the above.)

- Make sure
*n*is a**unit**vector. (This calulation is easily done by hand.) - If
*G*and*n*are both vectors then Maple will compute their dot product by`Q:= innerprod(G,n);`

- The integral can then be written as

`int( stuff_to_integrate, t=0..2*Pi);`

Make sure that**all**of the pieces of the line integral are accounted for!

Frederick J. Wicklin <fjw@geom.umn.edu> Brian Burt<burt@geom.umn.edu> Last modified: Wed Mar 15 13:21:56 1995