Student[MultivariateCalculus]
Line
Create and initialize a line object
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
Line(eqn, opts)
Line(expr, opts)
Line(eqn1, eqn2, opts)
Line(expr1, expr2, opts)
Line(vt, opts)
Line(eqnlst, opts)
Line(exprlst, opts)
Line(p1, v, opts)
Line(v, pt, opts)
Line(p1, p2, opts)
Line(p1, P1, opts)
Line(P1, p1, opts)
Line(P1, P2, opts)
Line(ln, opts)
eqn
-
Linear equation of a line in 2D
expr
Linear expression, equated to 0 to get a line in 2D
eqn1, eqn2
Equations of two intersecting planes
expr1, expr2
Expressions which, when equated to 0, define two intersecting planes
vt
Vector defining a generic point on the line parametrically
eqnlst
List of parametric equations, defining a generic point on the line
exprlst
List of parametric expressions, defining a generic point on the line
p1, p2
Points on the line, specified as lists of coordinates
v
Direction Vector of the line
P1, P2
Plane defined by Student[MultivariateCalculus]
ln
Existing Line object
opts
(optional) equations controlling the representation or the plot of the line
The opts arguments can contain one or more of the following options.
parameter = name
The variable name used in the parametric form. This is used in interpreting the parametric forms of the call to the Line function, when obtaining the parametric form of the line using the GetRepresentation command, and with eval as explained above. The default is t.
variables = list
The variables to be used in the line's equation. This is used in interpreting the equation and expression forms of the call to the Line function, and when obtaining equations for the line. The default is x,y,z.
id = positive integer, name, or string
Lines display as << Line n >>, where n is an identification for the line that is by default a positive integer assigned in order of creation. The id option can be used to force the line to be given a different identification. It is an error to use the same identification for two different lines that are both in use.
The Line command creates a line object that can be operated on or graphed. The line can be in two- or three-dimensional space.
Lines can be specified in the following ways:
A linear equation eqn, such as a⁢x+b⁢y+c=0, defining a line in two-dimensional space.
An expression expr of the form a⁢x+b⁢y+c, which is set equal to 0 to obtain a line in two-dimensional space.
Two linear equations, eqn1 and eqn2, such as a⁢x+b⁢y+c⁢z+d=0, which together define a line in three-dimensional space.
Two linear expressions, expr1 and expr2, such as a⁢x+b⁢y+c⁢z+d, which are set equal to 0 to obtain a line in three-dimensional space.
A Vector vt specifying the line in parametric form, such as 2,3+t·4,5 or 2+4⁢t,3+5⁢t,1−2⁢t.
A list eqnlst of parametric equations, such as x=2,y=3−t,z=2⁢t.
A list exprlst of parametric equations, such as 2,3−t,2⁢t.
A point p1, such as 1,2,3, and a nonzero Vector v, such as 2,−1,0, giving a point on the line and the direction of the line, respectively. The point and direction can also be specified in the other order.
Two different points p1 and p2 on the line, such as 1,2 and 3,1.
A point p1, such as 1,2,3, and a Plane object P1 defined earlier, such as Plane⁡2,4,5,2,−1,0. The line this defines is the one that contains p1 and is normal to P1. The point and plane can also be specified in the other order.
Two intersecting Plane objects P1 and P2 defined earlier, such as Plane⁡2,4,5,2,−1,0 and Plane⁡2,−1,0,2,4,5. The line this defines is the intersection between P1 and P2.
A line ln defined earlier, such as Line⁡1,2,3,1. (This can be useful to change the names of the coordinate variables and the parameter, using the options explained below.)
It is possible to specify two mathematically identical lines using different Line commands.
The coefficients and coordinates defining a Line can contain parameters. For example, we can define a line containing the points 2,3,a and 1,a+b,3 with the command Line⁡2,3,a,1,a+b,3.
These parameters must be different from the coordinate variables (set by the variables option explained below; by default x,y or x,y,z), and different from the parameter used for the parametric form of the line (set by the parameter option explained below; by default t).
The following is a list of commands available to Line objects:
AreOrthogonal
AreParallel
AreSkew
Contains
Distance
Equal
GetDimension
GetDirection
GetIntersection
GetPlot
GetPoint
GetRepresentation
Intersects
Projection
In addition, there is some special behavior for the eval command when applied to a Line. If the line contains parameters, as in the example Line⁡2,3,a,1,a+b,3 above, then one can use eval to substitute values for those parameters. For example, we might evaluate the line given above at a=2 to obtain the line through the points 2,3,2 and 1,b+2,3.
Another possibility is to evaluate at a value for the parameter used for the parametric form of the line (set by the parameter option explained below; the default is t). This will return the point one obtains for the given value of the parameter. For example, a line defined as Line⁡1,0,−1+t·3,−1,2 can be evaluated at t=2 to obtain the point 7,−2,3.
Finally, one can rename the coordinate variables using eval: if one evaluates the line above at x=u,z=v, then one obtains an identical line in the space with coordinates u, y, and v.
with⁡StudentMultivariateCalculus:
Lines in 2D
l1≔Line⁡4⁢x−3⁢y=10:GetRepresentation⁡l1
t·34+85−65
l2≔Line⁡4⁢x−3⁢y−8:GetRepresentation⁡l2
t·34+3225−2425
l3≔Line⁡2,3+t·4,5,id=l3:GetRepresentation⁡l3
t·45+23
Note how lines l1 and l2 are displayed using their automatically assigned identification, but l3 has the explicitly specified identification l3:
l1,l2,l3
<< Line 1 >>,<< Line 2 >>,<< Line l3 >>
l4≔Line⁡1,2,4,5:GetRepresentation⁡l4
t·45+12
l5≔Line⁡3,0,−1,5:GetRepresentation⁡l5
t·−45+30
Lines in 3D
l6≔Line⁡4⁢x−3⁢y+2⁢z=10,2⁢x+y=−5:GetRepresentation⁡l6
t·−2410+−34−7254
l7≔Line⁡4⁢x−3⁢y+2⁢z−8,2⁢x+y+3:GetRepresentation⁡l7
t·−2410+−1760−73301112
l8≔Line⁡4,5,−2,2,3,1,parameter=k:GetRepresentation⁡l8
k·45−2+231
l9≔Line⁡u=a+1,v=2−2⁢a,w=a⋅3:GetRepresentation⁡l9
a·1−23+120
l10≔Line⁡a+b,2−2⁢a−b,a⋅3,parameter=a,variables=u,v,w:GetRepresentation⁡l10
a·1−23+b2−b0
l11≔Line⁡1,2,3,Plane⁡2,4,5,2,−1,0:GetRepresentation⁡l11
t·2−10+123
l12≔Line⁡Plane⁡2,4,5,2,−1,0,Plane⁡2,−1,0,2,4,5,variables=u,v,w:GetRepresentation⁡l12
t·−5−1010+000
l13≔Line⁡l9,variables=x,y,z,parameter=k:GetRepresentation⁡l13:
Some previously defined lines in other standard forms.
GetRepresentation⁡l4,form=parametric
x=1+4⁢t,y=2+5⁢t
GetRepresentation⁡l5,form=vectors
GetRepresentation⁡l5,form=combined_vector
3−4⁢t5⁢t
eval can be used for substituting the unknowns and the free variable of the vector form.
eval⁡l9,a=0;eval⁡l13,k=0
1,2,0
eval⁡l10,a=3
b+3,−4−b,9
l14≔eval⁡l10,b=3;GetRepresentation⁡l10
l14≔<< Line 13 >>
eval⁡l10,a=3,b=3
6,−7,9
Query the properties of individual lines.
GetDirection⁡l1
34
GetDirection⁡l3
45
GetDirection⁡l10
1−23
GetPoint⁡l4
1,2
GetPoint⁡l8
2,3,1
Determine the relationship between two lines.
GetIntersection⁡l1,l3
46,58
These two lines have no intersection.
GetIntersection⁡l1,l2
∅
AreParallel⁡l6,l7
true
AreParallel⁡l6,l8
false
AreSkew⁡l6,l8
Distance⁡l6,l8
81⁢13342668
evalf⁡
1.108860998
The Student[MultivariateCalculus][Line] command was introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
See Also
Student
Student[MultivariateCalculus][Plane]
Download Help Document