The logarithmic function, its domain and its graph
Quick review (2 minutes)
The rule f(x) = lo x is a function: each positive input has one logarithm.
For b > 0 and b ≠ 1, f(x) = lo x has domain x > 0, range all real numbers, x-intercept (1, 0) and vertical asymptote x = 0. For b > 1 it rises from left to right; for 0 < b < 1 it falls. The domain of lo (g(x)) is the set of x with g(x) > 0.
Find the domain: set the inside of the logarithm greater than 0 and solve.
For a linear inside with a nonzero slope, such as x − h or a − x, mark the vertical asymptote where the inside equals 0: as x moves toward that line from the domain side, the inside shrinks to 0 through positive values and the logarithm grows without bound in size.
Mark the point where the inside equals 1 (the logarithm there is 0, so the output is whatever is added after the logarithm) and the point where the inside equals b (the logarithm there is 1).
For lo (x − h) with b > 1, draw the curve rising steeply immediately to the right of the asymptote and flattening as x grows; with 0 < b < 1 it falls instead. When the inside is a − x, the curve is the mirror image across the asymptote, so each direction reverses.
Find the domain, the vertical asymptote and the x-intercept of f(x) = log (x + 4). In plain words: the inside must be positive; find where it is 0 and where it is 1.
Domain x > −4; asymptote x = −4; x-intercept (−3, 0)
Taking the domain as x > 0 for every logarithm. The condition is on the inside: log (x + 4) is defined for x > −4, and log (5 − x) for x < 5.
logarithm
The exponent you raise a base to in order to get a number: lo x = y means = x.
natural logarithm
The logarithm with base e ≈ 2.718, written ln x.
logarithmic function
A function f(x) = lo x with b > 0 and b ≠ 1, defined for x > 0; it is the inverse of .
vertical asymptote
A vertical line x = c near which the graph's outputs grow without bound, up or down, as x moves toward c from at least one side; for y = lo x with b > 1 it is the y-axis, x = 0, where the outputs fall without bound as x moves toward 0.
1 In plain words
The rule f(x) = lo x is a function: each positive input has one logarithm. Its graph is the graph of y = flipped across the line y = x, because the logarithm undoes the power: every point (a, c) of y = becomes the point (c, a) of y = lo x. Picture a road map and the same map held up to a mirror placed along y = x: every landmark moves to the swapped position. So the exponential graph's horizontal asymptote y = 0 becomes the vertical asymptote x = 0, its y-intercept (0, 1) becomes the x-intercept (1, 0), and its range of positive numbers becomes the logarithm's domain, x > 0.
2 Picture it
Reminder
Reminder: Solving a linear inequality, Inverse graphs
- Solving a linear inequality. x + 4 > 0 gives x > −4; 5 − x > 0 gives x < 5. Multiplying or dividing by a negative number turns the sign around.
- Inverse graphs. The graph of an inverse function is the graph of the function flipped across the line y = x: (a, c) becomes (c, a).
3 Why
A logarithm is defined only for a positive input, so the domain of lo x is x > 0, and the domain of lo (g(x)) is every x where g(x) > 0. Every real number is a logarithm of some positive number, since lo () = y, so the range is all real numbers. The graph is the exponential graph flipped across y = x because the two functions undo each other: if = c, then lo c = a.
4 The rule
For b > 0 and lo x has domain x > 0, range all real numbers, x-intercept (1, 0) and vertical asymptote .
For b > 1 it rises from left to right; for 0 < b < 1 it falls. The domain of lo (g(x)) is the set of x with g(x) > 0.
The same idea, other ways
Draw y = lo x. It passes (1, 0), (2, 1), (4, 2) and (, −1), rises slowly to the right, and drops toward the y-axis without touching it as x moves toward 0.
y = pairs x = −1, 0, 1, 2 with , 1, 2, 4. Swap the rows and you have y = lo x pairing , 1, 2, 4 with −1, 0, 1, 2. The outputs of one are the inputs of the other.
y = lo (x − 3) moves the graph 3 units right. Its inside must be positive, so x − 3 > 0 and the domain is x > 3. The asymptote moves too, to x = 3.
5 How
- Find the domain: set the inside of the logarithm greater than 0 and solve.
- For a linear inside with a nonzero slope, such as x − h or a − x, mark the vertical asymptote where the inside equals 0: as x moves toward that line from the domain side, the inside shrinks to 0 through positive values and the logarithm grows without bound in size.
- Mark the point where the inside equals 1 (the logarithm there is 0, so the output is whatever is added after the logarithm) and the point where the inside equals b (the logarithm there is 1).
- For lo (x − h) with b > 1, draw the curve rising steeply immediately to the right of the asymptote and flattening as x grows; with 0 < b < 1 it falls instead. When the inside is a − x, the curve is the mirror image across the asymptote, so each direction reverses.
6 Worked example
Worked example
Domain and asymptote of a shifted logarithm
Find the domain, the vertical asymptote and the x-intercept of f(x) = log (x + 4). In plain words: the inside must be positive; find where it is 0 and where it is 1.
Show the steps and the answer
- , so .The input of a logarithm must be positive.
- The vertical asymptote is .As x moves toward −4 from the right, x + 4 shrinks toward 0 through positive values and log (x + 4) falls without bound, so the graph runs down beside the line x = −4.
- gives , so the x-intercept is .log 1 = 0, so the output is 0 where the inside is 1.
- Domain x > −4
- asymptote x = −4
- x-intercept (−3, 0)
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 4
The plain domain
What is the domain of f(x) = ln x?
Show the steps and the answer
- ln x needs x > 0.The input of a logarithm must be positive.
- The domain is x > 0, written .Every positive number has a natural logarithm.
Rung 2 of 4
A reflected inside
Find the domain of g(x) = lo (5 − x).
Show the steps and the answer
- .The inside must be positive.
- 5 > x, so x < 5.Add x to both sides.
Rung 3 of 4
Points of a graph
Give three points of y = lo x.
Show the steps and the answer
- at .lo 1 = 0.
- at .lo 5 = 1.
- at .lo = −1.
Rung 4 of 4
A shifted logarithm
For h(x) = lo (x − 1) + 3, find the domain, the asymptote and the value at x = 9.
Show the steps and the answer
- , so x > 1.The inside must be positive.
- The asymptote is .As x moves toward 1 from the right, x − 1 shrinks toward 0 through positive values, lo (x − 1) falls without bound, and adding 3 keeps it falling.
- lo.
- Domain x > 1
- asymptote x = 1
- h(9) = 6
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Inside > 0 gives the domain.
- For a linear inside with a nonzero slope, inside = 0 gives the asymptote.
- Inside = 1 makes the logarithm 0.
7 The trap
Taking the domain as x > 0 for every logarithm. The condition is on the inside: log (x + 4) is defined for x > −4, and log (5 − x) for x < 5.
Flash cards
Say the answer out loud, then flip.