Now that log­a­rithms are defined, we can treat y=log⁡axy = \log_a x as a func­tion and draw its graph. The graph looks very dif­fer­ent for a base big­ger than 11 and a base between 00 and 11, and that dif­fer­ence is the whole secret of log­a­rith­mic inequal­i­ties: whether log⁡ax\log_a x is pos­i­tive or neg­a­tive depends on where both aa and xx sit com­pared with 11.

The graph of y=log⁡2xy = \log_2 x

Make a table using the laws of log­a­rithms.

  • x=1x = 1: y=log⁡21=0y = \log_2 1 = 0, giv­ing (1,0)(1, 0).
  • x=2x = 2: y=log⁡22=1y = \log_2 2 = 1, giv­ing (2,1)(2, 1).
  • x=4x = 4: y=log⁡24=log⁡222=2log⁡22=2(1)=2y = \log_2 4 = \log_2 2^2 = 2\log_2 2 = 2(1) = 2, giv­ing (4,2)(4, 2).
  • x=12\displaystyle x = \frac{1}{2}: y=log⁡22−1=(−1)log⁡22=−1y = \log_2 2^{-1} = (-1)\log_2 2 = -1, giv­ing (12,−1)\displaystyle \left(\frac{1}{2}, -1\right).
  • x=14\displaystyle x = \frac{1}{4}: y=−2y = -2, giv­ing (14,−2)\displaystyle \left(\frac{1}{4}, -2\right).
xx 14\displaystyle \frac{1}{4} 12\displaystyle \frac{1}{2} 11 22 44
y=log⁡2xy = \log_2 x −2-2 −1-1 00 11 22

Plot the points and join them with a smooth curve. The curve rises from left to right: it is an increas­ing curve. It crosses the xx-axis at (1,0)(1, 0). As xx gets close to 00 the curve drops steeply down­wards, hug­ging the yy-axis but never touch­ing it, because log⁡20\log_2 0 does not exist. To the right it keeps ris­ing, but more and more slowly.

The graph of y=log⁡1/2xy = \log_{1/2} x

  • x=1x = 1: y=log⁡1/21=0y = \log_{1/2} 1 = 0, giv­ing (1,0)(1, 0).
  • x=2x = 2: y=log⁡2−121=1−1log⁡22=−1\displaystyle y = \log_{2^{-1}} 2^1 = \frac{1}{-1}\log_2 2 = -1, giv­ing (2,−1)(2, -1).
  • x=4x = 4: y=−2y = -2, giv­ing (4,−2)(4, -2).
  • x=12\displaystyle x = \frac{1}{2}: y=log⁡1/212=1\displaystyle y = \log_{1/2} \frac{1}{2} = 1, giv­ing (12,1)\displaystyle \left(\frac{1}{2}, 1\right).
  • x=14\displaystyle x = \frac{1}{4}: y=2y = 2, giv­ing (14,2)\displaystyle \left(\frac{1}{4}, 2\right).
xx 14\displaystyle \frac{1}{4} 12\displaystyle \frac{1}{2} 11 22 44
y=log⁡1/2xy = \log_{1/2} x 22 11 00 −1-1 −2-2

This time the curve falls from left to right: it is a decreas­ing curve. It is high up near the yy-axis, crosses the xx-axis at (1,0)(1, 0), and goes below the axis for x>1x > 1. It is the mir­ror image of y=log⁡2xy = \log_2 x in the xx-axis.

The two shapes in gen­eral

  • If a>1a > 1, the graph of y=log⁡axy = \log_a x is increas­ing, passes through (1,0)(1, 0), and drops steeply near the yy-axis. It is below the xx-axis for 0<x<10 < x < 1 and above it for x>1x > 1.
  • If 0<a<10 < a < 1, the graph of y=log⁡axy = \log_a x is decreas­ing, passes through (1,0)(1, 0), and rises steeply near the yy-axis. It is above the xx-axis for 0<x<10 < x < 1 and below it for x>1x > 1.

In both cases the domain is (0,∞)(0, \infty) and the range is R\mathbb{R}, and every graph passes through (1,0)(1, 0), because log⁡a1=0\log_a 1 = 0 for every allowed base.

Signs of a log­a­rithm

Read­ing the two graphs gives four rules.

  1. log⁡ax>0  ⟺  \log_a x > 0 \iff either a>1a > 1 and x>1x > 1, or 0<a<10 < a < 1 and 0<x<10 < x < 1.
  2. log⁡ax≥0  ⟺  \log_a x \geq 0 \iff either a>1a > 1 and x≥1x \geq 1, or 0<a<10 < a < 1 and 0<x≤10 < x \leq 1.
  3. log⁡ax<0  ⟺  \log_a x < 0 \iff either a>1a > 1 and 0<x<10 < x < 1, or 0<a<10 < a < 1 and x>1x > 1.
  4. log⁡ax≤0  ⟺  \log_a x \leq 0 \iff either a>1a > 1 and 0<x≤10 < x \leq 1, or 0<a<10 < a < 1 and x≥1x \geq 1.

An easy way to hold this in your head: the log­a­rithm is pos­i­tive when the base and the num­ber are on the same side of 11, and neg­a­tive when they are on oppo­site sides.

Exam­ple 1

