Graphs of Logarithmic Functions

Graphs of Logarithmic Functions

  • Parent function: f(x)=log⁡b(x)f(x) = \log_b(x)
    • b>0b > 0 and b≠1b \neq 1
    • Continuous on the domain (0,∞)(0, \infty)
    • Range: (−∞,∞)(-\infty, \infty)
    • Passes through the point (1,0)(1, 0)
    • Key point: (b,1)(b, 1)
    • No y-intercept.
    • Vertical asymptote: x=0x = 0
    • Increasing if b>1b > 1
    • Decreasing if 0<b<10 < b < 1
    • One-to-one function.

Horizontal Shifts

  • Function: f(x)=log⁡b(x+c)f(x) = \log_b(x + c)

    • Shifts left by cc units if c>0c > 0
    • Shifts right by cc units if c<0c < 0
    • Vertical asymptote: x=−cx = -c
    • Domain: (−c,∞)(-c, \infty)
    • Range: (−∞,∞)(-\infty, \infty)
  • Example:

    • f(x)=log⁡5(x+3)f(x) = \log_5(x + 3)
      • Domain: (−3,∞)(-3, \infty)
      • Range: (−∞,∞)(-\infty, \infty)
      • Vertical asymptote: x=−3x = -3
      • Shifted to the left 3 units.
  • Example:

    • f(x)=log⁡2(x−2)f(x) = \log_2(x - 2)
      • Domain: (2,∞)(2, \infty)
      • Range: (−∞,∞)(-\infty, \infty)
      • Vertical asymptote: x=2x = 2
      • Shifted to the right 2 units.

Vertical Shifts

  • Function: f(x)=log⁡b(x)+df(x) = \log_b(x) + d

    • Shifts up by dd units if d>0d > 0
    • Shifts down by dd units if d<0d < 0
    • Vertical asymptote: x=0x = 0
    • Domain: (0,∞)(0, \infty)
    • Range: (−∞,∞)(-\infty, \infty)
  • Example:

    • f(x)=log⁡6(x)+3f(x) = \log_6(x) + 3
      • Domain: (0,∞)(0, \infty)
      • Range: (−∞,∞)(-\infty, \infty)
      • Vertical asymptote: x=0x = 0
      • Shifted up 3 units.
  • Example:

    • f(x)=log⁡2(x)−5f(x) = \log_2(x) - 5
      • Domain: (0,∞)(0, \infty)
      • Range: (−∞,∞)(-\infty, \infty)
      • Vertical asymptote: x=0x = 0
      • Shifted down 5 units.

Vertical Stretches and Compresses

  • Function: f(x)=a⋅log⁡b(x)f(x) = a \cdot \log_b(x)

    • Stretches vertically by a factor of aa if ∣a∣>1|a| > 1
    • Compresses vertically by a factor of aa if 0<∣a∣<10 < |a| < 1
    • Vertical asymptote: x=0x = 0
    • x-intercept: (1,0)(1, 0)
    • Domain: (0,∞)(0, \infty)
    • Range: (−∞,∞)(-\infty, \infty)
    • Example:
      • f(x)=3log⁡2(x)f(x) = 3 \log_2(x)
    • Vertical stretch because a=3>1a = 3 > 1
    • x-intercept stays at (1,0)(1,0)
  • Example:

    • f(x)=12log⁡5(x)f(x) = \frac{1}{2} \log_5(x)
      • Vertical compression because a=12a = \frac{1}{2}, and 0<12<10 < \frac{1}{2} < 1
      • x-intercept stays at (1,0)(1, 0)

Graphing Reflections

  • Function: f(x)=−log⁡b(x)f(x) = -\log_b(x)

    • Reflects about the x-axis.
    • Domain: (0,∞)(0, \infty)
    • Range: (−∞,∞)(-\infty, \infty)
    • Vertical asymptote: x=0x = 0
  • Function: f(x)=log⁡b(−x)f(x) = \log_b(-x)

    • Reflects about the y-axis.
    • Domain: (−∞,0)(-\infty, 0)
    • Range: (−∞,∞)(-\infty, \infty)
    • Vertical asymptote: x=0x = 0
    • Example:
    • f(x)=−log⁡5(x)f(x) = -\log_5(x)
    • Reflect about x-axis
    • Example:
    • f(x)=log⁡7(−x)f(x) = \log_7(-x)
    • Reflect about the y-axis

Summary of Transformations

  • General form: f(x)=alog⁡b(x+c)+df(x) = a \log_b(x + c) + d
    • Vertical shift up by dd units if d>0d > 0
    • Vertical shift down by dd units if d<0d < 0
    • Horizontal shift left by cc units if c>0c > 0
    • Horizontal shift right by cc units if c<0c < 0
    • Vertical stretch by ∣a∣|a| if ∣a∣>1|a| > 1
    • Vertical compression by ∣a∣|a| if 0<∣a∣<10 < |a| < 1
    • Reflection about the x-axis if a<0a < 0
    • Reflection about the y-axis for f(x)=log⁡(−x)f(x) = \log(-x)
  • Example:
    • f(x)=log⁡2(x+3)+1f(x) = \log_2(x + 3) + 1
    • Shift up one and shift to the left three
  • Example:
    • f(x)=log⁡3(x−1)−4f(x) = \log_3(x - 1) - 4
    • Shift down four and shift to the right one