BAC MathsOffline
Progress saved to your account.Saving to your account…Offline. Progress stays on this device and uploads later.Sync did not work. It will try again.Progress on this device is not in your account.This device’s progress belongs to another account, so it is not synced.
Settings

Working draft: this text has not been reviewed yet.

4.1Logarithmic functions

The Natural Logarithm: Definition, Properties & Limits

Reading time
35 min
In the programme of
SEMTM
Contents
  1. 1The Mirror of the Exponential
  2. 2Where ln Exists
  3. 2.1Worked Example
  4. 3Algebraic Properties
  5. 3.1Worked Example
  6. 4Limits and Asymptote
  7. 4.1Two Limits From the Derivative
  8. 5Comparison of Growth
  9. 6Removing Indeterminate Forms
  10. 6.1Worked Example
  11. 7Recap

The Mirror of the Exponential

Hold the curve of exe^x up to the line y=xy = x, as if it were a mirror. What you see on the other side is a new function.

y = xeˣln xA(0 ; 1)A′(1 ; 0)
x = 1ln′(x) = 1/x = 1

ln′(x) × exp′(ln x) = 1/x × x = 1

  1. A point and its image

    Take A(a,ea)A(a, e^a) on the curve of exp⁡\exp. Its image in the line y=xy = x is A′(ea,a)A'(e^a, a): the two coordinates swap. As AA moves, A′A' draws a new curve. At a=1a = 1: A(1,e)A(1, e) and A′(e,1)A'(e, 1).

  2. The whole curve folds over

    Fold the plane along the line y=xy = x: the curve of exp⁡\exp lands exactly on the new curve, the curve of ln⁡\ln. The point (0,1)(0, 1) goes to (1,0)(1, 0), so ln⁡1=0\ln 1 = 0; the point (1,e)(1, e) goes to (e,1)(e, 1), so ln⁡e=1\ln e = 1.

  3. Only positive x

    The horizontal asymptote y=0y = 0 of exp⁡\exp folds onto the vertical line x=0x = 0. Since ey>0e^y > 0 for every real yy, the curve of ln⁡\ln lies only where x>0x > 0: ln⁡\ln is defined on ]0,+∞[]0, +\infty[, and lim⁡x→0+ln⁡x=−∞\lim_{x \to 0^+} \ln x = -\infty.

  4. The slope is 1/x

    The point A′A' goes from x=ex = e towards 00, then far to the right. The tangent to the curve of ln⁡\ln at A′(x,ln⁡x)A'(x, \ln x) has slope ln⁡′(x)=1x\ln'(x) = \frac{1}{x}: steep near 00, flatter and flatter on the right, always positive. At the image A(ln⁡x,x)A(\ln x, x) the slope of exp⁡\exp is eln⁡x=xe^{\ln x} = x: the two slopes are reciprocals of each other.

  5. Parallel to the mirror

    At x=1x = 1 both slopes equal 11. The tangent y=x−1y = x - 1 to the curve of ln⁡\ln at (1,0)(1, 0) and the tangent y=x+1y = x + 1 to the curve of exp⁡\exp at (0,1)(0, 1) are images of each other, both parallel to the mirror y=xy = x. Move xx yourself with the slider.

Definition · The natural logarithm

The function x↦1xx \mapsto \frac{1}{x} is continuous on ]0,+∞[]0, +\infty[, so it has antiderivatives on this interval. The natural logarithm, written ln⁡\ln, is the unique antiderivative of x↦1xx \mapsto \frac{1}{x} on ]0,+∞[]0, +\infty[ that vanishes at 11:

{ln⁡′(x)=1xfor all x∈]0,+∞[ln⁡(1)=0\begin{cases} \ln'(x) = \frac{1}{x} \quad \text{for all } x \in ]0, +\infty[ \\ \ln(1) = 0 \end{cases}

Theorem · ln and exp are reciprocal functions

The function ln⁡:]0,+∞[→R\ln : ]0, +\infty[ \to \mathbb{R} is the reciprocal bijection of exp⁡:R→]0,+∞[\exp : \mathbb{R} \to ]0, +\infty[. For all x∈]0,+∞[x \in ]0, +\infty[ and all y∈Ry \in \mathbb{R}:

y=ln⁡(x)  ⟺  x=ey\boxed{y = \ln(x) \iff x = e^y}

Consequently:

  • for all x∈Rx \in \mathbb{R}: ln⁡(ex)=x\ln(e^x) = x;
  • for all x∈]0,+∞[x \in ]0, +\infty[: eln⁡(x)=xe^{\ln(x)} = x;
  • in particular ln⁡(e)=ln⁡(e1)=1\ln(e) = \ln(e^1) = 1.

Quick check

Compute eln⁡5e^{\ln 5}.

Hint

Use eln⁡(x)=xe^{\ln(x)} = x with x=5>0x = 5 > 0.

Solution

5>05 > 0, so eln⁡5=5e^{\ln 5} = 5.

What is the slope of the tangent to the curve of ln⁡\ln at the point of abscissa 22?

Hint

By definition ln⁡′(x)=1x\ln'(x) = \frac{1}{x}.

Solution

ln⁡′(2)=12\ln'(2) = \frac{1}{2}.


Where ln Exists

The logarithm of a negative number, or of 00, does not exist. In every exercise this is the first thing to check.

ExpressionCondition for existenceDomainSimplified form
ln⁡(u(x))\ln(u(x))u(x)>0u(x) > 0{x∈R∣u(x)>0}\{x \in \mathbb{R} \mid u(x) > 0\}ln⁡(u(x))\ln(u(x))
ln⁡(x2)\ln(x^2)x2>0  ⟺  x≠0x^2 > 0 \iff x \neq 0R∗=R∖{0}\mathbb{R}^* = \mathbb{R} \setminus \{0\}2ln⁡∣x∣2\ln\lvert x \rvert
2ln⁡(x)2\ln(x)x>0x > 0]0,+∞[]0, +\infty[2ln⁡(x)2\ln(x)
ln⁡(a)+ln⁡(b)\ln(a) + \ln(b)a>0a > 0 and b>0b > 0intersection of the domainsln⁡(ab)\ln(ab)
ln⁡(ab)\ln(ab)ab>0ab > 0 (aa, bb of the same sign)a>0,b>0a > 0, b > 0 or a<0,b<0a < 0, b < 0ln⁡∣a∣+ln⁡∣b∣\ln\lvert a \rvert + \ln\lvert b \rvert

Method · Finding the domain of a logarithmic function

  1. Find every logarithm in the expression.
  2. Write the condition of each one: u(x)>0u(x) > 0 for ln⁡(u(x))\ln(u(x)), u(x)≠0u(x) \neq 0 for ln⁡∣u(x)∣\ln\lvert u(x) \rvert.
  3. Solve each condition; the domain is the intersection of the solution sets.

Worked Example

  1. Compare f(x)=ln⁡(x−2)+ln⁡(x+1)f(x) = \ln(x - 2) + \ln(x + 1) and g(x)=ln⁡[(x−2)(x+1)]g(x) = \ln[(x - 2)(x + 1)].

  2. For ff, both arguments must be positive:

    {x−2>0x+1>0  ⟺  x>2Df=]2,+∞[\begin{gathered} \begin{cases} x - 2 > 0 \\ x + 1 > 0 \end{cases} \iff x > 2 \\ D_f = \htmlClass{hl}{]2, +\infty[} \end{gathered}
  3. For gg, only the product must be positive: x−2x - 2 and x+1x + 1 of the same sign.

    (x−2)(x+1)>0  ⟺  x<−1 or x>2Dg=]−∞,−1[∪]2,+∞[\begin{gathered} \begin{aligned} & (x - 2)(x + 1) > 0 \\ \iff {} & x < -1 \text{ or } x > 2 \end{aligned} \\ D_g = \htmlClass{hl}{]-\infty, -1[ \cup ]2, +\infty[} \end{gathered}
  4. So f(x)=g(x)f(x) = g(x) only on ]2,+∞[]2, +\infty[. On ]−∞,−1[]-\infty, -1[ the function gg exists and ff does not.

Pitfall · ln of x squared is not 2 ln x

ln⁡(x2)\ln(x^2) exists for every x≠0x \neq 0, but 2ln⁡x2\ln x only for x>0x > 0. On R∗\mathbb{R}^* the right form is ln⁡(x2)=2ln⁡∣x∣\ln(x^2) = 2\ln\lvert x \rvert: for x=−1x = -1, ln⁡((−1)2)=ln⁡1=0\ln((-1)^2) = \ln 1 = 0, while 2ln⁡(−1)2\ln(-1) does not exist.

Quick check

What is the domain of x↦ln⁡(x2)x \mapsto \ln(x^2)?

Hint

Solve x2>0x^2 > 0.

Solution

x2>0  ⟺  x≠0x^2 > 0 \iff x \neq 0, so the domain is R∗=R∖{0}\mathbb{R}^* = \mathbb{R} \setminus \{0\}.


Algebraic Properties

The logarithm turns products into sums: the rules of the exponential, read in the mirror.

Theorem · Rules of calculation

For all real numbers a>0a > 0 and b>0b > 0 and every integer n∈Zn \in \mathbb{Z}:

PropertyFormula
Fundamental identityln⁡(a⋅b)=ln⁡a+ln⁡b\ln(a \cdot b) = \ln a + \ln b
Reciprocalln⁡(1a)=−ln⁡a\ln\left(\frac{1}{a}\right) = -\ln a
Quotientln⁡(ab)=ln⁡a−ln⁡b\ln\left(\frac{a}{b}\right) = \ln a - \ln b
Powerln⁡(an)=nln⁡a\ln(a^n) = n \ln a
Square rootln⁡(a)=12ln⁡a\ln(\sqrt{a}) = \frac{1}{2} \ln a
Reference valuesln⁡(1)=0\ln(1) = 0 and ln⁡(e)=1\ln(e) = 1

Method · Simplifying a logarithmic expression

  1. Check that every argument is positive.
  2. Write each logarithm with the rules: a product becomes a sum, a quotient a difference, a power a factor.
  3. Replace ln⁡1\ln 1 by 00 and ln⁡e\ln e by 11, then collect the terms.

Worked Example

  1. Simplify:

    B=ln⁡(e)+ln⁡(e3)−ln⁡(1e)B = \ln\left(\sqrt{e}\right) + \ln\left(e^3\right) - \ln\left(\frac{1}{e}\right)
  2. Square root, power and reciprocal rules:

    B=12ln⁡e+3ln⁡e−(−ln⁡e)B = \htmlClass{hl}{\frac{1}{2}\ln e} + \htmlClass{hl}{3\ln e} - \left(\htmlClass{hl}{-\ln e}\right)
  3. With ln⁡e=1\ln e = 1:

    B=12+3+1=92B = \frac{1}{2} + 3 + 1 = \htmlClass{hl-3}{\frac{9}{2}}

Pitfall · The logarithm of a sum is not a sum

In general ln⁡(a+b)≠ln⁡a+ln⁡b\ln(a + b) \neq \ln a + \ln b: for a=b=1a = b = 1 the left side is ln⁡2\ln 2 and the right side is 00. The rule is for a product: ln⁡(ab)=ln⁡a+ln⁡b\ln(ab) = \ln a + \ln b.

Quick check

Find the number kk such that ln⁡8=kln⁡2\ln 8 = k \ln 2.

Hint

8=238 = 2^3.

Solution

ln⁡8=ln⁡(23)=3ln⁡2\ln 8 = \ln(2^3) = 3\ln 2, so k=3k = 3.

For a>0a > 0 and b>0b > 0, which expression equals ln⁡(a+b)\ln(a + b) in general?

Solution

None of them: with a=b=1a = b = 1, ln⁡(a+b)=ln⁡2≠0\ln(a + b) = \ln 2 \neq 0, while ln⁡a+ln⁡b=0\ln a + \ln b = 0 and ln⁡a⋅ln⁡b=0\ln a \cdot \ln b = 0.


Limits and Asymptote

The mirror already showed it: the asymptote y=0y = 0 of the exponential becomes the vertical asymptote of ln⁡\ln.

Theorem · Limits at the ends of the domain

lim⁡x→0+ln⁡x=−∞lim⁡x→+∞ln⁡x=+∞\begin{gathered} \boxed{\lim_{x \to 0^+} \ln x = -\infty} \\ \boxed{\lim_{x \to +\infty} \ln x = +\infty} \end{gathered}

The line x=0x = 0 (the yy-axis) is a vertical asymptote to the curve of ln⁡\ln.

The curve of ln⁡\ln: it plunges along the dashed line x=0x = 0, crosses the xx-axis at (1,0)(1, 0) and rises without bound, slowly.

Two Limits From the Derivative

The quotient ln⁡xx−1\frac{\ln x}{x - 1} is not defined at 11. Bring xx close to 11.

x → 1+
xf(x) ≈
20.693147
1.10.953102
1.010.995033
1.0010.9995
1.00010.99995
1.000010.999995

The table brings xx to 11 from the right: the quotient tends to 11. The curve shows the same on the left of 11.

Theorem · Fundamental limits

lim⁡x→1ln⁡xx−1=1lim⁡h→0ln⁡(1+h)h=1\begin{gathered} \boxed{\lim_{x \to 1} \frac{\ln x}{x - 1} = 1} \\ \boxed{\lim_{h \to 0} \frac{\ln(1 + h)}{h} = 1} \end{gathered}
Proof

The first quotient is the rate of change of ln⁡\ln between 11 and xx, since ln⁡1=0\ln 1 = 0. Its limit is the derivative at 11: ln⁡′(1)=11=1\ln'(1) = \frac{1}{1} = 1.

For the second, set x=1+hx = 1 + h: when h→0h \to 0, x→1x \to 1, and ln⁡(1+h)h=ln⁡xx−1→1\frac{\ln(1 + h)}{h} = \frac{\ln x}{x - 1} \to 1.

Quick check

Compute lim⁡x→0ln⁡(1+3x)x\lim_{x \to 0} \frac{\ln(1 + 3x)}{x}.

Hint

Write the quotient as 3⋅ln⁡(1+3x)3x3 \cdot \frac{\ln(1 + 3x)}{3x}.

Solution

With h=3x→0h = 3x \to 0: ln⁡(1+3x)x=3⋅ln⁡(1+h)h→3×1=3\frac{\ln(1 + 3x)}{x} = 3 \cdot \frac{\ln(1 + h)}{h} \to 3 \times 1 = 3.


Comparison of Growth

At infinity every power xnx^n (n≥1n \ge 1) grows much faster than ln⁡x\ln x. Near 00, the factor xnx^n wins and drags the product xnln⁡xx^n \ln x to 00.

Theorem · Reference growth limits

For every integer n∈N∗n \in \mathbb{N}^*:

lim⁡x→+∞ln⁡xx=0lim⁡x→+∞ln⁡xxn=0\begin{gathered} \boxed{\lim_{x \to +\infty} \frac{\ln x}{x} = 0} \\ \boxed{\lim_{x \to +\infty} \frac{\ln x}{x^n} = 0} \end{gathered}
lim⁡x→0+xln⁡x=0lim⁡x→0+xnln⁡x=0\begin{gathered} \boxed{\lim_{x \to 0^+} x \ln x = 0} \\ \boxed{\lim_{x \to 0^+} x^n \ln x = 0} \end{gathered}
Proof · Proof that ln x over x tends to 0 at plus infinity

Let x=eXx = e^X. When x→+∞x \to +\infty, X=ln⁡x→+∞X = \ln x \to +\infty, and:

ln⁡xx=XeX=1eXX\frac{\ln x}{x} = \frac{X}{e^X} = \frac{1}{\frac{e^X}{X}}

By the growth theorem of the exponential, lim⁡X→+∞eXX=+∞\lim_{X \to +\infty} \frac{e^X}{X} = +\infty. Therefore:

lim⁡x→+∞ln⁡xx=lim⁡X→+∞1eXX=0\begin{aligned} & \lim_{x \to +\infty} \frac{\ln x}{x} \\ = {} & \lim_{X \to +\infty} \frac{1}{\frac{e^X}{X}} \\ = {} & 0 \end{aligned}

The curve of x↦ln⁡xxx \mapsto \frac{\ln x}{x}: it rises above the axis after x=1x = 1, then sinks back towards 00. The power xx wins.

Near 00 the product xln⁡xx \ln x is of the form 0×(−∞)0 \times (-\infty). Bring xx close to 00.

x → 0+
xf(x) ≈
10
0.1−0.230259
0.01−0.0460517
0.001−0.00690776
0.0001−0.000921034
0.00001−0.000115129

xx tends to 00 from the right: the product, negative, tends to 00.

Pitfall · Zero times infinity is not zero by itself

At 0+0^+ the product xln⁡xx \ln x has the indeterminate form 0×(−∞)0 \times (-\infty). The answer 00 comes from the growth theorem, not from the factor that tends to 00.

Quick check

Compute lim⁡x→+∞ln⁡xx2\lim_{x \to +\infty} \frac{\ln x}{x^2}.

Solution

By the growth theorem with n=2n = 2, the limit is 00.

Compute lim⁡x→0+(xln⁡x+2)\lim_{x \to 0^+} (x \ln x + 2).

Solution

xln⁡x→0x \ln x \to 0, so the limit is 0+2=20 + 2 = 2.


Removing Indeterminate Forms

Five situations come back in exam questions, and each has its own move.

Method · Which move for which form

  1. +∞−∞+\infty - \infty at +∞+\infty: factor out xx or the dominant term.
  2. ∞∞\frac{\infty}{\infty} at +∞+\infty: factor out xx, or use the growth theorems.
  3. 0×(−∞)0 \times (-\infty) at 0+0^+: expand, to make the terms xnln⁡xx^n \ln x appear.
  4. 00\frac{0}{0} when x→1x \to 1: make the quotient ln⁡uu−1\frac{\ln u}{u - 1} appear, where u→1u \to 1.
  5. ln⁡(A(x))\ln(A(x)) with A(x)→+∞A(x) \to +\infty: factor the highest power inside the logarithm.

Worked Example

  1. +∞−∞+\infty - \infty: factor out xx. Since ln⁡xx→0\frac{\ln x}{x} \to 0:

    x−ln⁡x=x(1−ln⁡xx)→x→+∞+∞\begin{aligned} & x - \ln x \\ = {} & \htmlClass{hl}{x}\left(1 - \frac{\ln x}{x}\right) \\ \xrightarrow[x \to +\infty]{} {} & +\infty \end{aligned}
  2. ∞∞\frac{\infty}{\infty}: split the quotient.

    ln⁡x+2xx=ln⁡xx+2→x→+∞0+2=2\begin{aligned} & \frac{\ln x + 2x}{x} \\ = {} & \htmlClass{hl}{\frac{\ln x}{x}} + 2 \\ \xrightarrow[x \to +\infty]{} {} & 0 + 2 \\ = {} & 2 \end{aligned}
  3. 0×(−∞)0 \times (-\infty): expand. Each term is of the form xnln⁡xx^n \ln x.

    (x2+3x)ln⁡x=x2ln⁡x+3xln⁡x→x→0+0+0=0\begin{aligned} & (x^2 + 3x)\ln x \\ = {} & x^2 \ln x + 3x \ln x \\ \xrightarrow[x \to 0^+]{} {} & 0 + 0 = 0 \end{aligned}
  4. 00\frac{0}{0} at 11: since (2x−1)−1=2(x−1)(2x - 1) - 1 = 2(x - 1), multiply and divide by 22.

    ln⁡(2x−1)x−1=2⋅ln⁡(2x−1)(2x−1)−1→x→12×1=2\begin{aligned} & \frac{\ln(2x - 1)}{x - 1} \\ = {} & 2 \cdot \htmlClass{hl}{\frac{\ln(2x - 1)}{(2x - 1) - 1}} \\ \xrightarrow[x \to 1]{} {} & 2 \times 1 = 2 \end{aligned}
  5. ln⁡(A(x))\ln(A(x)) with A(x)→+∞A(x) \to +\infty: factor x2x^2 inside the logarithm (for x>0x > 0).

    ln⁡(x2+1)=ln⁡[x2(1+1x2)]=2ln⁡x+ln⁡(1+1x2)\begin{aligned} & \ln(x^2 + 1) \\ = {} & \ln\left[x^2\left(1 + \frac{1}{x^2}\right)\right] \\ = {} & 2\ln x + \ln\left(1 + \frac{1}{x^2}\right) \end{aligned}

Quick check

Compute lim⁡x→+∞ln⁡x+3xx\lim_{x \to +\infty} \frac{\ln x + 3x}{x}.

Solution

ln⁡x+3xx=ln⁡xx+3→0+3=3\frac{\ln x + 3x}{x} = \frac{\ln x}{x} + 3 \to 0 + 3 = 3.

Compute lim⁡x→1ln⁡(3x−2)x−1\lim_{x \to 1} \frac{\ln(3x - 2)}{x - 1}.

Hint

(3x−2)−1=3(x−1)(3x - 2) - 1 = 3(x - 1).

Solution

ln⁡(3x−2)x−1=3⋅ln⁡(3x−2)(3x−2)−1→3×1=3\frac{\ln(3x - 2)}{x - 1} = 3 \cdot \frac{\ln(3x - 2)}{(3x - 2) - 1} \to 3 \times 1 = 3.


Recap

  • ln⁡\ln is the antiderivative of 1x\frac{1}{x} on ]0,+∞[]0, +\infty[ that vanishes at 11, and the reciprocal of exp⁡\exp: y=ln⁡x  ⟺  x=eyy = \ln x \iff x = e^y. Its curve is the image of the curve of exp⁡\exp in the line y=xy = x.
  • Find the domain first: ln⁡(u(x))\ln(u(x)) needs u(x)>0u(x) > 0.
  • The function ln⁡\ln turns products into sums: ln⁡(ab)=ln⁡a+ln⁡b\ln(ab) = \ln a + \ln b.
  • Every power of xx beats ln⁡x\ln x: ln⁡xxn→0\frac{\ln x}{x^n} \to 0 at +∞+\infty and xnln⁡x→0x^n \ln x \to 0 at 0+0^+.

What is next: the decimal logarithm, equations, the derivative of ln⁡u\ln u and the study of ln⁡\ln.

Mark it when you have worked through the lesson: it counts in your chapter progress.

A new version of the site is ready.

Progress saved to your account.Saving to your account…Offline. Progress stays on this device and uploads later.Sync did not work. It will try again.Progress on this device is not in your account.This device’s progress belongs to another account, so it is not synced.
Settings