VectorCalculus - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Vector Calculus : VectorCalculus/TangentLine

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 Vector (of the same dimensionality)

outvars

-

'outnames'=list(name); (optional) specify the names of the output (cartesian) coordinate system variables

coordopt

-

 'coordinates'=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- or higher-dimensional space can only be specified using the calling sequence TangentLine(f, var1) where f is a vector or a 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&comma;y, and the second argument is x&equals;a, then f is parameterized as the Vector <x, f>. The tangent line will be computed at the point x&equals;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

withVectorCalculus&colon;

SetCoordinates&apos;cartesian&apos;x&comma;y

cartesianx&comma;y

(1)

TangentLinet&comma;t2&comma;t&equals;a

xaa2x

(2)

TangentLinex&rarr;x2&comma;x&equals;a

x&rarr;VectorCalculus:-Vectorx&comma;aa2x&comma;attributes&equals;positionvector&comma;coords&equals;cartesianx&comma;y

(3)

TangentLinex2&comma;x&equals;a

xaa2x

(4)

TangentLinet&rarr;1&plus;t2&comma;tt2&comma;t&equals;a

t&rarr;VectorCalculus:-Vectorx&comma;12a2&plus;2x&plus;2a&plus;x1a&comma;attributes&equals;positionvector&comma;coords&equals;cartesianx&comma;y

(5)

SetCoordinates&apos;polar&apos;r&comma;&theta;

polarr&comma;&theta;

(6)

TangentLine1&comma;&theta;&comma;&theta;&equals;&pi;4&comma;outnames&equals;u&comma;v

u2u

(7)

TangentLiner&equals;1&comma;1&comma;&pi;4&comma;outnames&equals;u&comma;v

122u122&plus;122v122&equals;0

(8)

SetCoordinates&apos;cartesian&apos;x&comma;y&comma;z

cartesianx&comma;y&comma;z

(9)

TangentLine1&comma;t&comma;t2&comma;t&equals;2

1y4&plus;4y

(10)

SetCoordinates&apos;cartesian&apos;x&comma;y

cartesianx&comma;y

(11)

`~`&lsqb;normal&rsqb;TangentLine&theta;2&comma;&theta;&equals;&pi;4&comma;coords&equals;polarr&comma;&theta;

x116&pi;3216&pi;x128x8&plus;&pi;

(12)

Compatibility

• 

The 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

VectorCalculus

VectorCalculus[PositionVector]

VectorCalculus[SetCoordinates]

VectorCalculus[TangentLine]

VectorCalculus[TangentVector]

VectorCalculus[Vector]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam