Enter a formula for a function f(x) in the input box. Adjust the value for an x-value, a, via its slider or input box. What we want to do is to locally approximate the function with a polynomial function. We want this approximation to be perfect at (a, f(a)) and it should be a very good approximation near that point. We want the graph of the polynomial to follow the graph of the original function as closely as possible near the point (a, f(a)). This is a generalization of using the tangent line to approximate a function.[br][br]The best way to do this approximation for a polynomial of degree n is to be sure that the function goes through the point: p(a) = f(a), and that all derivatives of order 1 through n at x = a are the same for both the approximating polynomial function and the original function. Here is the resulting formula for creating these polynomials.[br][br] [math]p_n\left(x\right)=f\left(a\right)+\sum_{k=1}^n\frac{f^{\left(n\right)}\left(a\right)}{n!}\left(x-a\right)^n[/math][br][br]These polynomial functions are called Taylor Polynomials.[br][br]In the app you can show Taylor Polynomials of degree 1-6 individually by checking their checkboxes.[br]You can also show the Taylor Polynomial of degree n (in red) controlled by the slider or input box for n.[br]You can check the checkbox for approximation to approximate the function at a point c with the nth degree Taylor Polynomial.[br][br]Note: There seems to be a small bug in the program. When n = 1 the red Taylor polynomial formula is computed correctly, but it is graphed incorrectly. The green version found by checking the box for n = 1 gives the correct graph.