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, [email protected] · Put “MM1005” in the subject line.

← 4
Lecture 5 The error term, limits, and $0/0$
6 →
5 One variable

The error term, limits, and $0/0$

How wrong is an approximation — not roughly, but at worst? And when substituting into a limit gives $\tfrac00,$ how do you read that signal?

Three debts fall due today. Lecture 3 called $\tfrac00$ a signal rather than a verdict and never said how to read the signal; it also promised that the word limit would be made precise. Lecture 4 wrote $\approx$ for half a lecture and never once said how wrong the approximation was.

Paying them produces four results which are usually met as four unrelated topics, and it is worth saying in advance what joins them. Each is a licence: a theorem of the form under such-and-such a condition, you may replace something hard by something easy. Continuity licenses replacing a limit by a value. Taylor's formula licenses replacing a function by a polynomial, and prices the replacement. L'Hôpital's rule licenses replacing a ratio of functions by a ratio of derivatives. In each case the condition is the content, and the last section of this lecture is about what happens when you forget to check one.

⏱ 65 min read§ 6 sections

After this lecture you can

  • write down Taylor's formula with its remainder, and bound the error of a Taylor approximation by Method 5.5
  • decide whether a limit exists by looking at the two one-sided limits, and say in words what $f(x)\to\infty$ means
  • decide whether a function is continuous at a point and, if not, whether the discontinuity is removable
  • evaluate a limit by Method 5.24: substitute first, and factor or use l'Hôpital's rule only when the form is indeterminate
  • find a parameter from the value of a limit, also when l'Hôpital's rule is needed twice
  • find a limit as $x\to\infty$ from the leading terms, or with the conjugate when a root is involved
1

The price of an approximation

$\sqrt{25.01}$ is about $5.001.$ How far off can that be, at worst — and can you say so without a calculator?

Lecture 4 built the Taylor polynomial $p_{n}$ of Definition 4.19 and asserted $f(x)\approx p_{n}(x)$ near $a,$ with no account of the error. Naming that error turns the approximation into an equation.

Fact 5.1Taylor's formula#

Let $f$ be $n+1$ times differentiable on an interval containing $a$ and $x$. Then $$ \begin{aligned} &f(x) = p_{n}(x) + R_{n+1}(x)\,, \\ &R_{n+1}(x) = \frac{f^{(n+1)}(z)}{(n+1)!}\,(x-a)^{n+1} \tag{5.1} \end{aligned} $$ for some number $z$ strictly between $a$ and $x$. In the case $a=0$, which is the one normally used, $R_{n+1}(x) = f^{(n+1)}(z)\,x^{n+1}/(n+1)!$ with $z$ between $0$ and $x$.

The remainder is worth staring at, because it makes the formula memorable rather than arbitrary: $R_{n+1}$ is exactly what the next term of the Taylor polynomial would have been, except that the derivative is evaluated at some unknown $z$ instead of at $a.$ One more derivative, taken somewhere you cannot name.

Guess first. Before the next box, decide what kind of number $z$ is.

Check yourself

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

Taylor's formula says that for some number $z$ strictly between $0$ and $x$, $$f(x) = p_{n}(x) + \frac{f^{(n+1)}(z)}{(n+1)!}x^{\,n+1}$$

What is $z$?

Example 5.3

Some z, not every z

Test the “for all $z$” misreading on two functions, both with $a=0$ and $n=1.$

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

An existence statement sounds useless. It is not, and the reason is the single most transferable idea in this lecture: you do not need to know where $z$ is if you can bound $f^{(n+1)}$ everywhere it might be.

Fact 5.4The error bound#

If $\bigl|f^{(n+1)}(t)\bigr| \le M$ for every $t$ between $a$ and $x$, then $$ \bigl|R_{n+1}(x)\bigr| \;\le\; \frac{M}{(n+1)!}\,|x-a|^{\,n+1}\,. \tag{5.2} $$

The case $n=1.$ If $|f''|\le M,$ the curve can never leave the corridor of half-width $\tfrac12Mx^{2}$ around its tangent. The corridor is guaranteed by (5.2), not observed.
Example 5.6

Seven decimals, guaranteed

