Student[MultivariateCalculus]
TaylorApproximation
return the Taylor series for a multivariate function
Calling Sequence
Parameters
Description
Examples
TaylorApproximation(f(x,y,...), [x,y,...]=[a,b,...], degree, x=xmin..xmax, y=ymin..ymax, ..., opts)
f(x, y, ...)
-
algebraic expression
x, y, ...
name; specify the independent variables
a, b, ...
name or real constants; point around which the function is expanded
degree
(optional) positive integer; degree of Taylor polynomial
xmin, xmax, ymin, ymax, ...
(optional) real constants specifying range over which to plot function
opts
(optional) equation(s) of the form option=value where option is one of centeroptions, functionoptions, output, showcenter, showfunction, tayloroptions; specify output options
The TaylorApproximation command returns the Taylor approximation of f of a specified degree around a specified point. By using options, you can specify that the command returns a plot or animation. This feature is only available if one or two variables are specified.
The opts argument can contain any of the following equations that set output options. Plotting is only available for univariate or bivariate functions.
The TaylorApproximationTutor routine offers equivalent capabilities to TaylorApproximation in a tutor interface. See Student[MultivariateCalculus][TaylorApproximationTutor] help page.
centeroptions = list
Specifies the plot options for plotting the point x,f⁡x or x,y,f⁡x,y. For more information on plotting options, see plot3d/options.
functionoptions = list
Specifies the plot options for plotting the function f. For more information on plotting options, see plot3d/options.
output = value, plot, or animation
This option controls the return value of the function.
* output = value specifies that the value of the approximation is returned. Plot options are ignored if output = value. The default is output = value.
* output = plot specifies that a plot displays, which shows the expression and the Taylor approximation to the function.
* output = animation specifies that an animation displays, which shows the Taylor approximation approaching the function as the degree of the Taylor series increases with each frame.
showcenter = true or false
Determines whether the point around which the series is expanded is plotted. The default is true.
showfunction = true or false
Determines whether the function f is plotted. The default is true.
tayloroptions = list
Specifies the plot options for plotting the Taylor approximation to f. The default is color=red,transparency=0.5. For more information on plotting options, see plot3d/options.
caption = anything
A caption for the plot.
The default caption is constructed from the parameters and the command options. caption = "" disables the default caption. For more information about specifying a caption, see plot/typesetting.
title = anything
A title for the plot.
The default title is constructed from the parameters and the command options. title = "" disables the default title. For more information about specifying a title, see plot/typesetting.
For information on how to change the default colors, see the Student[SetColors] help page.
with⁡StudentMultivariateCalculus:
TaylorApproximation⁡sin⁡x+y,x,y=1,0,5
cos⁡1⁢y5120+sin⁡1⁢y424+cos⁡1⁢x−1⁢y424−cos⁡1⁢y36+sin⁡1⁢x−1⁢y36+cos⁡1⁢x−12⁢y312−sin⁡1⁢y22−cos⁡1⁢x−1⁢y22+sin⁡1⁢x−12⁢y24+cos⁡1⁢x−13⁢y212+cos⁡1⁢y−sin⁡1⁢x−1⁢y−cos⁡1⁢x−12⁢y2+sin⁡1⁢x−13⁢y6+cos⁡1⁢x−14⁢y24+sin⁡1+cos⁡1⁢x−1−sin⁡1⁢x−122−cos⁡1⁢x−136+sin⁡1⁢x−1424+cos⁡1⁢x−15120
To play the following animation in this help page, right-click (Control-click, on Macintosh) the plot to display the context menu. Select Animation > Play.
TaylorApproximation⁡sin⁡x+y,x,y=1,0,5,output=animation
The command to create the plot in the Plotting Guide is
TaylorApproximation⁡sin⁡x,x,y=0,0,5,x=−3..3,y=−3..3,output=plot
See Also
plot3d/options
Student
Student[MultivariateCalculus][TaylorApproximationTutor]
Download Help Document