Chapter 9: Vector Calculus
Section 9.5: Line Integrals
Example 9.5.10
Calculate the work that the field F=x y i+x+y j does on a unit positive charge as the charge moves along a line from 1,2 to 3,5.
Solution
Mathematical Solution
The line from 1,2 to 3,5 is given parametrically by the position vector
R=xy = 12+t (35−12) = 1+2 t2+3 t
The work done by the field F is given by the line integral
∫CF·dr
=∫abf dx+g dy
=∫01x yx=a|f(x)x=xt,y=yt⋅ddtxt+x+yx=a|f(x)x=xt,y=yt⋅ddtyt dt
=∫011+2 t2+3 t⋅2+1+2 t+2+3 t⋅3 dt
=∫0112⁢t2+29⁢t+13 dt
=63/2
Maple Solution - Interactive
Initialize
Tools≻Load Package: Student Vector Calculus
Loading Student:-VectorCalculus
Tools≻Tasks≻Browse: Calculus - Vector≻ Vector Algebra and Settings≻ Display Format for Vectors
Press the Access Settings button and select "Display as Column Vector"
Display Format for Vectors
Define the vector field F
Enter the free vector whose components are those of F. Context Panel: Evaluate and Display Inline
Context Panel: Student Vector Calculus≻Conversions≻To Vector Field
Context Panel: Assign to a Name≻F
x y,x+y = x⁢yx+y→to Vector Fieldx⁢yx+y→assign to a nameF
Obtain the line integral via the Context Panel
Write the name F and press the Enter key.
Context Panel: Student Vector Calculus≻Line Integral (Complete the dialog as per Figure 9.5.10(a).)
Context Panel: Simplify≻Simplify
Context Panel: Evaluate Integral
F
→line integral
∫012⁢1+2⁢t⁢2+3⁢t+9+15⁢tⅆt
= simplify
∫0112⁢t2+29⁢t+13ⅆt
=
632
Figure 9.5.10(a) Line Integral Domain dialog
In the "Line Integral Domain" dialog, select "Segment or Polygonal Line" and enter the nodes of the line (or line segment) as a sequence of vectors. At the bottom of the dialog, select "integral" as the return option. The alternatives are "value" or "plot". The graph returned by the "plot" option can be seen in the next section (Maple Solution - Coded).
It is also possible to obtain a solution from first principles.
Define the path parametrically, as a position vector
Context Panel: Assign Name
P=1,2,3,5→assign
R=P1+t P2−P1→assign
Obtain T, a unit tangent vector along the path
Write the name R. Context Panel: Evaluate and Display Inline
Context Panel: Student Vector Calculus≻Frenet Formalism≻Tangent Vector≻t
Context Panel: Student Vector Calculus≻Normalize≻Euclidean
Context Panel: Assign to a Name≻T
R = →tangent vector →Euclidean-normalize →assign to a nameT
Obtain ρ=dsdt=R.
Calculus palette: Differentiation operator
Context Panel: Evaluate and Display Inline
Context Panel: Assign to a Name≻rho
ⅆⅆ t R = 13→assign to a nameρ
Obtain the integrand F·T ds
Common Symbols palette: Dot product operator Press the Enter key.
Context Panel: Constructions≻Definite Integral≻t (Complete dialog as per figure at the right.)
F·T ρ
213⁢1+2⁢t⁢2+3⁢t⁢13+313⁢3+5⁢t⁢13⁢13
12⁢t2+29⁢t+13
→integrate w.r.t. t
Maple Solution - Coded
Install the Student VectorCalculus package.
Set the display format for vectors via the BasisFormat command.
withStudent:-VectorCalculus:BasisFormatfalse:
Define F via the VectorField command.
F≔VectorFieldx y,x+y:
Apply the LineInt command
LineIntF,Line1,2,3,5,output=integral=LineIntF,Line1,2,3,5
∫012⁢1+2⁢t⁢2+3⁢t+9+15⁢tⅆt=632
Use the LineInt command to generate a graph of F and the path of integration
LineIntF,Line1,2,3,5,output=plot
Define the path parametrically, as the position vector R
Let L be the list of nodes defining the line of integration.
Define R as the position vector parametrizing the line of integration with t∈0,1.
L≔1,2,3,5:R≔L1+t L2−L1
Apply the Norm command to the result obtained with the diff command.
ρ≔NormdiffR,t
13
Use the TangentVector command with the option to return a unit vector.
T≔TangentVectorR,t,normalized
Form and evaluate the requisite line integral
Compute F·T with the DotProduct command, then use the Int and int commands.
IntDotProductF,T⋅ρ,t=0..1=intDotProductF,T⋅ρ,t=0..1
∫01213⁢1+2⁢t⁢2+3⁢t⁢13+313⁢3+5⁢t⁢13⁢13ⅆt=632
<< Previous Example Section 9.5 Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
Download Help Document