Student/VectorCalculus/TangentLine - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Student/VectorCalculus/TangentLine

Student[VectorCalculus]

  

TangentLine

  

compute the line tangent to a curve in Rn

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

TangentLine(f, var1, var2, outvars, coordopt)

TangentLine(f, pt, outvars, coordopt)

Parameters

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

Description

• 

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 flhsvar to obtain the expression for the curve and will be evaluated as frhsvar 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.

Examples

withStudentVectorCalculus&colon;

SetCoordinatescartesianx,y

cartesianx,y

(1)

TangentLinet&comma;t2&comma;t=a

xaa2x

(2)

TangentLinexx2&comma;x=a

xVectorCalculus:−Vectorx&comma;aa2x&comma;attributes=positionvector&comma;coords=cartesianx,y

(3)

TangentLinex2&comma;x=a

xaa2x

(4)

TangentLinet1+t2&comma;tt2&comma;t=a

tVectorCalculus:−Vectorx&comma;a2+2x+2a+x12a&comma;attributes=positionvector&comma;coords=cartesianx,y

(5)

SetCoordinatespolarr,θ

polarr,θ

(6)

TangentLine1&comma;t&comma;t=π4&comma;outnames=u&comma;v

u2u

(7)

TangentLiner=1&comma;1&comma;π4&comma;outnames=u&comma;v

2u222+2v222=0

(8)

SetCoordinatescartesianx,y,z

cartesianx,y,z

(9)

TangentLine1&comma;t&comma;t2&comma;t=2

1y4+4y

(10)

SetCoordinatescartesianx,y

cartesianx,y

(11)

`~`normalTangentLineθ2&comma;θ=π4&comma;coords=polarr,θ

xπ3216πx128x168+π

(12)

Compatibility

• 

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]

Student[VectorCalculus][PositionVector]

Student[VectorCalculus][SetCoordinates]

Student[VectorCalculus][TangentVector]

Student[VectorCalculus][Vector]