Estimate $\sqrt{25.01},$ with a guaranteed error, and without a calculator.

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

Two separate things made that error small, and it is worth separating them. The factorial $(n+1)!$ in the denominator grows faster than almost anything, so extra terms help a great deal; and $|x-a|^{n+1}$ shrinks fast whenever $|x-a|<1,$ so being close to the centre helps a great deal. Neither helps when $|x-a|$ is large, which is Watch out 4.22 of the previous lecture stated quantitatively at last.

Check yourself

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

Approximate $f(x)=\dfrac{1}{1+x}$ about $a=0$ by its Taylor polynomial of degree $1,$ $p_{1}(x)=1-x,$ and use it at $x=0.1.$ Here $f''(t)=\dfrac{2}{(1+t)^{3}}.$ Which bound does Fact 5.4 give for the error $|R_{2}(0.1)|?$

2

Limits, properly

Does $\lim_{x\to0}1/x$ exist? And if it does not, is that because $1/x$ has no value at $0?$

Lecture 3 defined $\lim_{x\to a}f(x)$ informally and insisted that $x$ must be allowed to approach $a$ from both sides. That insistence can now be made into something checkable.

Approached from below the values close in on $B,$ from above on $A.$ Both one-sided limits exist, and they differ.
Fact 5.8Two-sided means both sides#

$\lim_{x\to a}f(x)$ exists if and only if both one-sided limits exist and are equal, in which case all three agree.

That “if and only if” is the whole content of Definition 5.7: it converts an instruction (approach from both sides) into a test you can carry out. In the picture above, the one-sided limits are $B$ and $A,$ they differ, and so there is no limit at $a.$

One phrase has been carried along untouched since Lecture 3, and it is still an instruction rather than a test: as close as we please. It can be made into a test as well, at the cost of two quantifiers.

Read it as a challenge and a response. Someone names a tolerance $\varepsilon$ (the Greek letter epsilon) — how close to $L$ the values are required to come; you must answer with a distance $\delta$ (delta) — how close to $a$ it is enough to stand for that to happen. The limit is $L$ precisely when you have an answer to every challenge, however small. Two features of (5.3) carry the weight. The $\delta$ is allowed to depend on $\varepsilon,$ and normally must: a tighter tolerance demands a smaller neighbourhood. And the left-hand inequality is strict at both ends — $0<|x-a|$ rules out $x=a$ itself, so the definition never so much as mentions $f(a),$ which need not exist.

One piece of notation needs care. If $f(x)$ grows past every bound as $x\to a,$ it is usual to write $f(x)\to\infty.$

Guess first. The next question is part (a) of the example after it. 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.

Does $$\lim_{x \to 0}\frac{1}{x}$$ exist?

Example 5.11

Three functions undefined at 0

Decide whether each of these limits exists as $x\to0{:}$

(a) $1/x;$

(b) $1/x^{2};$

(c) $(e^{x}-1)/x.$

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.

Let $f(x)=3x+1,$ so that $\lim_{x\to2}f(x)=7.$ Someone names a tolerance $\varepsilon>0.$ In (5.3), which $\delta$ answers the challenge for every $\varepsilon?$

3

Continuity, and the licence to substitute

Let $f(x)=\dfrac{x^{2}-4}{x-2}$ for $x\ne2,$ with $f(2)=1.$ Is $f$ continuous at $2?$

A limit never looks at $f(a).$ The next definition is the one that does: it asks whether the value at the point is the one the limit predicts.

Definition 5.13 and Definition 5.14 are two statements of the same thing: a function satisfies one exactly when it satisfies the other. The second is the standard one, and the one met in every later course, so it is worth being able to read; the first is the one to think with here, because it is the one that says what continuity is for.

The informal version — the graph can be drawn without lifting the pencil — is a good picture and a poor definition, and it is Definition 5.13 that survives contact with a function defined piecewise. Since three conditions must hold, there are two genuinely different ways to fail.

At $a$ the two sides disagree, so the limit fails: irremovable. At $b$ the limit exists and only the value is wrong: removable.

A removable discontinuity is not a defect of the function so much as a defect of its definition at one point: the limit was there all along and the value was wrong or missing. That is worth noticing now, because it is the situation of every problem in the last section of this lecture.

