Taylor Series

The idea of the Taylor series is to approximate a function around a point with a polynomial. This is done by adjusting the coefficients of the polynomial such that its derivates match that of the function that is being approximated to a certain degree.

f(x)=c0x0+c1x1+c2x2+c3x3...f(x) = c_0 x^0 + c_1 x^1 + c_2 x^2 + c_3 x^3 ...

For the approximating polynomial, the nthn^{th} coefficient of each xnx^n-term is the value of the nthn^{th} derivative (of the original function) evaluated at 00, divided by n!n!. (3Blue1Brown)

This makes it so that first, the value of the two functions is identical at 00, then the slope is identical, then the rate of change, then the rate of change of the rate of change, and so on. The more terms you add, the closer the approximation.

You can craft the approximation for any point by evaluating the derivate at that point instead. The general equation for a Taylor series of a function f(x)f(x) turns out to be:

f(c)+f(c)1!(xc)2+f(c)2!(xc)2+f(c)3!(xc)3f(c) + \frac{f'(c)}{1!}(x-c)^2 + \frac{f''(c)}{2!}(x-c)^2 + \frac{f'''(c)}{3!}(x-c)^3

TODO: add bit about approximations for functions with more than one variable.

Last updated