The Taylor series is a mathematical formula to approximate a complex equation as a polynomial. Formally speaking, the Taylor series of a function is an infinite sum of the evaluation of the function’s derivatives at a single point. Given function , its Taylor series evaluated at is expressed as follows:
For a target function, the Taylor series can aggregate a finite number of terms, , instead of terms. Such a -degree polynomial is also called the -th Taylor polynomial approximating . The higher the total number of degrees is, the more accurate the approximation of becomes. The accuracy of the approximation is higher for those coordinates nearby , and lower for those coordinates away from . To increase the accuracy for further-away coordinates, we need to increase .