Finding the coefficients of a Taylor polynomial

In summary, to find the coefficients of the Taylor polynomial of degree two of the function ##z(x,y)## around the point ##(0,0)##, one can use SimPy in python to perform symbolic differentiation, including partial derivatives.
  • #1
schniefen
178
4
TL;DR Summary
Consider the equation ##x+2y+z+e^{2z}-1=0##. Find the cocoefficients of the Taylor polynomial of degree two of the function ##z(x,y)## about the point ##(0,0)##.
To find the coefficients of the Taylor polynomial of degree two of the function ##z(x,y)## around the point ##(0,0)##, what would be a handy way of doing that in python? How would one find the derivatives of ##z(x,y)##?
 
Technology news on Phys.org
  • #2
schniefen said:
Summary: Consider the equation ##x+2y+z+e^{2z}-1=0##. Find the cocoefficients of the Taylor polynomial of degree two of the function ##z(x,y)## about the point ##(0,0)##.

To find the coefficients of the Taylor polynomial of degree two of the function ##z(x,y)## around the point ##(0,0)##, what would be a handy way of doing that in python? How would one find the derivatives of ##z(x,y)##?
SimPy will do symbolic differentiation, including partial derivatives. See https://docs.sympy.org/latest/tutorial/calculus.html
 

FAQ: Finding the coefficients of a Taylor polynomial

1. What is a Taylor polynomial?

A Taylor polynomial is a mathematical function that approximates a given function at a specific point by using a finite number of terms from its power series expansion. It is named after the mathematician Brook Taylor.

2. How do you find the coefficients of a Taylor polynomial?

The coefficients of a Taylor polynomial can be found by using the formula:
cn = f(n)(a) / n!, where cn represents the coefficient of the xn term, f(n)(a) represents the nth derivative of the function at the point a, and n! represents the factorial of n.

3. Why is it important to find the coefficients of a Taylor polynomial?

Finding the coefficients of a Taylor polynomial allows us to approximate a function at a specific point, which can be useful in situations where it is difficult or impossible to find the exact value of the function. It also helps in understanding the behavior of a function near a specific point.

4. Can the coefficients of a Taylor polynomial be negative?

Yes, the coefficients of a Taylor polynomial can be negative. The sign of the coefficient depends on the sign of the nth derivative of the function at the point a. If the nth derivative is positive, then the coefficient will be positive and vice versa.

5. How many terms should be used in a Taylor polynomial to get an accurate approximation?

The number of terms needed for an accurate approximation varies depending on the function and the point of approximation. In general, using more terms will result in a more accurate approximation. However, for most practical purposes, using 3 to 5 terms is sufficient.

Similar threads

Replies
3
Views
627
Replies
4
Views
1K
Replies
3
Views
2K
Replies
5
Views
2K
Replies
3
Views
882
Replies
10
Views
2K
Replies
9
Views
2K
Replies
1
Views
2K
Replies
6
Views
1K
Replies
14
Views
1K
Back
Top