Now that logarithms are defined, we can treat y=logax as a function and draw its graph. The graph looks very different for a base bigger than 1 and a base between 0 and 1, and that difference is the whole secret of logarithmic inequalities: whether logax is positive or negative depends on where both a and x sit compared with 1.
The graph of y=log2x#
Make a table using the laws of logarithms.
- x=1: y=log21=0, giving (1,0).
- x=2: y=log22=1, giving (2,1).
- x=4: y=log24=log222=2log22=2(1)=2, giving (4,2).
- x=21: y=log22−1=(−1)log22=−1, giving (21,−1).
- x=41: y=−2, giving (41,−2).
Plot the points and join them with a smooth curve. The curve rises from left to right: it is an increasing curve. It crosses the x-axis at (1,0). As x gets close to 0 the curve drops steeply downwards, hugging the y-axis but never touching it, because log20 does not exist. To the right it keeps rising, but more and more slowly.
The graph of y=log1/2x#
- x=1: y=log1/21=0, giving (1,0).
- x=2: y=log2−121=−11log22=−1, giving (2,−1).
- x=4: y=−2, giving (4,−2).
- x=21: y=log1/221=1, giving (21,1).
- x=41: y=2, giving (41,2).
This time the curve falls from left to right: it is a decreasing curve. It is high up near the y-axis, crosses the x-axis at (1,0), and goes below the axis for x>1. It is the mirror image of y=log2x in the x-axis.
The two shapes in general#
- If a>1, the graph of y=logax is increasing, passes through (1,0), and drops steeply near the y-axis. It is below the x-axis for 0<x<1 and above it for x>1.
- If 0<a<1, the graph of y=logax is decreasing, passes through (1,0), and rises steeply near the y-axis. It is above the x-axis for 0<x<1 and below it for x>1.
In both cases the domain is (0,∞) and the range is R, and every graph passes through (1,0), because loga1=0 for every allowed base.
Signs of a logarithm#
Reading the two graphs gives four rules.
- logax>0⟺ either a>1 and x>1, or 0<a<1 and 0<x<1.
- logax≥0⟺ either a>1 and x≥1, or 0<a<1 and 0<x≤1.
- logax<0⟺ either a>1 and 0<x<1, or 0<a<1 and x>1.
- logax≤0⟺ either a>1 and 0<x≤1, or 0<a<1 and x≥1.
An easy way to hold this in your head: the logarithm is positive when the base and the number are on the same side of 1, and negative when they are on opposite sides.
Example 1#
State whether each logarithm is positive or negative.
Logarithmic inequalities#
To solve an inequality such as loga(expression)>0, use the sign rules to turn it into an ordinary inequality. Remember also that the expression inside the logarithm must be positive.
Example 2#
If log10(x−2)>0, find the values of x.
The base 10 is greater than 1, so the logarithm is positive exactly when the number is greater than 1:
x−2x>1>3
So x∈(3,∞). The condition x−2>0 is automatically met, since x>3.
Example 3#
Solve log1/3(x−1)>0.
The base 31 is less than 1, so the logarithm is positive exactly when the number is between 0 and 1:
0<x−1<1⟹1<x<2
So x∈(1,2).
Example 4#
Solve log2(2x−3)≤0.
The base is greater than 1, so we need the number to be positive and at most 1:
0<2x−3≤1⟹3<2x≤4⟹23<x≤2
So x∈(23,2]. The left end is open because log20 is not defined.
Practice#
- Is log57 positive or negative?
- Is log571 positive or negative?
- Is log0.20.7 positive or negative?
- Is log0.27 positive or negative?
- What is the value of log31?
- Find y=log3x for x=91,31,1,3,9, and say whether the graph rises or falls.
- Solve log2(x+1)>0.
- Solve log1/2(x−3)>0.
- Solve log3(2x−1)≤0.
- Solve log0.5(x+2)≤0.
- Without a calculator, say which is greater: log25 or log321.
Answers#
Show answers
- Positive: base and number are both above 1.
- Negative: base above 1, number below 1.
- Positive: base and number are both below 1.
- Negative: base below 1, number above 1.
- 0.
- y=−2,−1,0,1,2. The base 3 is greater than 1, so the graph rises.
- Base 2>1: x+1>1, so x>0, that is x∈(0,∞).
- Base 21<1: 0<x−3<1, so x∈(3,4).
- Base 3>1: 0<2x−1≤1, so 1<2x≤2 and x∈(21,1].
- Base 0.5<1: the logarithm is at most 0 when x+2≥1, so x≥−1, that is x∈[−1,∞).
- log25 is positive and log321 is negative, so log25 is greater.