Create and initialize a line object
Line(eqn1, eqn2, opts)
Line(expr1, expr2, 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)
Linear equation of a line in 2D
Linear expression, equated to 0 to get a line in 2D
Equations of two intersecting planes
Expressions which, when equated to 0, define two intersecting planes
Vector defining a generic point on the line parametrically
List of parametric equations, defining a generic point on the line
List of parametric expressions, defining a generic point on the line
Points on the line, specified as lists of coordinates
Direction Vector of the line
Plane defined by Student[MultivariateCalculus]
Existing Line object
(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:
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.
Lines in 2D
l1 ≔ Line⁡4⁢x−3⁢y=10:GetRepresentation⁡l1
l2 ≔ Line⁡4⁢x−3⁢y−8:GetRepresentation⁡l2
l3 ≔ Line⁡2,3+`.`⁡t,4,5,'id=l3':GetRepresentation⁡l3
Note how lines l1 and l2 are displayed using their automatically assigned identification, but l3 has the explicitly specified identification l3:
<< Line 1 >>,<< Line 2 >>,<< Line l3 >>
l4 ≔ Line⁡1,2,4,5:GetRepresentation⁡l4
l5 ≔ Line⁡3,0,−1,5:GetRepresentation⁡l5
Lines in 3D
l6 ≔ Line⁡4⁢x−3⁢y+2⁢z=10,2⁢x+y=−5:GetRepresentation⁡l6
l7 ≔ Line⁡4⁢x−3⁢y+2⁢z−8,2⁢x+y+3:GetRepresentation⁡l7
l8 ≔ Line⁡4,5,−2,2,3,1,'parameter'=k:GetRepresentation⁡l8
l9 ≔ Line⁡u=a+1,v=2−2⁢a,w=a⋅3:GetRepresentation⁡l9
l10 ≔ Line⁡a+b,2−2⁢a−b,a⋅3,'parameter'=a,'variables'=u,v,w:GetRepresentation⁡l10
l11 ≔ Line⁡1,2,3,Plane⁡2,4,5,2,−1,0:GetRepresentation⁡l11
l12 ≔ Line⁡Plane⁡2,4,5,2,−1,0,Plane⁡2,−1,0,2,4,5,'variables'=u,v,w:GetRepresentation⁡l12
l13 ≔ Line⁡l9,'variables'=x,y,z,'parameter'=k:GetRepresentation⁡l13:
Some previously defined lines in other standard forms.
eval can be used for substituting the unknowns and the free variable of the vector form.
l14 ≔ l10b=3|l10b=3;GetRepresentation⁡l10
l14≔<< Line 13 >>
Query the properties of individual lines.
Determine the relationship between two lines.
These two lines have no intersection.
The Student[MultivariateCalculus][Line] command was introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
Download Help Document
What kind of issue would you like to report? (Optional)