Educerie

Educerie · AP · Precalculus

AP Precalculus 2.11

Logarithmic Functions

What are the domain, range, shape and end behaviour of alog⁡bxa\log_b x, and how do you recognise one from a table?

What you will learn

  • Understand the domain, range and shape of a logarithmic function
  • Know how to recognise a logarithm in a table and what a horizontal shift does
  • Know how to write the vertical asymptote and end behaviour with limits

You must be able to

  1. State domain, range, direction and concavity from a and b
  2. Write limits at the asymptote and at infinity with the side
  3. Test a table for inputs proportional over equal output steps
  4. Find the domain and asymptote of a shifted logarithm
  5. Find extremes on a closed interval
  6. Match a logarithm to its graph

In the exam. Section I multiple choice, Part A and Part B: name the domain, the asymptote, a limit, the concavity, or pick the function from a graph. In Free-response 1 (calculator) a logarithmic function is a standard setting for a limit at an asymptote written in notation: students lose the point by writing the limit without the arrow or the side. Free-response 4 uses logarithmic functions in an equation.

1The graph

Figure 1 shows log⁡2x\log_2 x and log⁡1/2x\log_{1/2} x on the same axes.

Figure 1. The graphs of log base 2 of x and log base one half of x for x from one eighth to 8: both pass through (1, 0) and approach the y-axis, which is a vertical asymptote; the first rises, concave down, and the second falls, concave up 0 1 2 4 8 −3 −2 −1 0 1 2 3 y x log2 x log1/2 x (4, 2) (1, 0)
Figure 1 · log base 2 of x and log base 1 ÷ 2 of x: both pass through (1, 0), and the y-axis is a vertical asymptote

Look at the features in this order.

  • Both curves cross the level y=0y = 0 at (1,0)(1, 0), because log⁡b1=0\log_b 1 = 0 for every base.
  • The teal curve, base 22, rises. It rises quickly near the yy-axis and more slowly farther right, so it is concave down.
  • The amber curve, base 12\tfrac12, is its reflection in the xx-axis. It falls and is concave up.
  • Both approach the yy-axis steeply and never reach it. The line x=0x = 0 is a vertical asymptote.
  • The point (4,2)(4, 2) is on log⁡2x\log_2 x, because 22=42^2 = 4.

2The four cases

b>1b > 10<b<10 < b < 1
a>0a > 0increasing, concave downdecreasing, concave up
a<0a < 0decreasing, concave upincreasing, concave down

A negative aa flips the graph over the xx-axis, so it swaps increasing and decreasing, and concave up and concave down. A base below 11 behaves like a negative aa, because log⁡1/2x=−log⁡2x\log_{1/2} x = -\log_2 x.

3End behaviour and the asymptote

Write limits with the direction of approach. The input can only get close to 00 from the right, because the domain is x>0x > 0.

f(x)=log⁡2x:lim⁡x→0+f(x)=−∞,lim⁡x→∞f(x)=∞f(x) = \log_2 x:\quad \lim_{x\to 0^{+}} f(x) = -\infty,\qquad \lim_{x\to\infty} f(x) = \inftyg(x)=−3log⁡2x:lim⁡x→0+g(x)=∞,lim⁡x→∞g(x)=−∞g(x) = -3\log_2 x:\quad \lim_{x\to 0^{+}} g(x) = \infty,\qquad \lim_{x\to\infty} g(x) = -\infty

For a>0a>0 and b>1b>1, the output falls without bound toward the asymptote and rises without bound as xx increases (slowly). For a<0a<0 both are reversed. In every case, both limits are unbounded: ±∞\pm\infty.

Do not write lim⁡x→0log⁡2x\lim_{x\to0} \log_2 x without the ++, since a function with domain x>0x>0 has no left side.

4Recognising a logarithmic function in a table

For an exponential function, outputs are proportional over equal-length input intervals. For a logarithmic function it is the other way round: inputs are proportional over equal-length output intervals.

Worked example 1. The table is an invented data set.

xx13927
f(x)f(x)0123

The outputs go up by 11 each time (equal-length output intervals). The inputs are multiplied by 33 each time (proportional). So ff is logarithmic, with base 33: f(x)=log⁡3xf(x) = \log_3 x.

5An additive transformation

If you shift a logarithmic function horizontally, g(x)=f(x+k)g(x) = f(x + k), its inputs are no longer proportional. But the inputs plus a constant are.

Worked example 2. The table is an invented data set.

xx241028
g(x)g(x)0123

The inputs 2,4,10,282, 4, 10, 28 are not proportional (4/2=24/2 = 2, 10/4=2.510/4 = 2.5). Subtract 11 from each input: 1,3,9,271, 3, 9, 27, multiplied by 33 each time. So g(x)=log⁡3(x−1)g(x) = \log_3(x - 1).

The vertical asymptote of gg is at x=1x = 1, not x=0x = 0: the shift moves the asymptote with the graph. The domain is x>1x > 1.

6Extremes and bending

Because a logarithmic function is always increasing or always decreasing, it has no extrema on its whole domain. On a closed interval, the highest and lowest values are at the ends. For example, f(x)=log⁡2xf(x) = \log_2 x on 14≤x≤8\tfrac14 \le x \le 8 has minimum −2-2 at x=14x = \tfrac14 and maximum 33 at x=8x = 8.

It bends the same way throughout, so there is no point of inflection.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.