LineInt - Maple Help

VectorCalculus

 LineInt
 compute the line integral of a vector field in R^n

 Calling Sequence LineInt(F, dom, inert)

Parameters

 F - vector field or a Vector-valued procedure; specify the vector field to integrate dom - unevaluated function call; specify the path of integration inert - (optional) name; specify that the integral representation is to be returned

Description

 • The LineInt(F, dom) command computes the line integral of the vector field F over the path specified by dom.  Note that variable names are not required (and cannot be supplied) here as they are in PathInt since they will be retrieved from coordinate system attribute of F.
 • The paths of integration are specified by unevaluated function calls. The possible paths of integration are Arc(obj, start, finish), Circle(cen, rad), Circle3D(cen, rad, normal), Ellipse(cen, a, b, phi), Ellipse(eqn, varx, vary), Line(p1, p2), LineSegments(p1, p2, ..., pk), and Path(v, rng, c).
 Arc(obj, start, finish)
 The first parameter of Arc, obj, is a Circle or Ellipse structure. The Arc structure defines a segment of the circle or ellipse with endpoints specified by the start and finish angles.
 To define precisely how the endpoints are determined from the given start and finish angles, it suffices to discuss only circles and ellipses centered at the origin. For a circle or ellipse centered elsewhere, the start and finish endpoints are determined as if the circle or ellipse were first translated to the origin.
 For a Circle centered at the origin, angle is measured counterclockwise from the positive x-axis. Therefore, the angle $\frac{3\mathrm{\pi }}{2}$ specifies the negative y-axis.
 To define how angle is measured for an Ellipse centered at the origin, we first define the right semimajor axis of the ellipse to be the semimajor axis in the right half-plane (the first and fourth quadrants of the plane). If the major axis of the ellipse is coincident with the y-axis, then its right semimajor axis is defined to be the one on the negative y-axis. Thus, for an ellipse centered at the origin with its major axis sitting on the line y = x, its right semimajor axis is the one inside the first quadrant.
 For an Ellipse centered at the origin, angle is measured counterclockwise from its right semimajor axis. Therefore, in the example ellipse given in the previous paragraph, the angle $\frac{\mathrm{\pi }}{4}$ specifies the positive y-axis.
 Once the terminal arm of the angle is determined, that angle specifies the point where the terminal arm (viewed as a ray) intersects the circle or ellipse. The arc is always traversed in its entirety from start to finish; therefore, it is possible to traverse the circle or ellipse for more than one full revolution or to traverse in the opposite (clockwise) direction by specifying appropriate start and finish angles.
 The parameter cen is the center of the circle and must have type 'Vector'(algebraic) and rad is the radius of the circle and must have type algebraic.  If a coordinate system attribute is specified on cen, it is interpreted in that coordinate system.
 The parameter cen is the center of the circle and must have type 'Vector'(algebraic), rad is the radius of the circle and must have type algebraic and normal is the normal to the plane in which the circle lies and must have type 'Vector'(algebraic).  If a coordinate system attribute is specified on cen, it is interpreted in that coordinate system.
 The line integral of the tangential component of the field is computed using Stokes' theorem, converting it to a surface integral. If the inert option is used, a double integral over the disk bounded by the given circle is returned. (Note that the applicability of Stokes' theorem is not verified.)
 Ellipse(cen, a, b, phi)
 The parameter cen is the center of the ellipse and must have type 'Vector'(algebraic). If a coordinate system attribute is specified on cen, it is interpreted in that coordinate system. The parameters a and b are the lengths of the semimajor and semiminor axes, respectively. The resulting ellipse is constructed via the following process: Start with an ellipse centered at the origin having the specified axes lengths, with its major axis initially on the x-axis. It is rotated through an angle of phi in the counterclockwise direction and translated to cen.
 Ellipse(eqn, varx, vary)
 The parameter eqn is either a Cartesian equation specifying the ellipse or an algebraic expression such that the equation eqn = 0 specifies the ellipse. A Cartesian equation for a general conic section is of the form $A{x}^{2}+Bxy+C{y}^{2}+Ex+Fy+G=0$, and specifies the locus of all points $⟨x,y⟩$ that satisfy the equation; this locus is a non-degenerate, real ellipse if and only if three conditions hold:

$\mathrm{\Delta }≔\mathrm{Determinant}\left(⟨⟨2A|B|E⟩,⟨B|2C|F⟩,⟨E|F|2G⟩⟩\right)\ne 0$

$C\mathrm{\Delta }<0$

$-4AC+{B}^{2}<0$

 The two variable names that appear in eqn can be specified via varx and vary. The variable specified by varx represents the x-axis, and vary the y-axis. Both varx and vary can be omitted, but only if F is in Cartesian coordinates and its coordinate names are the same as the variables that appear in the equation.
 Line(p1, p2)
 The parameters p1 and p2 must be of type 'Vector'(algebraic), and they represent the endpoints of the directed line segment from p1 to p2. If coordinate system attributes are specified on the points, they are interpreted in their respective coordinate systems.
 LineSegments(p1, p2, ..., pk)
 Similar to Line(p1, p2) above, the pi's represent the endpoints of $k-1$ line segments.  The path of integration is the collection of line segments directed from p1 to p2, p2 to p3, ..., p(k-1) to pk. If any coordinate system attributes are specified on these points, they are interpreted in their respective coordinate systems.
 Path(v, rng, c)
 The first parameter, v, is a Vector representing the components of the path, and the second parameter, rng, must have type {range, name=range}.  If no parameter name is specified in rng, it is inferred from v.
 If the optional third argument, c, is specified, it must be an equation of the form coords=sys or coordinates=sys. This is the coordinate system in which v is interpreted. Note: if this argument is supplied, any existing coordinate attribute on v is overwritten (and therefore ignored).
 • The LineInt(F, dom, inert) command returns the integral form of the line integral of the F over dom.