State whether each log­a­rithm is pos­i­tive or neg­a­tive.

Log­a­rithm Base com­pared with 1 Num­ber com­pared with 1 Sign
log⁡23\log_2 3 above above pos­i­tive
log⁡1/213\displaystyle \log_{1/2} \frac{1}{3} below below pos­i­tive
log⁡1/23\log_{1/2} 3 below above neg­a­tive
log⁡213\displaystyle \log_2 \frac{1}{3} above below neg­a­tive
log⁡0.30.5\log_{0.3} 0.5 below below pos­i­tive
log⁡20.5\log_2 0.5 above below neg­a­tive
log⁡3.25.8\log_{3.2} 5.8 above above pos­i­tive
log⁡1/5100\log_{1/5} 100 below above neg­a­tive

Log­a­rith­mic inequal­i­ties

To solve an inequal­ity such as log⁡a(expression)>0\log_a (\text{expression}) > 0, use the sign rules to turn it into an ordi­nary inequal­ity. Remem­ber also that the expres­sion inside the log­a­rithm must be pos­i­tive.

Exam­ple 2

If log⁡10(x−2)>0\log_{10} (x - 2) > 0, find the val­ues of xx.

The base 1010 is greater than 11, so the log­a­rithm is pos­i­tive exactly when the num­ber is greater than 11:

x−2>1x>3\begin{aligned} x - 2 &> 1 \\ x &> 3 \end{aligned}

So x∈(3,∞)x \in (3, \infty). The con­di­tion x−2>0x - 2 > 0 is auto­mat­i­cally met, since x>3x > 3.

Exam­ple 3

Solve log⁡1/3(x−1)>0\log_{1/3} (x - 1) > 0.

The base 13\displaystyle \frac{1}{3} is less than 11, so the log­a­rithm is pos­i­tive exactly when the num­ber is between 00 and 11:

0<x−1<1  ⟹  1<x<20 < x - 1 < 1 \implies 1 < x < 2

So x∈(1,2)x \in (1, 2).

Exam­ple 4

Solve log⁡2(2x−3)≤0\log_2 (2x - 3) \leq 0.

The base is greater than 11, so we need the num­ber to be pos­i­tive and at most 11:

0<2x−3≤1  ⟹  3<2x≤4  ⟹  32<x≤2\displaystyle 0 < 2x - 3 \leq 1 \implies 3 < 2x \leq 4 \implies \frac{3}{2} < x \leq 2

So x∈(32,2]\displaystyle x \in \left(\frac{3}{2}, 2\right]. The left end is open because log⁡20\log_2 0 is not defined.

Prac­tice

  1. Is log⁡57\log_5 7 pos­i­tive or neg­a­tive?
  2. Is log⁡517\displaystyle \log_5 \frac{1}{7} pos­i­tive or neg­a­tive?
  3. Is log⁡0.20.7\log_{0.2} 0.7 pos­i­tive or neg­a­tive?
  4. Is log⁡0.27\log_{0.2} 7 pos­i­tive or neg­a­tive?
  5. What is the value of log⁡31\log_3 1?
  6. Find y=log⁡3xy = \log_3 x for x=19,13,1,3,9\displaystyle x = \frac{1}{9}, \frac{1}{3}, 1, 3, 9, and say whether the graph rises or falls.
  7. Solve log⁡2(x+1)>0\log_2 (x + 1) > 0.
  8. Solve log⁡1/2(x−3)>0\log_{1/2} (x - 3) > 0.
  9. Solve log⁡3(2x−1)≤0\log_3 (2x - 1) \leq 0.
  10. Solve log⁡0.5(x+2)≤0\log_{0.5} (x + 2) \leq 0.
  11. With­out a cal­cu­la­tor, say which is greater: log⁡25\log_2 5 or log⁡312\displaystyle \log_3 \frac{1}{2}.

Answers

Show answers
  1. Pos­i­tive: base and num­ber are both above 11.
  2. Neg­a­tive: base above 11, num­ber below 11.
  3. Pos­i­tive: base and num­ber are both below 11.
  4. Neg­a­tive: base below 11, num­ber above 11.
  5. 00.
  6. y=−2,−1,0,1,2y = -2, -1, 0, 1, 2. The base 33 is greater than 11, so the graph rises.
  7. Base 2>12 > 1: x+1>1x + 1 > 1, so x>0x > 0, that is x∈(0,∞)x \in (0, \infty).
  8. Base 12<1\displaystyle \frac{1}{2} < 1: 0<x−3<10 < x - 3 < 1, so x∈(3,4)x \in (3, 4).
  9. Base 3>13 > 1: 0<2x−1≤10 < 2x - 1 \leq 1, so 1<2x≤21 < 2x \leq 2 and x∈(12,1]\displaystyle x \in \left(\frac{1}{2}, 1\right].
  10. Base 0.5<10.5 < 1: the log­a­rithm is at most 00 when x+2≥1x + 2 \geq 1, so x≥−1x \geq -1, that is x∈[−1,∞)x \in [-1, \infty).
  11. log⁡25\log_2 5 is pos­i­tive and log⁡312\displaystyle \log_3 \frac{1}{2} is neg­a­tive, so log⁡25\log_2 5 is greater.