Student[VectorCalculus]
TangentLine
compute the line tangent to a curve in Rn
Calling Sequence
Parameters
Description
Examples
Compatibility
TangentLine(f, var1, var2, outvars, coordopt)
TangentLine(f, pt, outvars, coordopt)
f
-
free or position Vector, Vector- or scalar-valued procedure, scalar expression or equation; specify the curve
var1
name=algebraic; specify the name and value of the first parameter
var2
name=algebraic; specify the name and value of the second parameter
pt
Vector; in the case where f is given as an equation, the point at which the tangent line is to be computed can be specified as a 3-element Vector
outvars
'outnames'=list(name); (optional) specify the names of the (2 or 3) output (cartesian) coordinate system variables
coordopt
'coordinates'=name or 'coordinates'=name[name,name] or 'coordinates'=name[name,name,name] ; (optional) specify the coordinate system in which the input f is to be interpreted; this is ignored if f is a Vector with a coordinates or coords attribute; coordinates may be abbreviated as coords
The TangentLine(f, var1) command computes the line tangent to the curve f at the point specified by var1. The curve can be entered as a Vector, a Vector-valued procedure, a scalar expression, or a scalar-valued procedure. If f is entered as a procedure, then it must accept at least 1 argument; it will be evaluated as f⁡lhs⁡var to obtain the expression for the curve and will be evaluated as f⁡rhs⁡var to obtain the point of tangency.
A curve in two-dimensional space can be specified using any of the calling sequences. A curve in three-dimensional space can only be specified using the calling sequence TangentLine(f, var1) where f is a 3-vector or a 3-vector-valued procedure. The coordopt will be ignored in this case if the vector f has its own coordinate system attached, but the outvars option can be included.
The TangentLine(f, var1, var2) command computes the line tangent to the curve f at the point specified by the two var parameters, where f is defined implicitly by an equation, for example x2+y2=1. No attempt is made to verify that the point specified by the var parameters is actually on the curve.
The TangentLine(f, pt) command computes the line tangent to the curve f at the point specified by the 2-element Vector pt parameters, where f is defined implicitly by an equation, for example x2+y2=1. No attempt is made to verify that the point specified by the pt parameter is actually on the curve.
If f is a scalar expression, an equation, or a scalar-valued procedure, then the current coordinate system must be two-dimensional, e.g., cartesian (in two dimensions) or polar, or the coordopt option must be provided and specify a two-dimensional coordinate system.
If f is a scalar expression, then the second argument must be an equation in which the left-hand side is one of the coordinate names from the current coordinate system or from the coordopt option, if provided. For example, if f is a scalar expression in x, the ambient coordinate system is cartesianx,y, and the second argument is x=a, respectively, then f is parameterized as the Vector <x, f>. The tangent line will be computed at the point x=a, y=f|x=a.
If f is a scalar-valued procedure, the second argument must be an equation in which the left-hand side is one of coordinate variable names from the current coordinate system or from the coordopt option. The procedure f will be evaluated at this variable, producing a scalar expression, and the previous paragraph applies.
If f is a Vector or Vector-valued procedure, var must be an equation whose left hand side is the curve parameter.
If f is a Vector or a scalar, the output is a position Vector. If f is a procedure, the output is a procedure that evaluates to a position Vector. If f is described implicitly, as an equation, then the returned tangent line will be given as an equation.
If the input expression f is not a Vector with a coords attribute, it is interpreted in coordinate system specified by the coordopt option. If this is not given, then the ambient coordinate system (as set, for example, by SetCoordinates) is assumed.
If neither the ambient coordinate system nor the coordinate system in which f is interpreted (see previous item) is cartesian of the appropriate dimension, then the outvars option must be used to provide the names of the output (cartesian) coordinate system variable names.
with⁡StudentVectorCalculus:
SetCoordinates⁡cartesianx,y
cartesianx,y
TangentLine⁡t,t2,t=a
x−a⁢a−2⁢x
TangentLine⁡x↦x2,x=a
x↦VectorCalculus:−Vector⁡x,−a⋅a−2⋅x,attributes=positionvector,coords=cartesianx,y
TangentLine⁡x2,x=a
TangentLine⁡t↦1+t2,t−t2,t=a
t↦VectorCalculus:−Vector⁡x,a2+−2⋅x+2⋅a+x−12⋅a,attributes=positionvector,coords=cartesianx,y
SetCoordinates⁡polarr,θ
polarr,θ
TangentLine⁡1,t,t=π4,outnames=u,v
u2−u
TangentLine⁡r=1,1,π4,outnames=u,v
2⁢u−222+2⁢v−222=0
SetCoordinates⁡cartesianx,y,z
cartesianx,y,z
TangentLine⁡1,t,t2,t=2
1y−4+4⁢y
`~`normal⁡TangentLine⁡θ2,θ=π4,coords=polarr,θ
xπ3⁢2−16⁢π⁢x−128⁢x16⁢−8+π
The Student[VectorCalculus][TangentLine] command was updated in Maple 17.
The var2, pt, outvars and coordopt parameters were introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
See Also
Student
Student[MultivariateCalculus]
Student[VectorCalculus][PositionVector]
Student[VectorCalculus][SetCoordinates]
Student[VectorCalculus][TangentVector]
Student[VectorCalculus][Vector]
Download Help Document