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, so the domain is found by solving an inequality:

  • ln⁡(x−2)\displaystyle \ln(x-2): x−2>0\displaystyle x-2>0, that is x>2\displaystyle x>2.
  • ln⁡(x2−9)\displaystyle \ln(x^2-9): x2−9>0\displaystyle x^2-9>0, that is x<−3\displaystyle x<-3 or x>3\displaystyle x>3.
  • ln⁡(4−x2)\displaystyle \ln(4-x^2): 4−x2>0\displaystyle 4-x^2>0, that is −2<x<2\displaystyle -2<x<2.
  • In a quotient, the denominator is not 0: 1ln⁡x\displaystyle \frac{1}{\ln x} needs x>0\displaystyle x>0 and ln⁡x≠0\displaystyle \ln x\neq0, that is x>0\displaystyle x>0 and x≠1\displaystyle x\neq1.
A vertical asymptote

As f(x)\displaystyle f(x) comes close to 0, ln⁡f(x)\displaystyle \ln f(x) falls without bound. So ln⁡f(x)\displaystyle \ln f(x) has a vertical asymptote at each edge of the domain where f(x)=0\displaystyle {f(x)}={0}:

  • ln⁡x\displaystyle \ln x: x=0\displaystyle {x}={0}; ln⁡(x−2)\displaystyle \ln(x-2): x=2\displaystyle {x}={2}.
  • ln⁡(x2−9)\displaystyle \ln(x^2-9) has two vertical asymptotes: x=−3\displaystyle {x}={-3} and x=3\displaystyle {x}={3}.
f(x)=ln⁡(x2−9)\displaystyle f(x)=\ln(x^{2}-9)
x=−3\displaystyle x=-3
x=3\displaystyle x=3

A quotient has a vertical asymptote where its denominator is 0 and its numerator is not: in 2xln⁡x−2\displaystyle \frac{2x}{\ln x-2} the denominator is 0 where ln⁡x=2\displaystyle {\ln x}={2}, that is x=e2\displaystyle {x}={e^2}, and the numerator there is 2e2≠0\displaystyle 2e^2\neq0. So x=e2\displaystyle {x}={e^2} is a vertical asymptote.

Investigating (ln⁡x)2−2ln⁡x\displaystyle (\ln x)^2-2\ln x

The example below investigates the function f(x)=(ln⁡x)2−2ln⁡x\displaystyle {f(x)}={(\ln x)^2-2\ln x}:

  • The domain: x>0\displaystyle x>0.
  • The x-axis: ln⁡x(ln⁡x−2)=0\displaystyle {\ln x(\ln x-2)}={0}, so ln⁡x=0\displaystyle {\ln x}={0} or ln⁡x=2\displaystyle {\ln x}={2}: x=1\displaystyle {x}={1} or x=e2\displaystyle {x}={e^2}. The graph does not meet the y-axis, since x=0\displaystyle {x}={0} is not in the domain.
  • The derivative: f′(x)=2ln⁡xx−2x=2ln⁡x−2x\displaystyle {f'(x)}={\frac{2\ln x}{x}-\frac{2}{x}}={\frac{2\ln x-2}{x}}, and f′(x)=0\displaystyle {f'(x)}={0} where ln⁡x=1\displaystyle {\ln x}={1}, that is x=e\displaystyle {x}={e}.
  • The denominator x\displaystyle x is positive in the domain, so the sign of f′\displaystyle f' is the sign of 2ln⁡x−2\displaystyle 2\ln x-2: decreasing where 0<x<e\displaystyle 0<x<e, increasing where x>e\displaystyle x>e.
  • A minimum point: f(e)=1−2=−1\displaystyle {f(e)}={1-2}={-1}, that is (e,−1)\displaystyle (e,-1).
  • Positive where 0<x<1\displaystyle 0<x<1 and where x>e2\displaystyle x>e^2, negative where 1<x<e2\displaystyle 1<x<e^2.
  • As x\displaystyle x comes close to 0, ln⁡x\displaystyle \ln x falls without bound and f(x)\displaystyle f(x) rises without bound: x=0\displaystyle {x}={0} is a vertical asymptote.
f(x)=(ln⁡x)2−2ln⁡x\displaystyle f(x)=(\ln x)^{2}-2\ln x
x=0\displaystyle x=0
M=(2.718,−1)\displaystyle M=(2.718,-1)
An even function and an odd function

An even function satisfies f(−x)=f(x)\displaystyle {f(-x)}={f(x)} for every x\displaystyle x in its domain, and its graph is symmetric about the y-axis. An odd function satisfies f(−x)=−f(x)\displaystyle {f(-x)}={-f(x)}, and its graph is symmetric about the origin.