Examples

 > $\mathrm{with}\left(\mathrm{VectorCalculus}\right):$
 > $\mathrm{SetCoordinates}\left(\mathrm{cartesian}\left[x,y\right]\right)$
 ${{\mathrm{cartesian}}}_{{x}{,}{y}}$ (1)
 > $\mathrm{LineInt}\left(\mathrm{VectorField}\left(⟨x,y⟩\right),\mathrm{Line}\left(⟨1,2⟩,⟨3,-4⟩\right)\right)$
 ${10}$ (2)
 > $\mathrm{LineInt}\left(\mathrm{VectorField}\left(⟨x,y⟩\right),\mathrm{LineSegments}\left(⟨0,0⟩,⟨1,1⟩,⟨1,-1⟩\right)\right)$
 ${1}$ (3)
 > $\mathrm{LineInt}\left(\mathrm{VectorField}\left(⟨{x}^{2},{y}^{2}⟩\right),\mathrm{Path}\left(⟨t,{t}^{2}⟩,t=0..2\right)\right)$
 ${24}$ (4)
 > $\mathrm{LineInt}\left(\mathrm{VectorField}\left(⟨y,-x⟩\right),\mathrm{Circle}\left(⟨0,0⟩,r\right)\right)$
 ${-}{2}{}{\mathrm{\pi }}{}{{r}}^{{2}}$ (5)
 > $\mathrm{LineInt}\left(\mathrm{VectorField}\left(⟨y,-x⟩\right),\mathrm{Ellipse}\left(⟨0,0⟩,3,2,\frac{\mathrm{\pi }}{2}\right)\right)$
 ${-}{12}{}{\mathrm{\pi }}$ (6)

an ellipse can also be specified via its defining equation

 > $\mathrm{LineInt}\left(\mathrm{VectorField}\left(⟨y,-x⟩\right),\mathrm{Ellipse}\left(\frac{{x}^{2}}{4}+\frac{{y}^{2}}{9}=1\right)\right)$
 ${-}{12}{}{\mathrm{\pi }}$ (7)

it can also be specified by an expression, as in

 > $\mathrm{LineInt}\left(\mathrm{VectorField}\left(⟨y,-x⟩\right),\mathrm{Ellipse}\left(\frac{{x}^{2}}{4}+\frac{{y}^{2}}{9}-1\right)\right)$
 ${-}{12}{}{\mathrm{\pi }}$ (8)
 > $\mathrm{LineInt}\left(\mathrm{VectorField}\left(⟨y,-x⟩\right),\mathrm{Ellipse}\left(\frac{{x}^{2}}{4}+\frac{{y}^{2}}{9}-1\right),'\mathrm{inert}'\right)$
 ${{\int }}_{{0}}^{{2}{}{\mathrm{\pi }}}\left({-}{6}{}{{\mathrm{cos}}{}\left({t}\right)}^{{2}}{-}{6}{}{{\mathrm{sin}}{}\left({t}\right)}^{{2}}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{t}$ (9)
 > $\mathrm{LineInt}\left(\mathrm{VectorField}\left(⟨y,-x⟩\right),\mathrm{Arc}\left(\mathrm{Circle}\left(⟨0,0⟩,r\right),0,\mathrm{\pi }\right)\right)$
 ${-}{\mathrm{\pi }}{}{{r}}^{{2}}$ (10)

any valid ellipse structure (described above) is allowed here

 > $\mathrm{LineInt}\left(\mathrm{VectorField}\left(⟨y,-x⟩\right),\mathrm{Arc}\left(\mathrm{Ellipse}\left(\frac{{x}^{2}}{4}+\frac{{y}^{2}}{9}=1\right),0,\frac{\mathrm{\pi }}{2}\right)\right)$
 ${-}{3}{}{\mathrm{\pi }}$ (11)

a conservative vector field

 > $\mathrm{LineInt}\left(\mathrm{VectorField}\left(⟨-y,-x⟩\right),\mathrm{Ellipse}\left(⟨1,2⟩,3,2,0\right)\right)$
 ${0}$ (12)
 > $\mathrm{LineInt}\left(\mathrm{VectorField}\left(⟨-y,-x⟩\right),\mathrm{Circle}\left(⟨1,2⟩,3\right)\right)$
 ${0}$ (13)
 > $\mathrm{LineInt}\left(\mathrm{VectorField}\left(⟨-y,-x⟩\right),\mathrm{LineSegments}\left(⟨0,0⟩,⟨1,1⟩,⟨1,-1⟩,⟨0,0⟩\right)\right)$
 ${0}$ (14)
 > $\mathrm{SetCoordinates}\left('\mathrm{cartesian}'\left[x,y,z\right]\right)$
 ${{\mathrm{cartesian}}}_{{x}{,}{y}{,}{z}}$ (15)
 > $\mathrm{LineInt}\left(\mathrm{VectorField}\left(⟨y,-x,z⟩\right),\mathrm{Circle3D}\left(⟨0,0,0⟩,r,⟨1,1,1⟩\right)\right)$
 ${-}\frac{{2}{}\sqrt{{3}}{}{{r}}^{{2}}{}{\mathrm{\pi }}}{{3}}$ (16)