Physics[Vectors][ParametrizeCurve] - parametrize, in terms of a single parameter, curves given in vectorial or algebraic form, or passed as a set of algebraic equations
Physics[Vectors][ParametrizeSurface] - parametrize, in terms of two parameters, surfaces given in vectorial or algebraic form, or passed as a set of algebraic equations
Physics[Vectors][ParametrizeVolume] - parametrize, in terms of three parameters, volumes given in vectorial or algebraic form, or passed as a set of algebraic equations
Calling Sequence
ParametrizeCurve(R)
ParametrizeCurve(R, basis = ..., parameters = ..., output = ...)
ParametrizeSurface(R)
ParametrizeSurface(R, basis = ..., parameters = ..., output = ...)
ParametrizeVolume(R)
ParametrizeVolume(R, basis = ..., parameters = ..., output = ...)
Parameters
R
-
a region of 3D space, represented either in vectorial form, or as an equation or algebraic expression (understood to be equal to 0) relating the coordinates, or as a set or list of them
basis = ...
optional, default value is derived from R; the right-hand side is one of the number identifiers {1, 2, 3}, or one of the related keywords cartesian, cylindrical, or spherical, so that the returned parametric equations are expressed solved for the coordinates of the indicated basis, or when output = vector the vectorial parametric equation is written in that basis.
parameters = ...
synonym parameter; optional, default value is derived from R in different ways; the right-hand side can be a set or list with 1, 2 or 3 parameters of type name
output = ...
optional, default value is standard, the parametrization is expressed as an ordered list of equations where the left-hand side are the coordinates (cartesian, cylindrical or spherical) as functions of the parameters, and the right-hand sides are algebraic expression involving only the parameters. An alternative value is vector, so that the parametric equations are transformed into a vector function and returned as such
Description
ParametrizeCurve, ParametrizeSurface and ParametrizeVolume receive R representing a region of 3D space, either in vectorial form (see notation), or as an algebraic expression, or as a set or list of algebraic equations relating the coordinates, and return a sequence of two objects C, T, where C is an ordered list of equations solved for one of the coordinate systems, cartesian, cylindrical or spherical, and T is a list with the parameters used, or the single parameter itself in the case of ParametrizeCurve.
The returned list of equations C has the coordinates on the left-hand sides expressed as functions of the parameters and the right-hand sides as algebraic expressions involving only the parameters. The ordering of the parameters in the functions on the left-hand sides of C is the same ordering of the parameters in T. NOTE: ParametrizeSurface and ParametrizeVolume are used by int to compute surface and volume integrals, in which case the ordering of the parameters in T is relevant, since the surface and volume elements of the integral involve a cross product of vectors.
You can optionally request the C in the output to be expressed in vectorial form instead of a list of parametric equations. For that purpose, pass the optional argument output = vector. This vectorial form is constructed using the right-hand sides of the parametric equations as coefficients multiplied by the unit vectors of the corresponding vector basis.
By default, the vector basis (cartesian, cylindrical or spherical), related system of coordinates and parameters used to express the output are derived from the given region R. You can optionally change all that using the corresponding optional arguments, basis and parameters.
The basis option induces a call to ChangeBasis on R. So if R is passed in vectorial form it is first rewritten in the indicated basis. Also, if output = vector, then the vector is expressed in the basis indicated, and if output = standard (default value), the list of equations returned have on the left-hand sides the coordinates of the indicated basis.
The parameters = ... option, where the right-hand side is a set or a list of names to be used to parametrize the region R, should include only one, two or three parameters, respectively for ParametrizeCurve, ParametrizeSurface and ParametrizeVolume. When the parameters are indicated as a set they are automatically ordered as a list with the canonical ordering for coordinate systems, which is x,y,z for cartesian, ρ,φ,z for cylindrical and r,θ,φ for spherical. It is possible to use coordinates of one of these three coordinate systems as parameters, in which case the geometrical relation between coordinates of the different systems is automatically taken into account. This is practical, for example, when parametrizing expressions that include x2+y2, so indicating the use of φ as parameter automatically induces the use of x=ρ⁢cos⁡φ,y=ρ⁢sin⁡φ.
These three parametrization commands are used by int to perform vector path, surface and volume integrals.
Examples
with(Physics[Vectors]);
&x,`+`,`.`,Assume,ChangeBasis,ChangeCoordinates,CompactDisplay,Component,Curl,DirectionalDiff,Divergence,Gradient,Identify,Laplacian,∇,Norm,ParametrizeCurve,ParametrizeSurface,ParametrizeVolume,Setup,Simplify,`^`,diff,int
Consider the following C representing a curve in space
C := {y = x^2, z = 0};
C≔y=x2,z=0
The parametric equations for this curve are
ParametrizeCurve(C);
x⁡t=t,y⁡t=t2,z⁡t=0,t
The right-hand sides of the equations above are the components of the position vector r→ in cartesian coordinates, from where a vectorial form of these equations is
ParametrizeCurve(C, output = vector);
t2⁢j∧+t⁢i∧,t
The curve C can also be passed in vector form
C := x * _i + x^2 * _j;
C≔x2⁢j∧+x⁢i∧
The equations of circle of radius a on the (x,y) plane can be written as
C := {x^2 + y^2 = a^2, z = 0};
C≔z=0,x2+y2=a2
x⁡φ=a⁢cos⁡φ,y⁡φ=a⁢sin⁡φ,z⁡φ=0,φ
In vector notation,
a⁢cos⁡φ⁢i∧+a⁢sin⁡φ⁢j∧,φ
Changing the basis of this vector, for example to cylindrical, we get
ChangeBasis((9)[1], cylindrical);
a⁢ρ∧
The same result can be obtained by specifying the basis
ParametrizeCurve(C, output = vector, basis = cylindrical);
a⁢ρ∧,φ
An alternative parametrization of C can be computed by indicating a parameter different from the natural polar coordinates φ, for example (any letter serves the purpose)
ParametrizeCurve(C, parameter = tau);
x⁡τ=RootOf⁡_Z2−a2+τ2,y⁡τ=τ,z⁡τ=0,τ
In general, the parametrization is attempted in the coordinates received. For example, rewriting C=z=0,x2+y2=a2 in cylindrical coordinates
ChangeCoordinates(C, cylindrical);
z=0,ρ2=a2
ParametrizeCurve((13));
ρ⁡t=−a,φ⁡t=t,z⁡t=0,t
The special case of a straight line that passes through two given points A→ and B→. Consider
A := 2*_i - 3*_j + 4*_k;
A≔2⁢i∧−3⁢j∧+4⁢k∧
B := -4*_i + 2*_j - _k;
B≔−4⁢i∧+2⁢j∧−k∧
ParametrizeCurve(line(A, B));
x⁡t=2−6⁢t,y⁡t=−3+5⁢t,z⁡t=−5⁢t+4,t
The values of t that recover A→ and B→ from these parametric equations are, respectively, t=4 and t=−1.
ParametrizeCurve is used by int when computing path integrals. For example, integrate the number 1 along the line that joints A→ and B→ from P1 to P2 (these two points also belonging to that line)
P__1 := (16*_i)/5 - 4*_j + 5*_k;
P__1≔16⁢i∧5−4⁢j∧+5⁢k∧
P__2 := -(44*_i)/5 + 6*_j - 5*_k;
P__2≔−44⁢i∧5+6⁢j∧−5⁢k∧
(Int = int)(1, r_ = P__1 .. P__2, path = line(A, B));
ParametrizeSurface and ParametrizeVolume work in the same way as ParametrizeCurve, only with two and three parameters respectively.
C__2 := x^2 + y^2 + z^2 = a^2;
C__2≔x2+y2+z2=a2
ParametrizeSurface(C__2);
x⁡θ,φ=a⁢sin⁡θ⁢cos⁡φ,y⁡θ,φ=a⁢sin⁡θ⁢sin⁡φ,z⁡θ,φ=a⁢cos⁡θ,θ,φ
C__3 := x^2 + y^2 + z^2 = r^2;
C__3≔x2+y2+z2=r2
ParametrizeVolume(C__3);
x⁡r,θ,φ=r⁢sin⁡θ⁢cos⁡φ,y⁡r,θ,φ=r⁢sin⁡θ⁢sin⁡φ,z⁡r,θ,φ=r⁢cos⁡θ,r,θ,φ
ParametrizeVolume(C__3, basis = spherical, output = vector);
r⁢r∧,r,θ,φ
ParametrizeVolume(C__3, basis = cylindrical, output = vector);
k∧⁢z+ρ⁢ρ∧,ρ,φ,z
See Also
ChangeBasis, ChangeCoordinates, convert,VectorCalculus, Identify, int, notation, operations, Physics, Physics conventions, Physics examples, Physics Updates, Tensors - a complete guide, Mini-Course Computer Algebra for Physicists, Physics[Vectors]
Compatibility
The Physics[Vectors][ParametrizeCurve], Physics[Vectors][ParametrizeSurface] and Physics[Vectors][ParametrizeVolume] commands were introduced in Maple 2022.
For more information on Maple 2022 changes, see Updates in Maple 2022.
Download Help Document