Skip to content

Investigating logarithmic functions

Investigating logarithmic functions

The domain of ln⁡f(x)\displaystyle \ln f(x)

ln⁡f(x)\displaystyle \ln f(x) is defined only where f(x)>0\displaystyle f(x)>0. At an end of the domain where f(x)\displaystyle f(x) comes close to 0, ln⁡f(x)\displaystyle \ln f(x) falls to −∞\displaystyle -\infty, so there is a vertical asymptote there.

For example, f(x)=ln⁡(x2−4x)\displaystyle {f(x)}={\ln(x^2-4x)}:

  • x2−4x>0\displaystyle x^2-4x>0 where x<0\displaystyle x<0 or x>4\displaystyle x>4 – this is the domain;
  • as x\displaystyle x comes close to 0 from the left or to 4 from the right, x2−4x\displaystyle x^2-4x comes close to 0 and f(x)\displaystyle f(x) falls to −∞\displaystyle -\infty;
  • the vertical asymptotes: x=0\displaystyle {x}={0} and x=4\displaystyle {x}={4}.
f(x)=ln⁡(x2−4x)\displaystyle f(x)=\ln(x^{2}-4x)
x=0\displaystyle x=0
x=4\displaystyle x=4
ln⁡x\displaystyle \ln x grows more slowly than any power

ln⁡x\displaystyle \ln x tends to infinity, but more slowly than any positive power of x\displaystyle x:

x\displaystyle x10\displaystyle 10100\displaystyle 1001000\displaystyle 1000106\displaystyle 10^6
ln⁡xx\displaystyle \frac{\ln x}{x}0.23\displaystyle 0.230.046\displaystyle 0.0460.0069\displaystyle 0.00690.000014\displaystyle 0.000014
  • As x→∞\displaystyle x\to\infty: ln⁡xx→0\displaystyle \frac{\ln x}{x}\to0, and so do ln⁡xxn\displaystyle \frac{\ln x}{x^n} and ln⁡xx\displaystyle \frac{\ln x}{\sqrt{x}}.
  • As x→0+\displaystyle x\to0^+: xln⁡x→0\displaystyle x\ln x\to0 – the factor x\displaystyle x “beats” ln⁡x\displaystyle \ln x, which falls to −∞\displaystyle -\infty.

These facts give horizontal asymptotes and the behaviour of a graph at an end of its domain.

Investigating ln⁡xx\displaystyle \frac{\ln x}{x}

The example below investigates f(x)=ln⁡xx\displaystyle {f(x)}={\frac{\ln x}{x}}, the second derivative included:

  • The domain: x>0\displaystyle x>0.
  • The axes: ln⁡x=0\displaystyle {\ln x}={0} where x=1\displaystyle {x}={1}, that is (1,0)\displaystyle (1,0). The graph does not meet the y-axis.
  • Asymptotes: as x→0+\displaystyle x\to0^+, f(x)→−∞\displaystyle f(x)\to-\infty – the vertical asymptote x=0\displaystyle {x}={0}; as x→∞\displaystyle x\to\infty, f(x)→0\displaystyle f(x)\to0 – the horizontal asymptote y=0\displaystyle {y}={0}.
  • f′(x)=1x⋅x−ln⁡xx2=1−ln⁡xx2\displaystyle {f'(x)}={\frac{\frac{1}{x}\cdot x-\ln x}{x^2}}={\frac{1-\ln x}{x^2}}, and f′(x)=0\displaystyle {f'(x)}={0} where ln⁡x=1\displaystyle {\ln x}={1}, that is x=e\displaystyle {x}={e}.
  • f\displaystyle f increases where 0<x<e\displaystyle 0<x<e and decreases where x>e\displaystyle x>e: a maximum (e,1e)≈(2.72,0.37)\displaystyle \left(e,\frac{1}{e}\right)\approx(2.72,0.37).
  • f′′(x)=−1x⋅x2−(1−ln⁡x)⋅2xx4=2ln⁡x−3x3\displaystyle {f''(x)}={\frac{-\frac{1}{x}\cdot x^2-(1-\ln x)\cdot2x}{x^4}}={\frac{2\ln x-3}{x^3}}, and f′′(x)=0\displaystyle {f''(x)}={0} where ln⁡x=32\displaystyle {\ln x}={\frac{3}{2}}, that is x=e32\displaystyle {x}={e^{\frac{3}{2}}}.
f(x)=ln⁡xx\displaystyle f(x)=\frac{\ln x}{x}
x=0\displaystyle x=0
M=(2.718,0.368)\displaystyle M=(2.718,0.368)
P=(4.482,0.335)\displaystyle P=(4.482,0.335)
  • Where 0<x<e32\displaystyle 0<x<e^{\frac{3}{2}}, f′′(x)<0\displaystyle f''(x)<0 – the function is concave down; where x>e32\displaystyle x>e^{\frac{3}{2}}, f′′(x)>0\displaystyle f''(x)>0 – it is concave up.
  • An inflection point: (e32,32e−32)≈(4.48,0.33)\displaystyle \left(e^{\frac{3}{2}},\frac{3}{2}e^{-\frac{3}{2}}\right)\approx(4.48,0.33).
Investigating xln⁡x\displaystyle x\ln x

