2.3 FUNCTION APPROXIMATION

Numerous techniques are used to evaluate functions. According to the type of the function at hand, some evaluation methods may be more appropriate than others. For instance, a method well suited for a polynomial may not be the best for an exponential function. Polynomial approximation is most often recommended for function evaluation as any continuous function can be approximated in this way, and the implementation only consists of additions, multiplications, and powers.

Taylor and MacLaurin series are the most classic approaches to approximate functions. The series lead to precise numerical techniques to compute a function very near to one point, but precision can be lost for a bigger range of values. Trigonometric, logarithmic, and exponential function computations are typical applications.

Definition 2.19

  1. Taylor series. If a function f(x) has continuous derivatives up to (n + 1)th order, then this function can be expanded in the following fashion:

    image

    called a Taylor expansion at point a. Rn is called the remainder after n+1 terms. When this expansion converges over a certain range of x, that is, when

    image

    the expansion is called a Taylor series of f(x) at point a.

  2. MacLaurin series. If (2.10) is expressed at point a = 0, the series is called a MacLaurin series:

    image

Examples 2.11 Taylor–MacLaurin series expansions of exponential functions:

image

image

image

Taylor–MacLaurin series expansions of logarithmic functions:

image

image

image

image

Taylor–MacLaurin series expansions of trigonometric functions:

image

image

image

image

where Bn are the Bernoulli numbers ([R0S2000]).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset