Unit 2 Topic 2.11

Logarithmic Functions

see every function move

4 min readfreeNot practiced

A logarithmic function is the inverse of an exponential function, so its graph is an exponential graph reflected across y=xy = x. This page lists what that graph looks like, how to describe its behavior near the asymptote and at the far right in limit notation, and how its rate of change behaves.

The basic shape

A logarithmic function has the form f(x)=alogb⁡xf(x) = a\log_b x, with a≠0a \ne 0, b>0b > 0 and b≠1b \ne 1. Take a>0a > 0 and b>1b > 1, as in log2⁡x\log_2 x, ln⁡x\ln x or 3log⁡x3\log x:

  • Domain x>0x > 0: a logarithm needs a positive input. Range: all real numbers.
  • Vertical asymptote x=0x = 0: limx→0+f(x)=−∞\lim_{x \to 0^+} f(x) = -\infty.
  • End behavior: limx→∞f(x)=∞\lim_{x \to \infty} f(x) = \infty. The growth is slow, but there is no ceiling.
  • Always increasing and always concave down, so no local maximum, no minimum and no point of inflection.
  • It crosses the xx-axis at (1,0)(1, 0), because logb⁡1=0\log_b 1 = 0, and passes through (b,a)(b, a).

If 0<b<10 < b < 1, or if a<0a < 0, the graph is reflected: it decreases instead. The domain and asymptote do not change.

y=bxy = b^x (b>1b > 1)y=logb⁡xy = \log_b x (b>1b > 1)
Asymptotelimx→−∞bx=0\lim_{x \to -\infty} b^x = 0limx→0+logb⁡x\lim_{x \to 0^+} \log_b x=−∞= -\infty
Far rightlimx→∞bx=∞\lim_{x \to \infty} b^x = \infty, fastlimx→∞logb⁡x\lim_{x \to \infty} \log_b x=∞= \infty, slowly
Concavityconcave upconcave down

Transformations move the asymptote

The input of the logarithm sets the domain. For f(x)f(x)=alogb⁡(x−h)+k= a\log_b(x - h) + k, the domain is x>hx > h and the vertical asymptote is x=hx = h. The kk moves the graph up or down but leaves the asymptote where it is.

Worked example 1. Describe h(x)=log2⁡(x+4)−1h(x) = \log_2(x + 4) - 1.

Domain: x+4>0x + 4 > 0, so x>−4x > -4. Vertical asymptote: x=−4x = -4.

Behavior near it, from the right, the only side where hh is defined: limx→−4+h(x)\lim_{x \to -4^+} h(x)=−∞= -\infty.

Zero: log2⁡(x+4)=1\log_2(x + 4) = 1, so x+4=2x + 4 = 2 and x=−2x = -2.

Write both parts of the limit: the side (−4+-4^+) and the sign (−∞-\infty). Exam readers take points for a missing sign or a limit from the wrong side.

Worked example 2. Find the domain of f(x)=ln⁡(5−x)f(x) = \ln(5 - x).

5−x>05 - x > 0, so x<5x < 5. This graph is reflected across a vertical line: the asymptote is x=5x = 5, approached from the left, limx→5−f(x)=−∞\lim_{x \to 5^-} f(x) = -\infty.

How fast a logarithmic function grows

Equal factors in the input give equal steps in the output. For g(x)=2log2⁡(x−1)g(x) = 2\log_2(x - 1), the input x−1x - 1 goes 2,4,82, 4, 8 (each time doubling) and the output goes 2,4,62, 4, 6: up 22 each time. So the input has to cover longer and longer stretches for each equal step up.

Worked example 3. Use average rates of change of f(x)=ln⁡xf(x) = \ln x on [1,2][1, 2], [2,3][2, 3] and [3,4][3, 4] to describe its concavity.

ln⁡2−ln⁡11≈0.693\frac{\ln 2 - \ln 1}{1} \approx 0.693, ln⁡3−ln⁡21≈0.405\frac{\ln 3 - \ln 2}{1} \approx 0.405, ln⁡4−ln⁡31≈0.288\frac{\ln 4 - \ln 3}{1} \approx 0.288.

These are slopes of secant lines over equal-length intervals. They are positive, so ff is increasing, and they decrease, so the rate of change of ff is decreasing: ff is concave down on [1,4][1, 4].

Keep the two statements apart: "ff is increasing" is about the outputs, and "the rate of change of ff is decreasing" is about the slopes.

With a calculator

When a logarithm is mixed with other terms, as in p(x)=4ln⁡(x+1)−xp(x) = 4\ln(x + 1) - x, there may be no algebra route. Graph it, use the zero, intersect and maximum features, and look at a wide window: pp rises and then falls, so an equation such as p(x)=1p(x) = 1 has two solutions, about 0.4300.430 and 7.6137.613. Keep the stored values and give each answer to three decimal places.

Spot a mistake on this page?