The proof below shows that f(x)=ln⁡(x2−9)\displaystyle {f(x)}={\ln(x^2-9)} is even: its domain, x<−3\displaystyle x<-3 or x>3\displaystyle x>3, is symmetric about 0, and for every x\displaystyle x in it

f(−x)=ln⁡((−x)2−9)=ln⁡(x2−9)=f(x)f(-x)=\ln\left((-x)^2-9\right)=\ln(x^2-9)=f(x)
A parameter from the slope of a tangent

The function f(x)=2ln⁡(x2−a)\displaystyle {f(x)}={2\ln(x^2-a)} is given, a\displaystyle a a positive parameter.
The slope of the tangent to the graph at the point where x=5\displaystyle {x}={5} is 1.25.

The example below finds a\displaystyle a and investigates the function:

  • f′(x)=2⋅2xx2−a=4xx2−a\displaystyle {f'(x)}={\frac{2\cdot2x}{x^2-a}}={\frac{4x}{x^2-a}}, so f′(5)=2025−a\displaystyle {f'(5)}={\frac{20}{25-a}}.
  • 2025−a=1.25\displaystyle {\frac{20}{25-a}}={1.25}: 25−a=16\displaystyle {25-a}={16}, so a=9\displaystyle {a}={9} and f(x)=2ln⁡(x2−9)\displaystyle {f(x)}={2\ln(x^2-9)}.
  • The domain: x<−3\displaystyle x<-3 or x>3\displaystyle x>3; the vertical asymptotes: x=−3\displaystyle {x}={-3} and x=3\displaystyle {x}={3}.
  • f′(x)=4xx2−9\displaystyle {f'(x)}={\frac{4x}{x^2-9}}: where x>3\displaystyle x>3, f′(x)>0\displaystyle f'(x)>0 – increasing; where x<−3\displaystyle x<-3, f′(x)<0\displaystyle f'(x)<0 – decreasing. There are no extremum points.
  • The x-axis: x2−9=1\displaystyle {x^2-9}={1}, so x=10\displaystyle {x}={\sqrt{10}} or x=−10\displaystyle {x}={-\sqrt{10}}. The graph does not meet the y-axis.
  • The function is even, like ln⁡(x2−9)\displaystyle \ln(x^2-9).
  • The function g(x)=f(x−4)\displaystyle {g(x)}={f(x-4)} is f\displaystyle f shifted 4 to the right: its asymptotes are x=1\displaystyle {x}={1} and x=7\displaystyle {x}={7}, and its graph is symmetric about the line x=4\displaystyle {x}={4} – not about the y-axis. g\displaystyle g is neither even nor odd.
f(x)=2ln⁡(x2−9)\displaystyle f(x)=2\ln(x^{2}-9)
x=−3\displaystyle x=-3
x=3\displaystyle x=3
Exercise 1

Find the domain of each function: write an inequality and solve it.

a

f(x)=ln⁡(x+4)\displaystyle {f(x)}={\ln(x+4)}

b

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

c

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

Exercise 2

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

a

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

f(x)=ln⁡xx\displaystyle f(x)=\frac{\ln x}{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

    Find the interval of increase: solve the inequality f′(x)>0\displaystyle f'(x)>0.

    c

    Mark on the graph the extremum point and the point where it meets the x-axis.

    f(x)=ln⁡xx\displaystyle f(x)=\frac{\ln x}{x}

    d

    Write the coordinates of the extremum point and its kind, and the equation of the vertical asymptote.

    Exercise 3

    The function f(x)=ln⁡(x2+a)\displaystyle {f(x)}={\ln(x^2+a)} is given, a\displaystyle a a positive parameter.
    The slope of the tangent to the graph at the point where x=1\displaystyle {x}={1} is 1.

    a

    Find a\displaystyle a.

    b

    Put in the a\displaystyle a you found.
    Mark the extremum point on the graph.

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

    c

    Prove that f\displaystyle f is even, and find its domain.

    Exercise 4

    The function f(x)=2xln⁡x−a\displaystyle {f(x)}={\frac{2x}{\ln x-a}} is given, a\displaystyle a a positive parameter.
    The line y=2x\displaystyle {y}={2x} meets the graph of f\displaystyle f at the point where x=e3\displaystyle {x}={e^3}.

    a

    Find a\displaystyle a.

    b

    Put in a=2\displaystyle {a}={2}.
    Find the domain of f\displaystyle f and the equation of its vertical asymptote.

    c

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

    f(x)=2xln⁡x−2\displaystyle f(x)=\frac{2x}{\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

      d

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

      e

      Mark the extremum point on the graph.

      f(x)=2xln⁡x−2\displaystyle f(x)=\frac{2x}{\ln x-2}
      x=e2\displaystyle x=e^{2}