detailed information - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


taylor

Taylor series expansion

 

Calling Sequence

Parameters

Basic Information

Description

Examples

Compatibility

Calling Sequence

taylor(expression, x=a, n)

taylor(expression, x, n)

Parameters

expression

-

expression

x

-

name; independent variable

a

-

realcons; expansion point

n

-

(optional) non-negative integer; expansion order

oterm

-

(optional) truefalse

Basic Information

• 

This help page contains complete information about the taylor command. For basic information on the taylor command, see the taylor help page.

Description

• 

The taylor command computes the order n Taylor series expansion of expression, with respect to the variable x, about the point a.

  

If you do not specify the expansion point, a, the Taylor expansion at 0 is returned. This is known as the Maclaurin expansion.

  

If you do not specify the optional argument n, the order of the Taylor expansion returned is the value of the Order environment variable.

• 

The taylor command is a restriction of the more general series command.  For a complete explanation of the parameters, see series.

• 

If the result of the series command applied to the specified arguments is a Taylor series, then this result is returned; otherwise, an error is returned.

• 

If the optional argument oterm=false is given, then convert(result,polynom) is applied before returning.

Examples

taylorexpx,x=0,4

1+x+12x2+16x3+Ox4

(1)

taylor1x,x=1,3

1x1+x12+Ox13

(2)

taylorcosx,x=π

−1+12xπ2124xπ4+Oxπ6

(3)

taylortanx,x,8

x+13x3+215x5+17315x7+Ox9

(4)

If the expansion point is not specified, the Taylor expansion at 0 is returned.

taylorln1x,x

x12x213x314x415x5+Ox6

(5)

taylorln1x,x=0

x12x213x314x415x5+Ox6

(6)

taylorln1x,x=2

IcsgnIx1π+x212x22+13x2314x24+15x25+Ox26

(7)

taylor1x+y+x3,x=0

Error, does not have a taylor expansion, try series()

series1x+y+x3,x=0

x−1+y+x3

(8)

mtaylor1x+y+x3,x=1,y

x15+x14+4x12+2x+y

(9)

By default, the Order environment variable is set to 6. If you do not specify the expansion order, this value is used as the expansion order.

taylorcoshx,x=0

1+12x2+124x4+Ox6

(10)

Order10

Order10

(11)

intexpx3,x

−1232x−113π33Γ23x313x−113Γ13,x3x3133

(12)

taylor,x=0

x+14x4+114x7+Ox10

(13)

convert,polynom

x+14x4+114x7

(14)

Compatibility

• 

The taylor command was updated in Maple 2024.

• 

The oterm option was introduced in Maple 2024.

• 

For more information on Maple 2024 changes, see Updates in Maple 2024.

See Also

coeftayl

convert/polynom

Environment Variables

mtaylor

Order

series

taylor

type/realcons

type/taylor