# Is a function better approximated by a line in some regions?

• I
Soren4
I studied Taylor series but I would like to have an answer to a doubt that I have. Suppose I have ##f(x)=e^{-x}##. Sometimes I've heard things like: "the exponential curve can be locally approximated by a line, furthermore in this particular region it is not very sharp so the approximation is even more good.."

Now I'm aware of the fact that any function (differentiable and so on) can be approximated by a line and further polynomial, but consider this graph of ##f(x)## and the regions ##A## and ##B##.

My question is : to what extent I can say "##f(x)## is better approximated by a line in ##B## than in ##A##"? And, if I could do this, why is that ? Is that because in region ##B## ##f(x)## is less sharp than in ##A##, or is there other reason behind this?

#### Attachments

• ggg.png
66.7 KB · Views: 388

Mentor
2022 Award
If you consider a linear approximation, i.e. by the first derivative, then you have the Taylor series (expanded at a point ##x_0##) written as
##f(x) = f(x_0) + (x-x_0) f'(x_0) + R(x,x_0)## where the term ##R(x,x_0)## is the remainder, that makes the difference. So we have to consider this term. One way to write it, is ##R(x,x_0) = \frac{1}{2} (x-x_0)^2 f''(\zeta)## for a point ##\zeta \in ]x,x_0[##.

Now you can choose a small interval around your points ##x_0 = B## and ##x_0 = - \ln A## and calculate the deviation ##|R(x,x_0)|## from linearity.

Soren4
Mentor
2022 Award
Another remark.
The formulation above isn't really good for numeric calculations, since it only states "there exists a certain ##x < \zeta < x_0## such that ..." and is of little use, if one actually needs to sharply calculate proper estimations. Here is where the work starts. If I remember correctly, there are several ways to get the hands on the remainders. Plural, because one can of course take more derivations into account than just one and get closer and closer towards ##f## and thus have according remainders ##R##. (I would have searched the internet, if I knew the correct English term for ##R##.)

However, the formulation above has a few advantages:
- it is easy to remember
- it can be used if one is interested in only a rough approximation
- it is sufficient for most physical applications (I think)

And finally it holds true for more than one term of the Taylor series, i.e.
$$f(x) = f(x_0) + (x-x_0)f'(x_0) + \frac{1}{2!}(x-x_0)^2f''(x_0) + \frac{1}{3!}(x-x_0)^3f^{(3)}(x_0) + \; \dots \; + \frac{1}{n!}(x-x_0)^nf^{(n)}(x_0) + R_n(x,x_0)$$
with now ##R_n(x,x_0) = \frac{1}{(n+1)!}(x-x_0)^{n+1}f^{(n+1)}(\zeta)##

Soren4
Soren4