Student[VectorCalculus]
PlotPositionVector
plots a curve or surface defined by a position vector
Calling Sequence
Parameters
Options
Description
Examples
PlotPositionVector(pv)
PlotPositionVector(pv, r)
PlotPositionVector(pv,r, options1)
PlotPositionVector(pv, r1,r2)
PlotPositionVector(pv,r1,r2, options2)
pv
-
'Vector'(algebraic); the position Vector representing a curve or surface
r
range or name=range; the range of the parameter of the curve
r1
name=range; the range of one of the parameters of the surface
r2
options1
(optional) curve options, equation(s) of the form keyword = value, where keyword is either 'points', 'vectorfield', 'vectorfieldoptions', 'pvdiff', 'diffoptions', 'tangent', 'tangentoptions', 'normal', 'normaloptions', 'binormal', 'binormaloptions' or 'curveoptions'
options2
(optional) surface options, equation(s) of the form keyword = value, where keyword is either 'points', 'pointoptions', 'coordcurve', 'curveoptions', 'pvdiff', 'diffoptions', 'normal', 'normaloptions', 'normalfield', 'normalfieldoptions', 'normalorientation', 'vectorfield', 'vectorfieldoptions', or 'surfaceoptions'
'points'=[a] or 'points'=[[a,b]]
If the option 'points'=[a] or 'points'=[[a,b]] is given, the position Vector is evaluated at the values of the parameters and the corresponding point is plotted along the curve or surface.
For a position Vector with two parameters, the point [a,b] is interpreted as param1=a and param2= b where param1 and param2 are the parameter names given in the ranges r1 and r2 respectively.
For the point [a], a must lie in the range r and for the point [a,b], a and b must lie in the ranges r1 and r2 respectively. Otherwise, an error message is displayed.
Use [a1,a2,...,ak] or [[a1,b1],...,[ak,bk]] to specify more than one point.
Curve Options:
'vectorfield' = VField
If the option 'vectorfield' = VField is provided, the vector field VField is evaluated at equally spaced points on the curve and the resulting rooted Vectors are displayed. The number of vectors displayed can be controlled with the option 'vectornum'=posint and the evaluation points on the curve can be provided with the option 'points'.
Since the position Vector is a Cartesian Vector, the vector field will be converted to Cartesian coordinates before the evaluation.
A list of vector fields can be specified using 'vectorfield'=[VField1,..,VFieldk].
For more information on vector fields, see Student[VectorCalculus][VectorField].
'pvdiff'=[param$k]
The option 'pvdiff'=[param$k] plots the rooted Vector corresponding to the kth derivative of the components of the position Vector along the curve. The number of vectors displayed can be controlled with the option 'vectornum'=posint. The evaluation point(s) on the curve can be provided with the option 'points'.
More than one derivative can be plotted using 'pvdiff'=[[d1],[d2]...], where each sublist is a valid second argument to diff.
'tangent'= truefalse
The option 'tangent'= truefalse controls whether or not normalized tangent vectors are plotted along the curve. The number of vectors displayed can be controlled by the option 'vectornum'=posint. The default value is false. The evaluation point(s) on the curve can be provided with the option 'points'.
'normal'= truefalse
The option 'normal'= truefalse controls whether or not normalized principal normal vectors are plotted along the curve. The number of vectors displayed can be controlled by the option 'vectornum'=posint. The default value is false. The evaluation point(s) on the curve can be provided with the option 'points'.
'binormal'= truefalse
The option 'binormal'= truefalse controls whether or not normalized binormal vectors are plotted along a three dimensional curve. The number of vectors displayed can be controlled by the option 'vectornum'=posint. The default value is false. The evaluation point(s) on the curve can be provided with the option 'points'. If pv represents a two dimensional curve, an error message is displayed.
'curveoptions' =list
A list of plot options for plotting the curve. For more information on plotting options, see plot/options. The default value is [].
'pointoptions', 'vectorfieldoptions', 'tangentoptions', 'normaloptions', 'binormaloptions' =list
A list of plot options for plotting the vectorfield, tangent vectors, principal normal vectors, and binormal vectors on the curve. For more information on plotting options, see plot/options. Their default value is []. Note: Vectors are plotted using plots[arrow].
Surface Options:
'coordcurve'= [{param1, param2}=a,options1 ]
The option 'coordcurve' plots a coordinate curve on the surface obtained by fixing one of the parameters, param1 or param2 to the value a. Any of the curve options in options1 can be specified to the coordinate curve.
If the value a of the parameter is out of range, an error message is displayed.
A list of coordinate curves can be specified, using 'coordcurve'=[[...],...,[...]].
If the option 'vectorfield' = VField is provided, the vector field VField is evaluated at equally spaced points on the surface and the resulting rooted Vectors are displayed. The number of vectors displayed can be controlled with the option `vectorgrid`=[posint,posint] and the evaluation points on the surface can be provided with the option 'points'.
This option can take a list of vector fields, using 'vectorfield'=[VField1,..,VFieldk].
'pvdiff'=[{param1,param2}$k]
The option 'pvdiff'={param1,param2}$k plots the rooted Vector corresponding to the kth derivative of the components of the position Vector along the surface. The number of vectors displayed can be controlled with the option 'vectorgrid'=[posint,posint]. The evaluation point(s) on the curve can be provided with the option 'points'.
More than one derivative can be plotted using 'pvdiff'=[[param$k1],[param$k2]...].
'normal' = truefalse
The option 'normal'= truefalse controls whether or not a normal vector to the surface is plotted. By default the normal vector is evaluated at the center of the specified ranges of the parameters, however the evaluation point(s) on the surface can be provided with the option 'points'. The default value is false.
The orientation of the normal vector can be controlled with the option 'normalorientation'=truefalse.
The formula used to compute the normal vector of a position Vectorpv⁡u,v=x⁡u,v⁢i+y⁡u,v⁢j+zu,v⁢k is N=∂y,⁢z∂u,⁢v⁢i+∂z,⁢x∂u,⁢v⁢j+∂x,⁢y∂u,⁢v⁢k.
'normalfield' = truefalse
If a vector field is provided with the option `vectorfield`, the additional option 'normalfield'= truefalse controls whether or not a normal field is evaluated at equally spaced points on the surface. The resulting rooted vectors are displayed. If no vector field is provided, an error message is displayed. The default value is false.
The formula used to compute the normal field of a vector field is N·F⁢N where N·F is the dot product of the normalized normal vector N and F.
'surfaceoptions'=list
A list of plot option for plotting the surface. For more information on plotting options, see plot3d/options. The default value is [].
'pointoptions', 'diffoptions', 'normaloptions', 'vectorfieldoptions', 'normalfieldoptions'=list;
Lists of plot options for plotting points, vectors corresponding to derivatives, normal vectors, vector fields and normal fields on the surface. For more information on plotting options, see plot3d/options. Their default value is [].
The PlotPositionVector command plots a curve or surface defined by a two- or three-dimensional position Vector. For a curve, the plot can be in two- or three-dimensional space.
The first argument pv is a position Vector. The components of the position Vector represent the parametric description of the curve or surface in Cartesian coordinates. For more information about position Vectors, see PositionVector.
If the position Vector has one parameter it is assumed to represent a curve.
If the position Vector has two parameters and three components it is assumed to represent a surface. If the position Vector has two parameters and two components it is assumed to represent unevaluated curves.
If the position Vector has no indeterminates, a single Vector rooted at the origin is plotted.
Given a position Vector with one parameter representing a curve, the range r is specified in the form param = a..b or a..b. Given a position Vector with two parameters and three dimensions representing a surface, the ranges r1 and r2 are specified in the form param1=a..b and param2=c..d respectively. Given a position Vector with two parameters and two components, one parameter has to be assigned a specific value and the other must be a range of the form param = a..b.
The optional arguments options1 and options2 provide plot options and control extra structures that can be added to the plot of the curve and surface.
Use PlotVector to plot vector fields, free Vectors, and rooted Vectors.
with⁡StudentVectorCalculus:
Position Vectors
pv1≔PositionVector⁡1,2,3,cartesianx,y,z
PlotPositionVector⁡pv1
Specify the range of the parameter.
R1≔PositionVector⁡p,p2,polarr,t
R1≔p⁢cos⁡p2p⁢sin⁡p2
PlotPositionVector⁡R1,p=1..2
R2≔PositionVector⁡v,v,polarr,θ
R2≔v⁢cos⁡vv⁢sin⁡v
PlotPositionVector⁡R2,0..3⁢π
Display tangent vectors on the curve.
PlotPositionVector⁡R2,v=0..3⁢π,tangent=true
PlotPositionVector⁡R2,v=0..3⁢π,tangent=true,pvdiff=v
Evaluate a vector field on the curve.
VF1≔VectorField⁡−x,−y,cartesianx,y
PlotPositionVector⁡R2,v=0..3⁢π,vectorfield=VF1
Display the tangent, principal normal and binormal vectors on a curve.
R3≔PositionVector⁡1,π2+arctan⁡12⁢t,t,spherical
R3≔2⁢cos⁡tt2+42⁢sin⁡tt2+4−tt2+4
PlotPositionVector⁡R3,t=0..4⁢π
PlotPositionVector⁡R3,t=0..4⁢π,tangent=true,normal=true,binormal=true
Evaluate a vector field uniformly on the curve.
VF2≔VectorField⁡r,0,0,sphericalr,p,t
PlotPositionVector⁡R3,t=0..4⁢π,vectorfield=VF2,vectornum=6
R4≔PositionVector⁡1,p,p,cylindricalr,p,s
R4≔cos⁡psin⁡pp
Specify points on the curve for plotting other structures.
PlotPositionVector⁡R4,p=0..4⁢π,tangent=true,points=π
PlotPositionVector⁡R4,p=0..4⁢π,tangent=true,normal=true,binormal=true,points=π,π2
Two dimensional position Vectors with two parameters.
pv2≔PositionVector⁡p,q,polarr,t
pv2≔p⁢cos⁡qp⁢sin⁡q
Provide numeric value of one of the parameters.
PlotPositionVector⁡pv2,p=1..2,q=π4
PlotPositionVector⁡pv2,p=2,q=0..π
Surfaces
S1≔PositionVector⁡t,vsqrt⁡1+t2,v⁢tsqrt⁡1+t2,cartesianx,y,z
S1≔tvt2+1v⁢tt2+1
PlotPositionVector⁡S1,t=−3..3,v=−3..3
Specify points on the surface.
PlotPositionVector⁡S1,t=−3..3,v=−3..3,points=0,0,1,1,2,2,3,3
Visualize tangent vectors along coordinate curves.
PlotPositionVector⁡S1,t=−3..3,v=−3..3,pvdiff=t,v
PlotPositionVector⁡S1,t=−3..3,v=−3..3,vectorfield=VectorField⁡x,y,0,cartesianx,y,z,vectorgrid=3,3
Visualize multiple coordinate curves and different vectors along those curves
PlotPositionVector⁡PositionVector⁡x,y,x2⁢y2,x=−1..1,y=−1..1,coordcurve=x=12,tangent=true,normal=true,vectornum=2,tangentoptions=color=red,x=−1,tangent=true,vectornum=2,scaling=constrained,axes=frame
Visualize the normal field of a given vector field.
PlotPositionVector⁡S1,t=−3..3,v=−3..3,vectorfield=VectorField⁡x,y,0,cartesianx,y,z,normalfield=true
S2≔PositionVector⁡1,p,q,sphericalr,φ,θ
S2≔sin⁡p⁢cos⁡qsin⁡q⁢sin⁡pcos⁡p
Evaluate a vector field uniformly on the surface.
PlotPositionVector⁡S2,p=0..π2,q=0..2⁢π,vectorfield=VectorField⁡r,0,0,sphericalr,φ,θ,surfaceoptions=color=red
Display a coordinate curve on a surface.
PlotPositionVector⁡S2,p=0..π2,q=0..2⁢π,coordcurve=p=π4,curveoptions=color=green,thickness=5,vectorfield=VectorField⁡r,0,0,sphericalr,φ,θ,surfaceoptions=scaling=constrained
See Also
Student[VectorCalculus][Binormal]
Student[VectorCalculus][diff]
Student[VectorCalculus][evalVF]
Student[VectorCalculus][PlotVector]
Student[VectorCalculus][PositionVector]
Student[VectorCalculus][PrincipalNormal]
Student[VectorCalculus][RootedVector]
Student[VectorCalculus][TangentVector]
Download Help Document