Math for economyMM1005

How to find your way

  1. 1Search for the word that confuses you — the box at the top searches the whole course.
  2. 2Look it up in Concepts. Every concept links to the section that explains it. Concepts →
  3. 3Read the Watch out and Common error boxes: they show the mistakes that are actually made.
  4. 4Still stuck? Bring the question to the exercise session or send an email.

Lecturer: Eric Ahlqvist, eric.ahlqvist@math.su.se · Put “MM1005” in the subject line.

← 3
Lecture 4 Exponentials, logarithms, and approximation
5 →
4 One variable

Exponentials, logarithms, and approximation

Why is $e=2.718\ldots$ the base that calculus prefers, and not $2$ or $10$? And how do we differentiate a function for which we have no formula at all?

Two functions have so far resisted us: $e^{x}$ and $\ln x.$ This lecture differentiates both, and in doing so pays the debt from Lecture 2, where $e$ was introduced as a number a little larger than $2.7$ with the promise that calculus would explain why that number and no other. Getting the derivative of $\ln x$ turns out to need a technique in its own right, so we name it and use it properly. The second half of the lecture is what all this machinery has been for: replacing a hard function by an easy one near a point.

⏱ 70 min read§ 6 sections

After this lecture you can

  • differentiate $e^{g(x)},$ $a^{x}$ and $\ln h(x),$ and say where the derivative of a logarithm means anything
  • differentiate an equation in $x$ and $y$ implicitly, solve for $y',$ and differentiate once more to find $y''$ at a point
  • differentiate a power whose base and exponent both vary, such as $x^{x},$ by taking logarithms first
  • replace a function near a point by its tangent line, and explain the rule of $70$ with it
  • write down the Taylor polynomial of degree $n$ about $a,$ and say why it can be trusted only near $a$
1

The exponential function, and why $e$

Is there a base $a$ for which the derivative of $a^{x}$ is $a^{x}$ itself?

Let $a>0$ and consider $f(x)=a^{x}.$ Because $a^{x+h}=a^{x}a^{h},$ the Newton quotient factors: $$ \frac{a^{x+h}-a^{x}}{h} = a^{x}\cdot\frac{a^{h}-1}{h}\,. \tag{4.1} $$ The first factor comes straight out, and the second does not involve $x$ at all. So whatever number that second factor tends to, it is a constant, and the derivative of $a^{x}$ is $a^{x}$ times it. Everything depends on one limit.

Computing it numerically gives about $0.69$ for $a=2$ and about $1.10$ for $a=3.$ It increases with $a,$ so somewhere between $2$ and $3$ there is a base for which it is exactly $1.$

