Line Integrals for Work, Circulation, and Plane Flux
Total Page:16
File Type:pdf, Size:1020Kb
Classroom Tips and Techniques: Line Integrals for Work, Circulation, and Plane Flux Robert J. Lopez Emeritus Professor of Mathematics and Maple Fellow © Maplesoft, a division of Waterloo Maple Inc., 2005 Introduction In our last column, we discussed how to address the iterated integral in Maple 9.5. This month, we will continue discussing integrals that arise in the subject area of vector calculus. In particular, we will discuss line integrals of the tangential and normal components of a vector field. The line integral of the tangential component of a force field produces the work done by the force on a particle of unit mass, as the mass moves along a specified curve. For the tangential component of the velocity field of a planar fluid flow, the line integral around a closed curve - typically a circle - is the circulation of the flow. The line integral of the normal component of a vector field is the flux of the field through the curve, and is a measure of the net "flow" of the field in the direction of the normal. If F = i + j represents the vector field in Cartesian coordinates, and is a planar curve parametrized by the equations then work (or circulation), the line integral of the tangential component of F along , is given by + or Flux, the line integral of the normal component of F along , is given by or (The mnemonic I always provided my students for the flux integral in the plane is that the form starts and ends with the same letters as the word "flux" and has a minus sign in the middle, thus determining where the letters and must go.) All of these physically meaningful quantities can be computed with the LineInt command in Maple's VectorCalculus package. Thus, the LineInt command computes line integral of the tangential component of the field F = i + j To compute the normal component (i.e., flux) of this field through a curve , apply the LineInt command to the field F* = i + j (Incidentally, the mnemonic I always provided my students for the flux integral in the plane is that the form starts and ends with the same letters as the word "flux" and has a minus sign in the middle, thus determining where the letters and must go.) In addition to the LineInt command, Maple provides a PathInt command that we will discuss at the end of this column. The LineInt Command along an Arbitrary Curve If F is a vector field, then along a curve specified parametrically in Cartesian coordinates, the line integral of the tangential component of F is given by the syntax LineInt(F, Path(< >, t = a .. b)) where LineInt(F, Path(< , ... >, t = a .. b)) is the obvious generalization to higher dimensions. Initialization restart; interface(warnlevel=0): with(VectorCalculus): with(Student[Precalculus]): with(plots): BasisFormat(false): Example 1 The work done by the vector field F = i + j where f := x*y; g := x+y; so that F := VectorField(<f,g>, cartesian[x,y]); as it acts on a unit mass moving along the curve X := 1+t-t^2; Y := 3*t^2-5*t-7; t0 := 0; tf := 1; is given by the line integral Work := LineInt(F, Path(<X,Y>, t=t0..tf), inert); whose value can be obtained from either value(Work); 421 30 or LineInt(F, Path(<X,Y>, t=t0..tf)); 421 30 The positive value of this line integral indicates that the field does work on the particle, that is, the field causes the particle to move along the curve . Line Integrals along Some Special Curves Special cases in which the curve can be specified directly include 1) LineInt(F, Line(< >, < >)) 2) LineInt(F, LineSegments(< >, ..., < >)) 3) LineInt(F, Circle(< >, r)) 4) LineInt(F, Circle3D(< >, , < >)) 5) LineInt(F, Ellipse( ( )) 6) LineInt(F, Arc(Circle(< >, r), )) 7) LineInt(F, Arc(Ellipse( ( ), , )) In (1), the curve consists of the line segment connecting the points and . This form generalizes to the -dimensional case in the obvious way. In (2), the curve consists of the polygonal line sequentially connecting the points , with an obvious generalization to the -dimensional case. For a closed polygonal path, the first point should be repeated as the last point. In (3), the curve is a circle with center and radius . In (4), the curve , a circle in , lies in the plane containing ( ), the center of the circle, and having the vector u i + v j + w k as its normal. The radius of the circle is . In (5), the curve is the ellipse determined by the equation . (To enter the equation of the ellipse, type it as (x-h)^2 / a^2 + (y-k)^2 / b^2 - 1.) In (6) and (7), the curve is an arc of the respective circle or ellipse. The parameters and are the angles subtending the required arc. The angles are measured in radians from the positive - axis. The LineInt command in any of its forms computes line integral of the tangential component of the field F = i + j To compute the normal component (i.e., flux) of this field through a curve , apply the LineInt command to the field F* = i + j Example 2 The work done by the field F; on a unit mass moving along the line segment connecting the points P1 := <1,2>; P2 := <3,7>; is given by the line integral Work := LineInt(F, :-Line(P1,P2),inert); whose value can be obtained either by value(Work); 313 6 or LineInt(F, :-Line(P1,P2)); 313 6 (In each call to the LineInt command containing the parameter Line, we have used the syntax :-Line. This forces Maple to use the Line parameter from the VectorCalculus package, and not the Line command from the Precalculus subpackage of the Student package. This subpackage was loaded in anticipation of its use below, for obtaining the equation of the line connecting the given points.) To obtain this result by first principles, parametrize the line segment as P := P1+t*(P2-P1): <x,y> = P; and write as Int(eval(convert(F,Vector).diff(P,t), [x=P[1],y=P[2]]), t=0. .1); which compares favorably with Work; The equation line := Line(P1,P2)[1]; is an alternate representation of the line, so the required line integral becomes that is, work := Int(eval(convert(F,Vector).<1,diff(rhs(line),x)>, line), x=P1[1]..P2[1]): work = value(work); Example 3 The work done by the field F; on a unit mass moving counterclockwise along the boundary of the triangle whose vertices are P1 := <1,3>; P2 := <4,-7>; P3 := <8, 5>; is given by the line integral Work := LineInt(F, LineSegments(P1,P2,P3,P1),inert); whose value can be obtained either by value(Work); or LineInt(F, LineSegments(P1,P2,P3,P1)); The negative value of the work done by the field on the particle indicates that energy must be put into the system for the particle to move along the curve . Thus, an external agent must push the particle against the resistive force exerted by the field. An equivalent solution from first principles would require the tedious repetition of the techniques demonstrated in Example 2. Example 4 The work done by the field F; on a unit mass moving counterclockwise around a circle with center and radius 5, is given by the line integral Work := LineInt(F, Circle(<2,3>,5),inert): Work = value(Work); To compute the flux of this field in the direction of the outward normal along this circle, form the vector field F_flux := VectorField(<-g,f>, cartesian[x,y]); and write the line integral flux := LineInt(F_flux, Circle(<2,3>,5), inert); whose value is value(flux); The positive value of the flux indicates that the net flow of the field is along the normal. But in what direction does the normal Maple used point? Since the circle is a closed curve, we expect the normal to be the outward normal. Traversing the circle in the counterclockwise direction with the interior of the circle to the left means the exterior of the circle, and hence the outward normal, is to the right. Parametrizing the circle with X := 2 + 5*cos(t); Y := 3 + 5*sin(t); means the circle is traversed counterclockwise as increases. Moreover, a unit vector tangent to the circle and pointing in the direction of motion is given by T = so that a unit vector orthogonal and to the right of T is N = Thus, we can write F . N = . = = . = F* . T so that the line integral FLUX := Int(eval(convert(F_flux,Vector).diff(<X,Y>,t), [x=X,y= Y]), t=0..2*Pi): FLUX = value(FLUX); is the flux integral in which the normal is clearly outward. Since it the same line integral as Maple's, we see that Maple did indeed choose the outward normal. Example 5 The work done by the field F; on a unit mass moving counterclockwise around the ellipse E := (x-2)^2/9 + (y-3)^2/16 - 1: E = 0; is given by the line integral Work := LineInt(F, Ellipse(E),inert): Work = value(Work); To compute the flux of this field in the direction of the outward normal along this ellipse, form the vector field F_flux := VectorField(<-g,f>, cartesian[x,y]); and write the line integral flux := LineInt(F_flux, Ellipse(E), inert); whose value is value(flux); The positive value of the flux indicates that the net flow of the field is along the normal. But in what direction does the normal Maple used point? Since the ellipse is a closed curve, we expect the normal to be the outward normal.