Recap The words of this section
wordwhat it means at a point $a$
the value$f(a),$ the number the definition of $f$ assigns to $a$
the limitthe number $f(x)$ approaches as $x\to a$
continuousthe value exists, the limit exists, and they agree
discontinuousnot continuous: one of the three fails
removablethe limit exists; only the value is wrong or missing
irremovablethe limit does not exist

A piecewise definition often assigns the value separately, as in “$f(2)=1$”. That line is part of the function and has to be read.

Guess first. The next question is the example after it. 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.

A function is defined by $$f(x) = \frac{x^{2}-4}{x-2} \;\text{ for } x \neq 2, \qquad f(2) = 1$$

Is $f$ continuous at $x = 2$?

Example 5.16

A removable discontinuity

Let $f(x) = \dfrac{x^{2}-4}{x-2}$ for $x\ne2,$ with $f(2)=1.$ Is $f$ continuous at $2?$

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

Continuity earns its place because of what it licenses.

Fact 5.17Continuity licenses substitution#

If $f$ is continuous at $a$ then $\lim_{x\to a}f(x)=f(a)$: you simply substitute. Moreover anything built from constants and $x$ using addition, subtraction, multiplication, division and composition is continuous wherever it is defined — so polynomials are continuous everywhere, rational functions off the zeros of the denominator, and $e^{x}$, $\ln x$ and powers on their domains.

The second sentence is the reason the limit rules of Fact 3.4 felt so obvious when they were stated: they are precisely the assertion that continuity survives arithmetic. And together the two sentences close a loop opened two lectures ago. If substitution works whenever the function is continuous, and almost everything is continuous where defined, then the only limits that require thought are the ones where substituting fails — which, for a quotient, means the ones that come out as $\tfrac00.$

Check yourself

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

For a constant $c,$ let $$ f(x)=\begin{cases}x^{2}+c, & x<2\,,\\ 3x-1, & x\ge2\,.\end{cases} $$ For which $c$ is $f$ continuous at $2?$

4

Reading the signal: l'Hôpital's rule

Substituting $x=0$ into $\dfrac{e^{x}-1}{x}$ gives $\tfrac00.$ Is there a way to read that signal that does not depend on a trick for each function?

The end of the last section leaves one kind of limit that needs thought: the quotient that comes out as $\tfrac00$ when you substitute. It deserves a name.

Fact 5.19l'Hôpital's rule#

