taylor
Taylor series expansion
Calling Sequence
Parameters
Basic Information
Description
Examples
taylor(expression, x=a, n)
taylor(expression, x, n)
expression
-
x
name; independent variable
a
realcons; expansion point
n
(optional) non-negative integer; expansion order
This help page contains complete information about the taylor command. For basic information on the taylor command, see the taylor help page.
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.
To convert a Taylor series to a polynomial, use the convert/polynom command. For more information, see the convert/polynom help page.
taylor⁡ⅇx,x=0,4
1+x+12⁢x2+16⁢x3+O⁡x4
taylor⁡1x,x=1,3
1−x−1+x−12+O⁡x−13
taylor⁡cos⁡x,x=Pi
−1+12⁢x−π2−124⁢x−π4+O⁡x−π6
taylor⁡tan⁡x,x,8
x+13⁢x3+215⁢x5+17315⁢x7+O⁡x9
If the expansion point is not specified, the Taylor expansion at 0 is returned.
taylor⁡ln⁡1−x,x
−x−12⁢x2−13⁢x3−14⁢x4−15⁢x5+O⁡x6
taylor⁡ln⁡1−x,x=0
taylor⁡ln⁡1−x,x=2
I⁢csgn⁡I⁢x−1⁢π+x−2−12⁢x−22+13⁢x−23−14⁢x−24+15⁢x−25+O⁡x−26
taylor⁡1x+y+x3,x=0
Error, does not have a taylor expansion, try series()
series⁡1x+y+x3,x=0
x−1+y+x3
mtaylor⁡1x+y+x3,x=1,y
−x−15+x−14+4⁢x−12+2⁢x+y
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.
taylor⁡cosh⁡x,x=0
1+12⁢x2+124⁢x4+O⁡x6
Order ≔ 10
Order≔10
∫ⅇx3ⅆx
−−123⁢2⁢x⁢−113⁢π⁢33⁢Γ⁡23⁢−x313−x⁢−113⁢Γ⁡13,−x3−x3133
taylor⁡,x=0
x+14⁢x4+114⁢x7+O⁡x10
convert⁡,polynom
x+14⁢x4+114⁢x7
See Also
coeftayl
convert/polynom
Environment Variables
mtaylor
Order
series
type/realcons
type/taylor
Download Help Document