The example below investigates f(x)=xln⁡x\displaystyle {f(x)}={x\ln x}:

  • The domain: x>0\displaystyle x>0. As x→0+\displaystyle x\to0^+, xln⁡x→0\displaystyle x\ln x\to0: the graph starts next to the origin, with no vertical asymptote.
  • The x-axis: xln⁡x=0\displaystyle {x\ln x}={0} where x=1\displaystyle {x}={1} (x=0\displaystyle {x}={0} is not in the domain).
  • f′(x)=ln⁡x+1\displaystyle {f'(x)}={\ln x+1}, and f′(x)=0\displaystyle {f'(x)}={0} where ln⁡x=−1\displaystyle {\ln x}={-1}, that is x=e−1\displaystyle {x}={e^{-1}}.
  • f\displaystyle f decreases where 0<x<1e\displaystyle 0<x<\frac{1}{e} and increases where x>1e\displaystyle x>\frac{1}{e}: a minimum (1e,−1e)≈(0.37,−0.37)\displaystyle \left(\frac{1}{e},-\frac{1}{e}\right)\approx(0.37,-0.37).
  • f′′(x)=1x>0\displaystyle {f''(x)}={\frac{1}{x}>0} throughout the domain: the function is concave up and has no inflection points.
f(x)=xln⁡x\displaystyle f(x)=x\ln x
M=(0.368,−0.368)\displaystyle M=(0.368,-0.368)
An even function: ln⁡(x2+1)\displaystyle \ln(x^2+1)

The example below investigates f(x)=ln⁡(x2+1)\displaystyle {f(x)}={\ln(x^2+1)}:

  • x2+1>0\displaystyle x^2+1>0 for every x\displaystyle x, so the domain is every x\displaystyle x and there is no vertical asymptote.
  • f(−x)=ln⁡((−x)2+1)=f(x)\displaystyle {f(-x)}={\ln((-x)^2+1)}={f(x)}: the function is even, and its graph is symmetric about the y-axis.
  • f′(x)=2xx2+1\displaystyle {f'(x)}={\frac{2x}{x^2+1}}: f\displaystyle f decreases where x<0\displaystyle x<0 and increases where x>0\displaystyle x>0, a minimum (0,0)\displaystyle (0,0).
  • f′′(x)=2(x2+1)−2x⋅2x(x2+1)2=2(1−x2)(x2+1)2\displaystyle {f''(x)}={\frac{2(x^2+1)-2x\cdot2x}{(x^2+1)^2}}={\frac{2(1-x^2)}{(x^2+1)^2}}, and f′′(x)=0\displaystyle {f''(x)}={0} where x=±1\displaystyle {x}={\pm1}.
  • Concave up where −1<x<1\displaystyle -1<x<1, concave down where x<−1\displaystyle x<-1 or x>1\displaystyle x>1.
  • Inflection points: (−1,ln⁡2)\displaystyle (-1,\ln2) and (1,ln⁡2)\displaystyle (1,\ln2).
f(x)=ln⁡(x2+1)\displaystyle f(x)=\ln(x^{2}+1)
P=(−1,0.693)\displaystyle P=(-1,0.693)
Q=(1,0.693)\displaystyle Q=(1,0.693)
Exercise 1

The function f(x)=x−ln⁡x\displaystyle {f(x)}={x-\ln x} is given.

a

Find f′(x)\displaystyle f'(x).

f(x)=x−ln⁡x\displaystyle f(x)=x-\ln x

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    b

    Solve the equation f′(x)=0\displaystyle {f'(x)}={0}.

    c

    Find f′′(x)\displaystyle f''(x).
    Explain why the function has no inflection points, and find the type of the extremum point.

    f(x)=x−ln⁡x\displaystyle f(x)=x-\ln x

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      d

      Mark the extremum point on the graph.

      f(x)=x−ln⁡x\displaystyle f(x)=x-\ln x

      Exercise 2

      The function f(x)=ln⁡(x2−4x+5)\displaystyle {f(x)}={\ln(x^2-4x+5)} is given.

      a

      Find the domain: solve the inequality.

        b

        Find f′(x)\displaystyle f'(x).

        f(x)=ln⁡(x2−4x+5)\displaystyle f(x)=\ln(x^{2}-4x+5)

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

          c

          Find f′′(x)\displaystyle f''(x), and simplify the numerator.

          f(x)=ln⁡(x2−4x+5)\displaystyle f(x)=\ln(x^{2}-4x+5)

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

            d

            Solve the equation f′′(x)=0\displaystyle {f''(x)}={0}.

            e

            Mark the extremum point and the inflection points on the graph.

            f(x)=ln⁡(x2−4x+5)\displaystyle f(x)=\ln(x^{2}-4x+5)

            Exercise 3

            The function f(x)=(ln⁡x)2\displaystyle {f(x)}={(\ln x)^2} is given, for x>0\displaystyle x>0.

            a

            Find f′(x)\displaystyle f'(x).

            f(x)=(ln⁡x)2\displaystyle f(x)=(\ln x)^{2}

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

              b

              Find f′′(x)\displaystyle f''(x).

              f(x)=(ln⁡x)2\displaystyle f(x)=(\ln x)^{2}

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                c

                Find where the function is concave up: solve the inequality f′′(x)>0\displaystyle f''(x)>0.

                  d

                  Mark the extremum point and the inflection point on the graph.

                  f(x)=(ln⁡x)2\displaystyle f(x)=(\ln x)^{2}

                  Exercise 4

                  The function f(x)=ln⁡(x2+a)\displaystyle {f(x)}={\ln(x^2+a)} is given, with a>0\displaystyle a>0 a parameter.
                  The function has an inflection point where x=3\displaystyle {x}={3}.

                  a

                  Find f′′(x)\displaystyle f''(x).

                  f(x)=ln⁡(x2+a)\displaystyle f(x)=\ln(x^{2}+a)

                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                    b

                    Find a\displaystyle a.

                    c

                    Substitute the a\displaystyle a you found, and mark both inflection points on the graph.

                    f(x)=ln⁡(x2+9)\displaystyle f(x)=\ln(x^{2}+9)