Let $f$ and $g$ be differentiable near $a$ with $f(a)=g(a)=0$, and suppose $g'(a)\ne0$. Then $$ \lim_{x\to a}\frac{f(x)}{g(x)} = \frac{f'(a)}{g'(a)}\,. \tag{5.5} $$ More generally, and for $\tfrac{\infty}{\infty}$ as well, $\lim_{x\to a} f/g = \lim_{x\to a} f'/g'$ whenever the right-hand limit exists. If that limit is again indeterminate, apply the rule again.

$f(x)=x^{2}-1$ and $g(x)=x^{3}-1$ at $a=1.$ Near $a$ each curve is its own tangent, so the ratio of the curves tends to the ratio of the slopes, $\tfrac23.$ (The two lines of text at the top of the picture say the same and print on top of each other.)
Try it yourself

0/0 up close

Two curves through the same point $(a,0),$ so their ratio is $\tfrac00$ at $a$ and well behaved on either side.

  1. Press zoom in. The window around $a$ shrinks, and the two curves straighten into their dashed tangents.
  2. Watch the two printed numbers: the ratio $f(x)/g(x)$ at the edge of the window, and $f'(a)/g'(a).$ They close in on each other.
  3. Press the button with the names of the functions to try other pairs: $\ln x$ against $x-1,$ and $e^{x-1}-1$ against $x^{2}-1.$
  4. The last pair has $g'(a)=0.$ Zoom in and watch the ratio run away. The condition $g'(a)\ne0$ in Fact 5.19 is doing work.

Guess first. The next question is about part (a) of the example after it. Write the rule down as a formula before you choose.

Check yourself

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

A student wants $\displaystyle\lim_{x\to 0}\frac{e^{x}-1}{x}$ and writes:

"By l'Hôpital, differentiate: $\dfrac{d}{dx}\dfrac{e^{x}-1}{x} = \dfrac{xe^{x}-(e^{x}-1)}{x^{2}}$ …"

What has gone wrong?

Example 5.20

Once, and then twice

Evaluate

(a) $\displaystyle\lim_{x\to0}\frac{e^{x}-1}{x}$ and

(b) $\displaystyle\lim_{x\to0}\frac{e^{x}-1-x}{x^{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.

Find $$ \lim_{x\to0}\frac{e^{2x}-1-2x}{x^{2}}\,. $$

5

Check the form first

Differentiate top and bottom of $\dfrac{x^{2}+3x}{2x+1}$ and put $x=1{:}$ you get $\tfrac52.$ The limit is $\tfrac43.$ Where did it go wrong?

L'Hôpital's rule has a condition, and the condition is the content: the form must be indeterminate. The second named misuse of the rule is to forget that.

Guess first. The next question is the example after it. Do the one check before you choose.

Check yourself

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

A student computes $$\lim_{x\to 1}\frac{x^{2}+3x}{2x+1}$$ by l'Hôpital: differentiating top and bottom gives $\dfrac{2x+3}{2}$, which at $x = 1$ is $\dfrac{5}{2}$.

The true value is $\dfrac{4}{3}$. What went wrong?

Example 5.23

A rule that fails silently

A student evaluates $\displaystyle\lim_{x\to1}\frac{x^{2}+3x}{2x+1}$ by differentiating top and bottom, obtaining $(2x+3)/2,$ which at $x=1$ is $\tfrac52.$ The true value is $\tfrac43.$ What went wrong?

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

Everything in this lecture now collapses into one procedure.

The Method at work, once for each of its first three steps. The example is the app's own, not one of the notes' numbered examples.

Example

Method 5.24 on three limits

Find, or show that there is none:

(a) $\displaystyle\lim_{x\to2}\frac{x^{2}+1}{x+3};$

(b) $\displaystyle\lim_{x\to1}\frac{x+2}{x-1};$

(c) $\displaystyle\lim_{x\to0}\frac{\ln(1+2x)}{x}.$

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

6

Addition: limits as $x\to\infty$

What is $\sqrt{4x^{2}+3x}-2x$ close to when $x$ is a million?

This section is not in the lecture notes. It is added here because every exam of the course has a limit as $x\to\infty,$ and the notes compute none. It uses nothing new: Definition 5.18 already names the form $\tfrac{\infty}{\infty},$ and Watch out 5.10 says what $f(x)\to\infty$ means.

$\lim_{x\to\infty}f(x)=L$ means that $f(x)$ can be made as close to $L$ as we please by taking $x$ large enough. Two facts do most of the work: $1/x\to0,$ and so $c/x^{k}\to0$ for every constant $c$ and every $k>0;$ and the limit rules of Fact 3.4 hold as $x\to\infty$ just as they do as $x\to a.$

Leading terms

For large $x$ a polynomial is dominated by its leading term. So divide numerator and denominator by the highest power of $x$ in the denominator: every other term becomes a constant over a power of $x,$ and tends to $0.$

Example

A quotient of polynomials

Find $\displaystyle\lim_{x\to\infty}\frac{3x^{2}-5x+1}{6x^{2}+x-4}.$

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

The same division settles every quotient of polynomials. If the degrees are equal, the limit is the ratio of the leading coefficients. If the numerator has the lower degree, the limit is $0.$ If it has the higher degree, the quotient grows past every bound in size: there is no limit, and one writes $\to\infty$ or $\to-\infty$ to say how it fails.

A difference with a root: the conjugate

A difference such as $\sqrt{4x^{2}+3x}-2x$ is of the form $\infty-\infty,$ which is just as indeterminate as $\tfrac00{:}$ the two parts grow, and how their difference behaves depends on how fast each grows. The way in is to multiply and divide by the conjugate $\sqrt{4x^{2}+3x}+2x,$ because $$ \bigl(\sqrt{A}-B\bigr)\bigl(\sqrt{A}+B\bigr)=A-B^{2} $$ has no root left in it.

Example

A root minus a line: the conjugate

Find $\displaystyle\lim_{x\to\infty}\Bigl(\sqrt{4x^{2}+3x}-2x\Bigr).$

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

Two remarks that exam solutions are expected to make.

Why $x>0$ matters. The step $x=\sqrt{x^{2}}$ is true only for $x\ge0;$ for negative $x,$ $\sqrt{x^{2}}=-x.$ As $x\to\infty$ we may take $x>0,$ and the solution should say so.

Not every difference has a limit. If the root and the other term grow at different rates, the larger one wins. For example, for $x>0$ $$ x-\sqrt{4x^{2}+x}=x\Bigl(1-\sqrt{4+\tfrac1x}\Bigr)\,, $$ where the bracket tends to $1-2=-1.$ So the expression tends to $-\infty{:}$ there is no limit (Watch out 5.10).

Check yourself

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

Find $\displaystyle\lim_{x\to\infty}\Bigl(x-\sqrt{x^{2}+4x}\Bigr).$

What you should take away

  • Taylor's formula turns $\approx$ into $=$: $f(x) = p_{n}(x) + R_{n+1}(x)$ with $R_{n+1}(x) = f^{(n+1)}(z)(x-a)^{n+1}/(n+1)!$ for some $z$ between $a$ and $x.$ The remainder is the next term with the derivative taken at an unknown point.
  • “For some $z$” is an existence claim, not a universal one — and not knowing $z$ costs nothing: bounding $|f^{(n+1)}|$ by $M$ gives $|R_{n+1}(x)|\le M|x-a|^{n+1}/(n+1)!.$ Errors die for two reasons, the factorial and the power.
  • The limit at $a$ exists exactly when both one-sided limits exist and agree. $\infty$ is not a number: $f\to\infty$ names a way of failing. A limit never looks at $f(a).$
  • Continuous at $a$ means $\lim_{x\to a}f(x)=f(a)$ — three conditions. Failure is removable when the limit exists and the value is wrong, irremovable when the limit does not exist.
  • Continuity is the licence to substitute, and almost everything is continuous where defined. So the only limits needing thought are the ones where substitution gives $\tfrac00.$
  • l'Hôpital: for $\tfrac00$ or $\tfrac{\infty}{\infty},$ $\lim f/g = \lim f'/g'$ — a fraction of derivatives, never the derivative of a fraction, and void unless the form is indeterminate. It fails silently when misapplied, which is why the check comes first.

Think further

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

  1. Discussion question 1 — what z is

    In Taylor's formula, what is $z?$

    (A) a number you can compute from $f,$ $n$ and $x;$

    (B) any number between $a$ and $x$ — the formula holds for all of them;

    (C) a number that exists but is generally unknown;

    (D) the point where the approximation is exact.

    One way to think about it

    (C). Taylor's formula is an existence statement (Watch out 5.2): some $z$ between $a$ and $x$ makes it true, and the theorem does not say which. (A) reads it as a formula; $z$ depends on $f,$ $n$ and $x,$ but there is no expression for it. (B) is refuted by Example 5.3: for $f(x)=x^{3}$ with $a=0$ and $n=1$ only $z=x/3$ works. (D) mixes up the point where the derivative in the remainder is taken with a point where $f$ and $p_{n}$ agree; they agree at $a.$ Not knowing $z$ costs nothing, because Fact 5.4 only needs a bound $M$ that holds wherever $z$ is.

  2. Discussion question 2 — one more term for √25.01

    In Example 5.6, how would the bound change if you used $n=2$ instead of $n=1?$ Which of the two factors in (5.2) does the extra term improve?

    One way to think about it

    With $n=2$ the remainder contains $f'''(t)=\tfrac38(25+t)^{-5/2},$ largest at $t=0{:}$ $M=\tfrac38\cdot25^{-5/2}=\tfrac{3}{25\,000}.$ Then $$ \begin{aligned} |R_{3}(0.01)|&\le\frac{M}{3!}\,(0.01)^{3}\\ &=\frac{1}{50\,000}\cdot10^{-6}=2\cdot10^{-11}\,, \end{aligned} $$ against $10^{-7}$ for $n=1.$ (The approximation itself becomes $p_{2}(0.01)=5.001-10^{-7}=5.0009999.$)

    The extra term improves both factors of (5.2): the factorial grows from $2!$ to $3!,$ a gain of a factor $3,$ and the power goes from $(0.01)^{2}$ to $(0.01)^{3},$ a gain of a factor $100.$ Here the power does most of the work, because $|x-a|=0.01$ is small; far from the centre it would be the factorial alone that helps, and not by much. (The new $M$ is also smaller than $\tfrac1{500}.$)

  3. Discussion question 3 — two right verdicts, one right reason

    Does $\lim_{x\to0}1/x$ exist?

    (A) yes, it is $\infty;$

    (B) yes, it is $0;$

    (C) no, because $1/x$ is undefined at $0;$

    (D) no, because the one-sided limits differ.

    Two of these reach a correct verdict. Why is only one of them right?

    One way to think about it

    (C) and (D) both say “no”. Only (D) gives a reason that is true: by Fact 5.8 the limit fails because the one-sided limits, $-\infty$ and $+\infty,$ differ (and neither is a number). The reason in (C) is false in general: $(e^{x}-1)/x$ is undefined at $0$ too, and its limit is $1$ (Example 5.11, Watch out 5.12). (A) treats $\infty$ as a value (Watch out 5.10), and (B) gives the limit of $1/x$ as $x\to\infty.$

  4. Discussion question 4 — two irremovable discontinuities

    Give a function with an irremovable discontinuity at $0$ whose one-sided limits both exist. Then give one whose one-sided limits do not.

    One way to think about it

    A jump: $f(x)=0$ for $x<0$ and $f(x)=1$ for $x\ge0.$ The left-hand limit is $0$ and the right-hand limit is $1.$ Both exist, they differ, so there is no limit (Fact 5.8) and no value of $f(0)$ can repair it.

    For the second, let $g(x)=1/x$ for $x\ne0$ and $g(0)=0.$ Now neither one-sided limit exists: $g(x)\to+\infty$ from the right and $g(x)\to-\infty$ from the left. ($1/x^{2},$ with any value at $0,$ would do as well.)

  5. Discussion question 5 — the misread word

    A student differentiates $(e^{x}-1)/x$ using the quotient rule and calls it l'Hôpital. Which word in the statement of the rule did they misread?

    One way to think about it

    The rule differentiates numerator and denominator separately — the word in step 3 of Method 5.24. In (5.5) the primes stand on $f$ and on $g,$ one each: a fraction of derivatives, $f'/g',$ never the derivative of the fraction $f/g$ (Watch out 5.21). Done correctly, $\dfrac{e^{x}-1}{x}$ gives $\dfrac{e^{x}}{1}\to1.$

  6. Discussion question 6 — l'Hôpital and the linear approximation

    Evaluate $\displaystyle\lim_{x\to0}\frac{\ln(1+x)}{x}$ twice: once by l'Hôpital, and once using the linear approximation of Example 4.18. Why do the two agree?

    One way to think about it

    By l'Hôpital: the form is $\tfrac00,$ and $\dfrac{1/(1+x)}{1}\to1.$ By the linear approximation $\ln(1+x)\approx x$ of Example 4.18 the quotient is close to $\dfrac{x}{x}=1.$ Both give $1.$

    They agree because they are the same idea. The why of Fact 5.19 replaces each of $f$ and $g$ near $a$ by its tangent, and the tangent is the linear approximation: here $\ln(1+x)\approx0+1\cdot x$ and $x=0+1\cdot x.$ The ratio of the two slopes, $\tfrac11,$ is $f'(0)/g'(0).$

  7. Discussion question 7 — why substitution comes first

    Why does Recipe 5.24 put substitution first, rather than last?

    One way to think about it

    Because it settles most limits at once: wherever the function is continuous the limit is the value (Fact 5.17), and almost everything is continuous where defined. And because substituting is the check that the later steps need. l'Hôpital's rule is void unless the form is indeterminate (Watch out 5.22); applied to $\tfrac43$ it returns $\tfrac52$ without complaint (Example 5.23). Put last, substitution would come after the only step that can go silently wrong.