Graphing Logarithmic Functions: Visual Guide & Practice

Master graphing logarithmic functions: understand domain, range, asymptotes, and transformations through 3 detailed exercises with visual representations.

Solution: Exercises 1 to 3
1 Basic logarithmic function
Exercise 1
Graph and analyze: \(f(x) = \log_2(x)\)
Definition:

Logarithmic function: \(f(x) = \log_b(x)\) where \(b > 0\), \(b ≠ 1\), and \(x > 0\)

Graphing method:
  1. Determine the domain and range
  2. Identify the vertical asymptote
  3. Create a table of values with both x > 1 and 0 < x < 1
  4. Plot the key points and sketch the curve
Function
\(f(x) = \log_2(x)\)
Key Points
\((\frac{1}{4}, -2), (\frac{1}{2}, -1), (1, 0), (2, 1), (4, 2)\)
Step 1: Determine domain and range

Domain: \(x > 0\) (all positive real numbers)

Range: All real numbers \((-\infty, \infty)\)

Step 2: Identify the vertical asymptote

Vertical asymptote: \(x = 0\) (the y-axis)

The graph approaches this line but never touches it

Step 3: Create table of values

\(x = \frac{1}{4}: f(\frac{1}{4}) = \log_2(\frac{1}{4}) = \log_2(2^{-2}) = -2\)

\(x = \frac{1}{2}: f(\frac{1}{2}) = \log_2(\frac{1}{2}) = \log_2(2^{-1}) = -1\)

\(x = 1: f(1) = \log_2(1) = 0\)

\(x = 2: f(2) = \log_2(2) = 1\)

\(x = 4: f(4) = \log_2(4) = \log_2(2^2) = 2\)

Step 4: Identify key characteristics

x-intercept: \((1, 0)\)

No y-intercept (function undefined at \(x = 0\))

Increasing function (since base \(2 > 1\))

\(f(x) = \log_2(x)\) is an increasing function with vertical asymptote \(x = 0\)
Final answer:

The graph of \(f(x) = \log_2(x)\) passes through \((1, 0)\) and has vertical asymptote \(x = 0\)

Applied rules:

• Domain restriction: \(x > 0\) for all logarithmic functions

• Vertical asymptote: \(x = 0\) for basic logarithmic functions

• Increasing function: When base \(b > 1\), the function increases

2 Logarithmic function with base 0 < b < 1
Exercise 2
Graph and analyze: \(f(x) = \log_{\frac{1}{2}}(x)\)
Definition:

Decreasing logarithmic function: \(f(x) = \log_b(x)\) where \(0 < b < 1\)

Function
\(f(x) = \log_{\frac{1}{2}}(x)\)
Key Points
\((4, -2), (2, -1), (1, 0), (\frac{1}{2}, 1), (\frac{1}{4}, 2)\)
Step 1: Determine domain and range

Domain: \(x > 0\) (all positive real numbers)

Range: All real numbers \((-\infty, \infty)\)

Step 2: Identify the vertical asymptote

Vertical asymptote: \(x = 0\) (the y-axis)

Step 3: Create table of values

\(x = 4: f(4) = \log_{\frac{1}{2}}(4) = \log_{\frac{1}{2}}((\frac{1}{2})^{-2}) = -2\)

\(x = 2: f(2) = \log_{\frac{1}{2}}(2) = \log_{\frac{1}{2}}((\frac{1}{2})^{-1}) = -1\)

\(x = 1: f(1) = \log_{\frac{1}{2}}(1) = 0\)

\(x = \frac{1}{2}: f(\frac{1}{2}) = \log_{\frac{1}{2}}(\frac{1}{2}) = 1\)

\(x = \frac{1}{4}: f(\frac{1}{4}) = \log_{\frac{1}{2}}(\frac{1}{4}) = \log_{\frac{1}{2}}((\frac{1}{2})^{2}) = 2\)

Step 4: Identify key characteristics

x-intercept: \((1, 0)\)

Decreasing function (since base \(\frac{1}{2} < 1\))

Same asymptotic behavior as increasing functions

\(f(x) = \log_{\frac{1}{2}}(x)\) is a decreasing function with vertical asymptote \(x = 0\)
Final answer:

The graph of \(f(x) = \log_{\frac{1}{2}}(x)\) passes through \((1, 0)\) and decreases as x increases

Applied rules:

• Decreasing function: When base \(0 < b < 1\), the function decreases

• Vertical asymptote: Still at \(x = 0\) regardless of base

• Domain and range: Same as increasing logarithmic functions

3 Transformed logarithmic function
Exercise 3
Graph and analyze: \(f(x) = \log_3(x + 2) - 1\)
Definition:

Transformed logarithmic function: \(f(x) = a\log_b(x - h) + k\) where a, h, k are constants

Function
\(f(x) = \log_3(x + 2) - 1\)
Transformations
Left 2, Down 1
Step 1: Identify transformations

Horizontal shift: \(h = -2\) (shift left 2 units)

Vertical shift: \(k = -1\) (shift down 1 unit)

No vertical stretch/compression (\(a = 1\))

Step 2: Determine domain and range

Domain: \(x + 2 > 0\), so \(x > -2\)

Range: All real numbers \((-\infty, \infty)\)

Step 3: Identify the vertical asymptote

Vertical asymptote: \(x = -2\) (from \(x + 2 = 0\))

Step 4: Create table of values

\(x = -1: f(-1) = \log_3(1) - 1 = 0 - 1 = -1\)

\(x = 1: f(1) = \log_3(3) - 1 = 1 - 1 = 0\)

\(x = 7: f(7) = \log_3(9) - 1 = 2 - 1 = 1\)

\(x = -\frac{5}{3}: f(-\frac{5}{3}) = \log_3(\frac{1}{3}) - 1 = -1 - 1 = -2\)

Step 5: Identify key characteristics

New x-intercept: Solve \(\log_3(x + 2) - 1 = 0\), so \(\log_3(x + 2) = 1\), thus \(x + 2 = 3\), giving \(x = 1\)

y-intercept: \(f(0) = \log_3(2) - 1\) (approximately \(-0.37\))

\(f(x) = \log_3(x + 2) - 1\) shifted left 2 and down 1 from basic function
Final answer:

The graph of \(f(x) = \log_3(x + 2) - 1\) has vertical asymptote \(x = -2\) and passes through \((1, 0)\)

Applied rules:

• Horizontal shift: \(f(x + h)\) shifts left h units if h > 0

• Vertical shift: \(f(x) + k\) shifts up k units if k > 0

• Asymptote shift: Vertical asymptote shifts with horizontal transformation

Key Properties of Logarithmic Functions
\(f(x) = a\log_b(x - h) + k\)
General Form
Domain
For \(f(x) = \log_b(x)\): \(x > 0\)
For \(f(x) = \log_b(x-h)\): \(x > h\)
Range
All real numbers \((-\infty, \infty)\)
regardless of transformations
Asymptotes
Vertical asymptote at \(x = h\)
(value that makes argument 0)
Intercepts
x-intercept: Set \(f(x) = 0\)
y-intercept: Evaluate \(f(0)\) if in domain
Key definitions:

Logarithmic function: A function of the form \(f(x) = \log_b(x)\) where \(b > 0\), \(b ≠ 1\), and \(x > 0\)

Vertical asymptote: A vertical line that the graph approaches but never touches

Base: The number that is raised to a power in the exponential expression

Common logarithm: Logarithm with base 10, written as \(\log(x)\)

Natural logarithm: Logarithm with base e, written as \(\ln(x)\)

Graphing methodology:
  1. Identify transformations: Determine horizontal/vertical shifts, stretches/compressions
  2. Find domain and range: Consider the argument of the logarithm
  3. Determine asymptote: Find where the argument equals zero
  4. Plot key points: Include x-intercept and other strategic points
  5. Sketch the curve: Draw smooth curve through points approaching asymptote
Tip 1: All logarithmic functions pass through (1,0) when there are no transformations.
Tip 2: If base > 1, function is increasing; if 0 < base < 1, function is decreasing.
Tip 3: The vertical asymptote shifts with horizontal transformations.
Tip 4: Domain is always restricted by the requirement that the argument be positive.
Common errors: Forgetting domain restrictions, misidentifying asymptotes, confusing increasing/decreasing behavior.
Exam preparation: Know general form, understand transformations, practice with different bases.
Essential properties:

• Domain: Argument must be positive: \(x > 0\) for basic functions

• Range: All real numbers regardless of transformations

• Vertical asymptote: At the boundary of the domain

• Monotonicity: Increasing if base > 1, decreasing if 0 < base < 1

• Continuity: Continuous on its entire domain

Logarithmic Function Transformations
\(f(x) = a\log_b(x - h) + k\)
Transformation Form
Horizontal Shift
\(f(x - h)\)
Right h units if h > 0
Vertical Shift
\(f(x) + k\)
Up k units if k > 0
Vertical Stretch
\(af(x)\)
Stretch if |a| > 1
Graphing Workflow
📊
Step 1: Identify Base Function
Determine the basic logarithmic function before transformations
Step 2: Apply Horizontal Shifts
Shift left/right based on the argument of the logarithm
Step 3: Apply Vertical Stretches
Scale the function vertically if there's a coefficient
Step 4: Apply Vertical Shifts
Move the entire graph up or down
Step 5: Adjust Asymptote
Update the vertical asymptote based on horizontal shift
Behavior Based on Base
b > 1
Increasing
0 < b < 1
Decreasing
Domain
x > h
Key Points to Remember
Vertical asymptote moves with horizontal shift, range always all reals, x-intercept changes with transformations
Remember: Domain changes with horizontal transformations!
Complete Summary: Graphing Logarithmic Functions
Definitions
  • Logarithmic function: A function of the form \(f(x) = \log_b(x)\) where \(b > 0\), \(b ≠ 1\), and \(x > 0\)
  • Base: The number that is raised to a power in the exponential expression (b in \(\log_b(x)\))
  • Vertical asymptote: A vertical line that the graph approaches but never touches
  • Domain: The set of all possible input values (x-values) for which the function is defined
  • Range: The set of all possible output values (y-values) that the function can produce
  • Common logarithm: A logarithm with base 10, usually written as \(\log(x)\) without specifying the base
  • Natural logarithm: A logarithm with base e (approximately 2.718), written as \(\ln(x)\)
Core Rules and Laws
  • Domain restriction: For \(f(x) = \log_b(g(x))\), the argument \(g(x) > 0\)
  • Range rule: The range of logarithmic functions is always all real numbers \((-\infty, \infty)\)
  • Asymptote rule: Vertical asymptote occurs where the argument equals zero
  • Monotonicity rule: If \(b > 1\), the function is increasing; if \(0 < b < 1\), the function is decreasing
  • Point of reference: All basic logarithmic functions pass through the point \((1, 0)\)
  • Continuity law: Logarithmic functions are continuous on their entire domain
  • One-to-one property: Logarithmic functions are one-to-one (each y-value corresponds to exactly one x-value)
Step-by-Step Methods and Procedures
  1. Graphing basic logarithmic functions:
    • Determine the domain: \(x > 0\) for basic functions
    • Identify the vertical asymptote: \(x = 0\) for basic functions
    • Create a table of values with both \(x > 1\) and \(0 < x < 1\)
    • Plot the key points including \((1, 0)\)
    • Sketch a smooth curve approaching the asymptote
  2. Graphing transformed logarithmic functions:
    • Identify the base function: \(f(x) = \log_b(x)\)
    • Determine transformations: horizontal shifts, vertical shifts, stretches/compressions
    • Adjust the domain based on horizontal shifts
    • Update the vertical asymptote accordingly
    • Apply transformations to key points
    • Sketch the transformed graph
  3. Identifying characteristics:
    • Find x-intercept by setting \(f(x) = 0\) and solving
    • Find y-intercept by evaluating \(f(0)\) if 0 is in the domain
    • Determine if the function is increasing or decreasing based on the base
    • Identify the vertical asymptote