The computation, with $h=0.001$ (this table is the app's):

base $a$$\dfrac{a^{h}-1}{h}$ at $h=0.001$
$2$$0.6934$
$2.71828$$1.0005$
$3$$1.0992$

That base is the number $e$. The limit of the second factor of (4.1) is also the slope of the tangent to $y=a^{x}$ at the point $(0,1),$ since the first factor is $a^{0}=1$ there. The picture shows the three tangents.

The curves $y=2^{x},$ $y=e^{x}$ and $y=3^{x}$ all pass through $(0,1).$ Their tangents there have the slopes $0.69,$ $1.00$ and $1.10{:}$ only the base $e$ gives slope exactly $1.$

Note what has happened. We did not discover $e$ somewhere and then compute its derivative; we asked which base makes the limit come out at $1$ and defined $e$ to be that base. The answer is clean because it was built to be.

Fact 4.2The derivative of the exponential#

$\displaystyle\frac{d}{dx}e^{x} = e^{x}$, and by the chain rule (Fact 3.16), $\displaystyle\frac{d}{dx}e^{g(x)} = e^{g(x)}\,g'(x)$.

This follows immediately from (4.1) with $a=e,$ since the second factor tends to $1$ by Definition 4.1; so $e^{x}$ is, up to a constant multiple, the only function that is its own derivative. As an instance of the chain-rule form, $\frac{d}{dx}e^{-x^{2}} = e^{-x^{2}}\cdot(-2x).$

Guess first. Before the Watch out below, which answers it, try the next question.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

Remember that $e \approx 2.718$ is a constant.

Which pair of derivatives is correct?

Fact 4.4Every other base reduces to $e$#

Since $a=e^{\ln a}$ we have $a^{x}=e^{x\ln a}$, and therefore $$ \frac{d}{dx}a^{x} = a^{x}\ln a\,. $$

There is $\ln a$ again — the same number as the limit we started from, which is why the limit was $0.69\approx\ln2$ for $a=2.$ It is a nuisance factor that equals $1$ exactly when $a=e.$ The honest way to read Fact 4.4 is that there is really only one exponential function, and every other base is that function with the clock running at a different speed; $\ln a$ is the speed. For instance $\frac{d}{dx}10^{-x} = -10^{-x}\ln10.$

Three more, each needing one of the two Facts and the chain rule. The example is the app's own, not one of the notes' numbered examples.

Example

Exponentials and the chain rule

Differentiate $f(x)=5e^{-2x},$ $g(x)=e^{x^{2}-4x}$ and $h(x)=2^{3x}.$ Where is $g'(x)=0?$

Try it yourself first. Then open one step at a time.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

Which of these is the derivative of $3^{x}?$

2

The logarithm

There is no formula for $\ln x$ to put into a Newton quotient. How can we find its derivative anyway?

We have no formula for $\ln x$ to differentiate. What we do have is an equation it satisfies, and that turns out to be enough.

Fact 4.5The derivative of the logarithm#

For $x>0$, $$ \frac{d}{dx}\ln x = \frac{1}{x}\,, $$ and consequently, wherever $h(x)>0$, $$ \frac{d}{dx}\ln h(x) = \frac{h'(x)}{h(x)}\,. \tag{4.2} $$

Stop and notice what that argument did, because it is the join of this lecture. We had no formula for $\ln x.$ We wrote down an equation it satisfies, differentiated both sides, and solved for the derivative — never needing a formula at all. That technique has a name and a section of its own, and we come to it next.

Two consequences are free. Differentiating again, $(\ln x)'' = -1/x^{2},$ which is negative throughout, so by Fact 3.22 the graph of $\ln$ bends downwards everywhere. And $\ln$ grows absurdly slowly: $\ln x$ does not reach $10$ until $x>22\,026.$

Guess first. The next question is the example below; answer it before you read on.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

$$y = \ln(4 - x^{2})$$

Find $\dfrac{dy}{dx}$.

Example 4.7

Where the derivative of a logarithm means anything

Differentiate $y=\ln(4-x^{2}),$ and say where the answer is valid.

Try it yourself first. Then open one step at a time.

Observe the shape of (4.2): $h'/h$ is the relative rate of change of $h$ from Definition 3.14. Differentiating a logarithm and taking a relative rate are the same operation, which is why Fact 3.15 looked so much like the logarithm rules. We are about to exploit that.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

For $x>0,$ what is the derivative of $\ln(3x)?$

Recap e and ln: the whole card

Everything on this card has now been derived; nothing on it is new. (The card is the app's, from the lecture's slides.)

functionderivative
$e^{x}$$e^{x}$
$e^{g(x)}$$e^{g(x)}\,g'(x)$
$a^{x}$$a^{x}\ln a$
$\ln x$$\dfrac{1}{x}$ for $x>0$
$\ln g(x)$$\dfrac{g'(x)}{g(x)}$ where $g(x)>0$
$\log_{a}x$$\dfrac{1}{x\ln a}$ for $x>0$

The first is Fact 4.2, the second the chain rule on top of it, the third Fact 4.4, and the next two are Fact 4.5. The last follows from Lecture 2's $\log_{a}x=\ln x/\ln a{:}$ a constant times $\ln x.$ Two identities carry the whole card: $$ e^{\ln x}=x\quad(x>0)\,,\qquad a^{x}=e^{x\ln a}\,. $$

3

Implicit differentiation

The curve $y^{3}+3x^{2}y=13$ passes through $(2,1).$ What is its slope there, when $y$ cannot be solved for?

The circle $x^{2}+y^{2}=25$ defines $y$ implicitly near $(3,4),$ and there one could solve, $y=\sqrt{25-x^{2}}.$ The curve $y^{3}+3x^{2}y=13$ also defines $y$ implicitly, and there one cannot solve in any way worth having. The point of the method is that it does not care which case you are in.

Try it before the example. The circle is part (a) of the example below. Differentiate both sides, and ask first what $\frac{d}{dx}\bigl(y^{2}\bigr)$ is.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

The circle $$x^{2} + y^{2} = 25$$ passes through the point $(3, 4)$.

What is the slope of the tangent there?

Example 4.11

The circle, and a curve that cannot be solved

(a) Find the slope of the tangent to the circle $x^{2}+y^{2}=25$ at $(3,4).$

(b) Find $y'$ for $y^{3}+3x^{2}y=13,$ and evaluate it at $(2,1).$

Try it yourself first. Then open one step at a time.

The tangent at $(3,4)$ is perpendicular to the radius: slopes $-\tfrac34$ and $\tfrac43.$

The geometry check of part (a), drawn. At a point of the circle in the first quadrant the circle is falling, so the slope must be negative; and it is steeper than $-1$ exactly where $y<x.$ At $(3,4)$ we have $y>x,$ so the slope lies between $-1$ and $0{:}$ $-\tfrac34$ passes both tests.

Addition: differentiating implicitly a second time. This is not in the lecture notes. Implicit differentiation as in Method 4.9 stops at $y',$ but the equation we get in its first step holds for every $x$ near the point, so it can be differentiated once more. Every $y$ and every $y'$ in it is a function of $x{:}$ a $y$ leaves a $y'$ behind, as before, and a $y'$ leaves a $y''.$ Then insert the point and the value of $y'$ already found, and solve for $y''$ — again a linear equation. This is what the second derivative of a function given by an equation needs, and the Taylor polynomials at the end of this lecture use it.

Example

The second derivative of the curve of Example 4.11(b)

The equation $y^{3}+3x^{2}y=13$ defines $y$ as a function of $x$ near $(2,1),$ with $y'(2)=-\tfrac45$ by Example 4.11. Find $y''(2).$

Try it yourself first. Then open one step at a time.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

On the circle $x^{2}+y^{2}=25,$ differentiating once gave $2x+2y\,y'=0.$ What do we get by differentiating this equation once more with respect to $x?$

4

Logarithmic differentiation, and the power rule in general

What is the derivative of $x^{x}?$ Neither the power rule nor the exponential rule applies.

The same idea handles functions where neither of our two rules applies at all. What is $\frac{d}{dx}x^{x}$? The power rule needs a constant exponent and the exponential rule a constant base; here the variable sits in both slots.

Example 4.13

Differentiating $x^{x}$

Differentiate $y=x^{x}$ for $x>0.$

Try it yourself first. Then open one step at a time.

The $y'/y$ in step (2) is Lecture 3's relative rate once more. Taking logarithms and then differentiating is precisely how the relative-rate rules arose there, so the technique is not new machinery but an old identity used forwards.

This also settles a debt. The power rule was proved from the definition only for whole-number exponents, and Lecture 3 promised the general case here.

Fact 4.14The power rule, in general#

For every real number $a$ and every $x>0$, $$ \frac{d}{dx}x^{a} = a\,x^{a-1}\,. $$

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

Let $y=x^{2x}$ for $x>0.$ Taking logarithms gives $\ln y=2x\ln x.$ What is $y'?$

5

Linear approximation

Without a calculator: what is $\sqrt[3]{1.03}$ to three decimal places?

Everything so far has computed derivatives. We now use one. The idea is to replace a function that is hard to evaluate by a function that is easy, accepting an error in exchange, and the simplest easy function is a straight line.

Fact 4.15Linear approximation#

If $f$ is differentiable at $a$, then for $x$ near $a$, $$ f(x) \;\approx\; f(a) + f'(a)(x-a)\,. \tag{4.3} $$

Guess first. The next question asks in what sense this is the best line. The paragraph after it gives the notes' answer.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

$$p(x) = f(a) + f'(a)(x-a)$$

This is called the best linear approximation to $f$ about $a$.

In what sense is it best?

The tangent at $a$ has the value and the slope of $f$ there. The bars show the error, which grows with the distance from $a.$

The right-hand side is the tangent line at $a,$ met in Lecture 2 and now used as a tool rather than described as a picture. Why this line and no other? Because infinitely many lines pass through the point $\bigl(a,f(a)\bigr),$ but exactly one of them also has slope $f'(a);$ it is the only line that agrees with $f$ in both value and slope at $a,$ and that is what makes it the linear approximation rather than merely a linear approximation.

Example 4.17

A cube root without a calculator

Estimate $\sqrt[3]{1.03}$ without a calculator.

Try it yourself first. Then open one step at a time.

Recap Doubling time, from Lecture 2

Money growing at $p\%$ a year is multiplied by $a=1+p/100$ every year. It has doubled after $t$ years when $a^{t}=2.$ Taking $\ln$ of both sides brings the unknown down out of the exponent, $t\ln a=\ln2,$ so the doubling time is $$ t^{*}=\frac{\ln2}{\ln a}=\frac{\ln2}{\ln\bigl(1+\frac{p}{100}\bigr)}\,. $$ That is Fact 2.13. It is exact, and it needs two logarithms: no use at a dinner table.

Guess first. Turn that exact formula into one you can use in your head.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

Money grows at $p\%$ a year, so the doubling time is $$t^{*} = \frac{\ln 2}{\ln(1 + p/100)}$$

Using $\ln(1+x) \approx x$ and $\ln 2 \approx 0.7$, this becomes:

Example 4.18

The rule of 70

Show that a quantity growing at $p\%$ per period doubles in roughly $70/p$ periods.

Try it yourself first. Then open one step at a time.

Every economist knows that rule. Rather fewer know it is a linear approximation.

How good is the rule? A table from the lecture's slides (the app's addition), with the exact $t^{*}=\ln2/\ln(1+p/100)$ to one decimal:

$p$$70/p$exact
$2$$35.0$$35.0$
$5$$14.0$$14.2$
$7$$10.0$$10.2$
$10$$7.0$$7.3$
$20$$3.5$$3.8$
$50$$1.4$$1.7$

Two roundings pull opposite ways. $\ln(1+x)<x$ for $x>0,$ so replacing $\ln(1+x)$ by $x$ makes the denominator too large and the answer too small; rounding $0.693$ up to $0.7$ pushes it back. Below about $10\%$ the two nearly cancel. Above it the first wins, and at $p=50$ the rule is about $18\%$ too low: “near $a=0$” has run out.

6

Taylor polynomials

A straight line can match the value and the slope of $f$ at a point. What can a parabola match?

A line matches $f$ in value and slope. A parabola has one more coefficient to spend, so it can match the second derivative too, and the pattern continues.

Here $k!$ (“$k$ factorial”) is the product $1\cdot2\cdots k,$ with $0!=1{:}$ so $2!=2$ and $3!=6.$ The case $n=1$ of the Taylor polynomial is the tangent line of Fact 4.15.

Fact 4.20What the Taylor polynomial does#

$P_{n}$ is the unique polynomial of degree at most $n$ whose value and first $n$ derivatives at $a$ agree with those of $f$: $$ P_{n}^{(k)}(a) = f^{(k)}(a)\qquad\text{for } k=0,1,\ldots,n\,, $$ and $f(x)\approx P_{n}(x)$ for $x$ near $a$. The case $n=1$ is (4.3).

For $f(x)=e^{x}$ about $a=0$ every derivative is $e^{x},$ hence every $f^{(k)}(0)=1,$ and (4.4) is as clean as it gets: $$ \begin{aligned} e^{x} \;\approx\; 1 &+ x + \frac{x^{2}}{2} + \frac{x^{3}}{6} \\ &+ \cdots + \frac{x^{n}}{n!}\,. \end{aligned} $$ This one is worth committing to memory; it reappears in statistics, in finance, and in Lecture 5.

Try it yourself

Adding terms

A function, its centre $a$ and its Taylor polynomial of degree $n.$ The shaded band on the $x$-axis is where the polynomial is within $0.1$ of the function, and its width is printed.

  1. Raise degree n one step at a time and watch the band widen.
  2. Move centre a. The band travels with it: the approximation is good near $a,$ wherever $a$ is, and nowhere else.
  3. Press the function button until it shows $1/(1-x),$ set $a=0,$ and push $n$ high. The band grows towards $x=1$ and then stops, however many terms you add.
Example 4.21

More terms, near the centre and far from it

Estimate $e^{0.1}$ using Taylor polynomials of degree $1,$ $2$ and $3$ about $a=0,$ and compare with the true value $1.1051709\ldots$

Try it yourself first. Then open one step at a time.

$e^{x}$ (thick) with its Taylor polynomials of degree $1,$ $2$ and $3$ about $0.$ Near $x=0$ all four almost coincide. Each extra term keeps the polynomial on the curve a little further out, and only near $0.$

Note also what has not been said. The symbol $\approx$ has been used throughout without once bounding the error, which is the difference between a rule of thumb and mathematics. Fact 5.4 supplies the bound.

Definition 4.19 needs only the numbers $f(a),$ $f'(a),$ $f''(a),\ldots,$ not a formula for $f.$ So it applies just as well to a function given by an equation, once the derivatives at the point are known. The next example is the app's own and uses the addition of the section on implicit differentiation.

Example

A Taylor polynomial for a function given by an equation

The equation $y^{3}+3x^{2}y=13$ defines $y$ as a function of $x$ near $x=2,$ with $y(2)=1.$ Find the Taylor polynomial of degree $2$ of $y$ about $x=2,$ and use it to estimate $y(2.1).$

Try it yourself first. Then open one step at a time.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

A function has $f(1)=2,$ $f'(1)=-1$ and $f''(1)=6.$ What is its Taylor polynomial of degree $2$ about $a=1?$

What you should take away

  • The Newton quotient of $a^{x}$ factors as $a^{x}\cdot(a^{h}-1)/h,$ so everything depends on $\lim_{h\to0}(a^{h}-1)/h.$ That limit is $\ln a;$ it equals $1$ exactly when $a=e,$ and that is what defines $e$. Hence $(e^{x})'=e^{x},$ and $(a^{x})'=a^{x}\ln a$ for every other base.
  • $(\ln x)'=1/x,$ obtained by differentiating $e^{\ln x}=x;$ more generally $\bigl(\ln h(x)\bigr)' = h'(x)/h(x),$ which is the relative rate of change of $h.$ Check where $\ln h$ is defined before differentiating it.
  • Implicit differentiation: differentiate both sides treating $y$ as a function of $x$ — every $y$ leaves a $y'$ — then solve for $y'.$ It needs no formula for $y,$ which is the point.
  • Logarithmic differentiation: take logs, differentiate implicitly to get $y'/y,$ multiply back. It handles $x^{x},$ where neither the power rule nor the exponential rule applies, and it finishes the power rule: $(x^{a})'=ax^{a-1}$ for every real $a.$
  • $f(x)\approx f(a)+f'(a)(x-a)$ near $a$ — the tangent line used as a tool, and the only line matching both value and slope at $a.$ Applied to $\ln(1+x)$ it gives the rule of 70.
  • The Taylor polynomial $\sum_{k\le n} f^{(k)}(a)(x-a)^{k}/k!$ matches the first $n$ derivatives at $a;$ for $e^{x}$ about $0$ it is $1+x+x^{2}/2+\cdots+x^{n}/n!.$ It is accurate near $a$ and can be badly wrong away from it — and no error bound has been given yet.

Think further

Questions without computation. Think on your own or with a classmate before opening the thought.

  1. Discussion question 1 — the exponent or the base

    Which pair is correct?

    (A) $\displaystyle\frac{d}{dx}e^{x}=e^{x}$ and $\displaystyle\frac{d}{dx}x^{e}=e\,x^{e-1};$

    (B) $\displaystyle\frac{d}{dx}e^{x}=xe^{x-1}$ and $\displaystyle\frac{d}{dx}x^{e}=e\,x^{e-1};$

    (C) $\displaystyle\frac{d}{dx}e^{x}=e^{x}$ and $\displaystyle\frac{d}{dx}x^{e}=x^{e}\ln x;$

    (D) $\displaystyle\frac{d}{dx}e^{x}=xe^{x-1}$ and $\displaystyle\frac{d}{dx}x^{e}=x^{e}\ln x.$

    One way to think about it

    (A). In $e^{x}$ the variable is in the exponent, so Fact 4.2 applies and the derivative is $e^{x}$ itself. In $x^{e}$ the variable is in the base and the exponent is the constant $e=2.718\ldots,$ so it is a power function and Fact 4.14 gives $e\,x^{e-1}.$ (B) uses the power rule on $e^{x}$ (Watch out 4.3); (C) uses an exponential rule on $x^{e};$ (D) does both.

  2. Discussion question 2 — a logarithm and its domain

    Differentiate $\ln(x^{2}-9),$ and state where your answer is valid.

    One way to think about it

    With $h(x)=x^{2}-9$ and $h'(x)=2x,$ formula (4.2) gives $$ \frac{d}{dx}\ln(x^{2}-9)=\frac{2x}{x^{2}-9}\,. $$ The logarithm needs $x^{2}-9>0,$ that is $x<-3$ or $x>3.$ The answer is valid on those two intervals and nowhere else. Between $-3$ and $3$ the formula $\dfrac{2x}{x^{2}-9}$ still produces numbers, for example $0$ at $x=0,$ but there is no function there to be the derivative of (Watch out 4.6).

  3. Discussion question 3 — where the circle stands upright

    In Example 4.11(a), what happens to $y'=-x/y$ at the points $(\pm5,0),$ and what does the circle look like there?

    One way to think about it

    At $(\pm5,0)$ the denominator $y$ is zero, and $-x/y$ is not defined: the differentiated equation $2x+2y\,y'=0$ reads $\pm10=0$ whatever $y'$ is. The circle has a vertical tangent there, and a vertical line has no slope.

    It also stops being a function of $x$ there. Just inside $x=5$ there are two values of $y,$ one above and one below the axis, and just outside there are none. So no part of the circle near $(5,0)$ is defined implicitly in the sense of Definition 4.8, and there is no $y'$ to find.

  4. Discussion question 4 — logarithmic differentiation on a product

    Use logarithmic differentiation on $y = x^{2}e^{3x}/(1+x).$ Which step of Method 4.12 does the real work?

    One way to think about it

    Take $x>0,$ so that every logarithm below exists. By Fact 2.9, $$ \ln y=2\ln x+3x-\ln(1+x)\,. $$ Differentiating both sides, $$ \frac{y'}{y}=\frac{2}{x}+3-\frac{1}{1+x}\,, $$ and multiplying by $y,$ $$ \begin{aligned} y'&=y\,\Bigl(\frac{2}{x}+3-\frac{1}{1+x}\Bigr)\,,\\ y&=\frac{x^{2}e^{3x}}{1+x}\,. \end{aligned} $$ Step 1 does the real work. Taking logarithms turns the product and the quotient into a sum and a difference, and the exponential into the plain term $3x;$ after that each term is differentiated on its own, with no product or quotient rule at all.

  5. Discussion question 5 — eliminating before computing

    Money grows at $p\%$ a year. Using $\ln(1+x)\approx x$ and $\ln2\approx0.7,$ the doubling time is about

    (A) $70p;$

    (B) $p/70;$

    (C) $0.7p;$

    (D) $70/p.$

    Which of these can you eliminate before doing any algebra, and why?

    One way to think about it

    (D), by Example 4.18. Before any algebra: a higher interest rate must double the money sooner, so the doubling time must fall as $p$ rises. That eliminates (A) and (C), which grow with $p.$ (B) falls as $p$ rises, but its size is absurd: at $p=3.5$ it gives $0.05$ years, about two and a half weeks. Only (D) survives the two checks.

  6. Discussion question 6 — best in what sense

    In what sense is $f(a)+f'(a)(x-a)$ the best linear approximation to $f$ about $a$? How many lines pass through $\bigl(a,f(a)\bigr),$ and how many of those have slope $f'(a)$?

    One way to think about it

    Infinitely many lines pass through $\bigl(a,f(a)\bigr),$ and exactly one of them has slope $f'(a).$ That one agrees with $f$ in value and slope at $a,$ and no other line does: it is best in the sense of agreeing with $f$ to the highest order at the point $a$. It is not best on average over a range (that is the regression line of statistics), and nothing is promised far from $a$ (Watch out 4.16).

  7. Discussion question 7 — no Taylor polynomial at 0

    The Taylor polynomial of $\ln x$ about $a=1$ has degree-$n$ term $(-1)^{n-1}(x-1)^{n}/n.$ Why can there be no Taylor polynomial for $\ln x$ about $a=0$?

    One way to think about it

    Definition 4.19 needs the numbers $f(a),$ $f'(a),\ldots$ at the centre. But $\ln x$ is defined only for $x>0{:}$ there is no $\ln0,$ and no derivative at $0$ either, since $1/x$ has no value there. With nothing to match, there is no polynomial.

    About $a=1$ everything exists: $\ln1=0,$ and the derivatives are $1/x,$ $-1/x^{2},$ $2/x^{3},\ldots,$ which at $1$ give $1,$ $-1,$ $2,\ldots$ Divided by $1!,$ $2!,$ $3!,\ldots$ these give the coefficients $1,$ $-\tfrac12,$ $\tfrac13,\ldots,$ that is $(-1)^{n-1}/n.$