Examples (Simple to Advanced)
  • Simple (basic function): \(f(x) = \log_2(x)\) - increasing, domain \(x > 0\), asymptote \(x = 0\), passes through \((1,0)\)
  • Decreasing function: \(f(x) = \log_{\frac{1}{2}}(x)\) - decreasing, domain \(x > 0\), asymptote \(x = 0\), passes through \((1,0)\)
  • Horizontal shift: \(f(x) = \log_3(x - 2)\) - increasing, domain \(x > 2\), asymptote \(x = 2\), passes through \((3,0)\)
  • Vertical shift: \(f(x) = \log(x) + 3\) - increasing, domain \(x > 0\), asymptote \(x = 0\), passes through \((1,3)\)
  • Combined transformations: \(f(x) = 2\log_4(x + 1) - 3\) - increasing, domain \(x > -1\), asymptote \(x = -1\), passes through \((0,-3)\)
  • Reflection: \(f(x) = -\log_2(x)\) - decreasing, domain \(x > 0\), asymptote \(x = 0\), passes through \((1,0)\)
Tips, Tricks, and Common Pitfalls
  • Tip 1: Always determine the domain first, as it affects the location of the vertical asymptote
  • Tip 2: Remember that all basic logarithmic functions pass through the point \((1, 0)\) before transformations
  • Tip 3: The vertical asymptote moves with horizontal transformations: if the function is \(f(x) = \log_b(x - h)\), the asymptote is at \(x = h\)
  • Common mistake 1: Forgetting that the domain of logarithmic functions is restricted to positive values
  • Common mistake 2: Misidentifying the direction of increasing/decreasing based on the base
  • Common mistake 3: Not adjusting the asymptote when applying horizontal shifts
  • Trick: Use the fact that logarithmic functions are inverses of exponential functions to understand their behavior
Key Notes for Memorization
  • Remember: Domain is always restricted: argument of log must be positive
  • Remember: Range is always all real numbers regardless of transformations
  • Remember: If base > 1, function is increasing; if 0 < base < 1, function is decreasing
  • Remember: Basic functions always pass through \((1, 0)\) before transformations
  • Remember: Vertical asymptote occurs where the argument equals zero
  • Remember: Horizontal shifts affect the domain and asymptote location

Questions & Answers

Question: How do I determine the domain of a logarithmic function, especially when there are transformations?

Answer: The domain of a logarithmic function is determined by the requirement that the argument (input) of the logarithm must be positive. Here's how to find it:

  • Basic function: For \(f(x) = \log_b(x)\), the domain is \(x > 0\)
  • With transformations: For \(f(x) = \log_b(g(x))\), solve \(g(x) > 0\)
  • Horizontal shift: For \(f(x) = \log_b(x - h)\), solve \(x - h > 0\), so \(x > h\)
  • More complex: For \(f(x) = \log_b(x^2 - 4)\), solve \(x^2 - 4 > 0\), which gives \(x < -2\) or \(x > 2\)

The key is to set the entire argument of the logarithm greater than zero and solve the resulting inequality. This will give you the domain of the function.

Question: Why do logarithmic functions have vertical asymptotes, and how do I find them?

Answer: Logarithmic functions have vertical asymptotes because they are only defined for positive arguments. As the input approaches the boundary of the domain (where the argument equals zero), the function value approaches positive or negative infinity.

To find the vertical asymptote:

  • Basic function: For \(f(x) = \log_b(x)\), the asymptote is at \(x = 0\)
  • With transformations: For \(f(x) = \log_b(x - h)\), the asymptote is at \(x = h\)
  • General rule: Find where the argument of the logarithm equals zero

For example, in \(f(x) = \log_2(x + 3)\), the asymptote occurs where \(x + 3 = 0\), so at \(x = -3\). The graph approaches this line but never touches it.

Question: How can I tell if a logarithmic function is increasing or decreasing just by looking at the equation?

Answer: The behavior of a logarithmic function depends entirely on its base:

  • If base > 1: The function is increasing
  • If 0 < base < 1: The function is decreasing

This is because:

  • When the base is greater than 1, larger inputs produce larger outputs
  • When the base is between 0 and 1, larger inputs produce smaller outputs (since we're dealing with fractional bases)

For example:

  • \(f(x) = \log_2(x)\) is increasing (base 2 > 1)
  • \(f(x) = \log_{0.5}(x)\) is decreasing (0 < base 0.5 < 1)
  • \(f(x) = \ln(x)\) is increasing (base e ≈ 2.718 > 1)

Note that transformations (shifts, stretches) don't change whether the function is increasing or decreasing - only the base matters for this characteristic.