Solved Exercises on Graphing Logarithmic Functions in Precalculus

Master graphing logarithmic functions: transformations, domains, ranges, and asymptotes through these 5 detailed exercises.

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

Logarithmic Function: A function of the form \(f(x) = \log_a(x)\) where \(a > 0\), \(a \neq 1\), and \(x > 0\). It is the inverse of the exponential function \(a^x\).

Graphing Method:
  1. Identify the base: \(a = 2\)
  2. Determine the domain: \(x > 0\)
  3. Find key points: Calculate values for powers of the base
  4. Identify the vertical asymptote: \(x = 0\)
  5. Sketch the curve through the points
Function
\(f(x) = \log_2(x)\)
Base
\(a = 2 > 1\)
Behavior
Increasing
Step 1: Identify domain and range

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

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

Step 2: Calculate key points

For various powers of the base 2:

\(f(1) = \log_2(1) = 0\) (since \(2^0 = 1\))

\(f(2) = \log_2(2) = 1\) (since \(2^1 = 2\))

\(f(4) = \log_2(4) = 2\) (since \(2^2 = 4\))

\(f(8) = \log_2(8) = 3\) (since \(2^3 = 8\))

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

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

Step 3: Identify vertical asymptote

As \(x \to 0^+\), \(\log_2(x) \to -\infty\)

So the vertical asymptote is \(x = 0\)

Step 4: Analyze behavior

Since \(a = 2 > 1\), the function is increasing

The function grows slowly as \(x\) increases

Base: \(a = 2\)
Domain: \((0, \infty)\)
Range: \((-\infty, \infty)\)
Vertical Asymptote: \(x = 0\)
X-intercept: \((1, 0)\)
Increasing: Yes
Final answer:

The graph of \(f(x) = \log_2(x)\) is an increasing logarithmic curve passing through \((1,0)\) with vertical asymptote \(x = 0\).

Applied rules:

• Logarithmic Growth: When \(a > 1\), function increases slowly

• Asymptotic Behavior: Approaches vertical asymptote as \(x \to 0^+\)

• X-intercept: Always at \((1, 0)\) for \(f(x) = \log_a(x)\)

2 Logarithmic function with base between 0 and 1
Exercise 2
Graph the function:
\(f(x) = \log_{\frac{1}{3}}(x)\)
Definition:

Logarithmic Decay: A logarithmic function where the base is between 0 and 1, resulting in a decreasing function.

Function
\(f(x) = \log_{\frac{1}{3}}(x)\)
Base
\(a = \frac{1}{3} < 1\)
Behavior
Decreasing
Step 1: Identify domain and range

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

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

Step 2: Calculate key points

For various powers of the base \(\frac{1}{3}\):

\(f(1) = \log_{\frac{1}{3}}(1) = 0\) (since \((\frac{1}{3})^0 = 1\))

\(f(\frac{1}{3}) = \log_{\frac{1}{3}}(\frac{1}{3}) = 1\) (since \((\frac{1}{3})^1 = \frac{1}{3}\))

\(f(\frac{1}{9}) = \log_{\frac{1}{3}}(\frac{1}{9}) = 2\) (since \((\frac{1}{3})^2 = \frac{1}{9}\))

\(f(3) = \log_{\frac{1}{3}}(3) = -1\) (since \((\frac{1}{3})^{-1} = 3\))

\(f(9) = \log_{\frac{1}{3}}(9) = -2\) (since \((\frac{1}{3})^{-2} = 9\))

Step 3: Identify vertical asymptote

As \(x \to 0^+\), \(\log_{\frac{1}{3}}(x) \to \infty\)

As \(x \to \infty\), \(\log_{\frac{1}{3}}(x) \to -\infty\)

So the vertical asymptote is \(x = 0\)

Step 4: Analyze behavior

Since \(a = \frac{1}{3} < 1\), the function is decreasing

The function decreases slowly as \(x\) increases

Step 5: Relationship to reciprocal base

\(\log_{\frac{1}{3}}(x) = \frac{\ln(x)}{\ln(\frac{1}{3})} = \frac{\ln(x)}{-\ln(3)} = -\log_3(x)\)

This function is the reflection of \(\log_3(x)\) across the x-axis

Base: \(a = \frac{1}{3}\)
Domain: \((0, \infty)\)
Range: \((-\infty, \infty)\)
Vertical Asymptote: \(x = 0\)
X-intercept: \((1, 0)\)
Decreasing: Yes
Final answer:

The graph of \(f(x) = \log_{\frac{1}{3}}(x)\) is a decreasing logarithmic curve passing through \((1,0)\) with vertical asymptote \(x = 0\).

Applied rules:

• Logarithmic Decay: When \(0 < a < 1\), function decreases

• Reflection Property: \(\log_a(x)\) and \(\log_{1/a}(x)\) are reflections across x-axis

• Asymptotic Behavior: Approaches vertical asymptote differently based on base

3 Translated logarithmic function
Exercise 3
Graph the function:
\(f(x) = \log_3(x-2) + 4\)
Definition:

Transformed Logarithmic Function: A logarithmic function of the form \(f(x) = \log_a(x-h) + k\) where \(h\) and \(k\) represent horizontal and vertical translations respectively.

Function
\(f(x) = \log_3(x-2) + 4\)
Transformed
\(f(x) = \log_3(x-2) + 4\)
Translations
Right 2, Up 4
Step 1: Identify transformations

Starting with parent function \(g(x) = \log_3(x)\)

\(f(x) = \log_3(x-2) + 4\)

Horizontal shift: \(h = 2\) (right 2 units)

Vertical shift: \(k = 4\) (up 4 units)

Step 2: Calculate key points

Start with parent function points for \(\log_3(x)\):

\((\frac{1}{9}, -2), (\frac{1}{3}, -1), (1, 0), (3, 1), (9, 2)\)

Apply transformations: add 2 to x, add 4 to y

\((\frac{1}{9}+2, -2+4), (\frac{1}{3}+2, -1+4), (1+2, 0+4), (3+2, 1+4), (9+2, 2+4)\)

\((\frac{19}{9}, 2), (\frac{7}{3}, 3), (3, 4), (5, 5), (11, 6)\)

Step 3: Identify new vertical asymptote

Original asymptote: \(x = 0\)

After horizontal shift right by 2: New asymptote is \(x = 2\)

Step 4: Identify domain and range

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

Range: \((-\infty, \infty)\) (vertical shifts don't affect range)

Step 5: Find x-intercept

Set \(f(x) = 0\): \(\log_3(x-2) + 4 = 0\)

\(\log_3(x-2) = -4\)

\(x-2 = 3^{-4} = \frac{1}{81}\)

\(x = 2 + \frac{1}{81} = \frac{163}{81}\)

X-intercept: \((\frac{163}{81}, 0)\)

Parent: \(g(x) = \log_3(x)\)
Transformation: Right 2, Up 4
Vertical Asymptote: \(x = 2\)
Domain: \((2, \infty)\)
Range: \((-\infty, \infty)\)
X-intercept: \((\frac{163}{81}, 0)\)
Final answer:

The graph of \(f(x) = \log_3(x-2) + 4\) is the graph of \(\log_3(x)\) shifted right 2 units and up 4 units, with vertical asymptote \(x = 2\).

Applied rules:

• Horizontal Shift: \(f(x-h)\) shifts graph right by \(h\) units (left if \(h < 0\))

• Vertical Shift: \(f(x) + k\) shifts graph up by \(k\) units (down if \(k < 0\))

• Asymptote Translation: Vertical asymptote shifts horizontally with the graph

Rules and methods, laws,...
f(x) = \log_a(x-h) + k
General Form
Growth
\(a > 1\)
Function increases
Decay
\(0 < a < 1\)
Function decreases
Asymptote
\(x = h\)
Vertical line
Logarithmic Growth: When base > 1, function increases slowly
Logarithmic Decay: When 0 < base < 1, function decreases slowly
Transformations: Horizontal shift by h, vertical shift by k
Tip 1: Remember that logarithmic functions always pass through (1,0) before transformations.
Tip 2: The vertical asymptote is determined by the horizontal shift component.
Tip 3: When base is between 0 and 1, rewrite using the change of base formula to understand behavior.
Solution: Exercises 4 to 5
4 Reflected logarithmic function
Exercise 4
Graph the function:
\(f(x) = -2\log_4(x+1) + 3\)
Definition:

Reflected and Stretched Logarithmic Function: A logarithmic function with a negative coefficient that reflects the graph across the x-axis and stretches it vertically.

Function
\(f(x) = -2\log_4(x+1) + 3\)
Components
Stretch: 2, Reflect: -, Shift: Left 1, Up 3
Form
\(f(x) = a\log_b(x-h) + k\)
Step 1: Identify all transformations

From \(f(x) = -2\log_4(x+1) + 3\), we have:

Vertical stretch by factor of 2: coefficient is 2

Reflection across x-axis: negative coefficient

Horizontal shift left by 1: \(x+1\) indicates \(h = -1\)

Vertical shift up by 3: constant term is 3, so \(k = 3\)

Step 2: Start with parent function points

Parent function: \(g(x) = \log_4(x)\)

Key points: \((\frac{1}{4}, -1), (1, 0), (4, 1), (16, 2)\)

Step 3: Apply transformations in order

For each point \((x, y)\) in \(g(x) = \log_4(x)\):

1. Horizontal shift left by 1: \((x-1, y)\)

2. Vertical stretch by 2: \((x-1, 2y)\)

3. Reflection across x-axis: \((x-1, -2y)\)

4. Vertical shift up by 3: \((x-1, -2y+3)\)

Step 4: Calculate transformed points

\((\frac{1}{4}, -1) \to (-\frac{3}{4}, -2) \to (-\frac{3}{4}, 2) \to (-\frac{3}{4}, 5)\)

\((1, 0) \to (0, 0) \to (0, 0) \to (0, 3)\)

\((4, 1) \to (3, 2) \to (3, -2) \to (3, 1)\)

\((16, 2) \to (15, 4) \to (15, -4) \to (15, -1)\)

Step 5: Identify asymptote and domain/range

Original asymptote: \(x = 0\)

After horizontal shift left by 1: New asymptote is \(x = -1\)

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

Range: \((-\infty, \infty)\)

Since the function is reflected and stretched, it decreases rapidly

Transformations: Left 1, Stretch 2, Reflect, Up 3
Vertical Asymptote: \(x = -1\)
Domain: \((-1, \infty)\)
Range: \((-\infty, \infty)\)
Behavior: Decreasing
Final answer:

The graph of \(f(x) = -2\log_4(x+1) + 3\) is a decreasing logarithmic curve reflected across the x-axis, shifted left by 1 and up by 3, with vertical asymptote \(x = -1\).

Applied rules:

• Vertical Stretch: Coefficient \(a\) stretches/shrinks vertically

• Reflection: Negative coefficient reflects across x-axis

• Order of Operations: Apply transformations in proper sequence

5 Compound logarithmic transformation
Exercise 5
Graph the function:
\(f(x) = \log_2(-x+4) - 1\)
Definition:

Compound Logarithmic Transformation: A logarithmic function with multiple transformations including reflection across the y-axis, which requires the argument to be positive.

Function
\(f(x) = \log_2(-x+4) - 1\)
Simplified
\(f(x) = \log_2(-(x-4)) - 1\)
Transformations
Reflect across y-axis, Right 4, Down 1
Step 1: Identify the reflection

The argument is \(-x+4 = -(x-4)\), which means the graph of \(\log_2(x)\) is reflected across the y-axis first

Then shifted right by 4 and down by 1

Step 2: Determine the domain

For the logarithm to be defined: \(-x+4 > 0\)

\(-x > -4\)

\(x < 4\)

So the domain is \((-\infty, 4)\)

Step 3: Calculate key points

Start with parent function points for \(\log_2(x)\):

\((\frac{1}{4}, -2), (\frac{1}{2}, -1), (1, 0), (2, 1), (4, 2)\)

For \(\log_2(-(x-4))\), we need: \(-(x-4) =\) original x-values

This means: \(x-4 = -\)original x-values, so \(x = 4 - \)original x-values

Transformed points: \((4-\frac{1}{4}, -2-1), (4-\frac{1}{2}, -1-1), (4-1, 0-1), (4-2, 1-1), (4-4, 2-1)\)

\((\frac{15}{4}, -3), (\frac{7}{2}, -2), (3, -1), (2, 0), (0, 1)\)

Step 4: Identify asymptote and range

Original asymptote: \(x = 0\)

After transformations: The asymptote occurs when \(-x+4 = 0\), so \(x = 4\)

Vertical asymptote: \(x = 4\)

Range: \((-\infty, \infty)\)

Step 5: Find intercepts

Y-intercept: At \(x = 0\), \(f(0) = \log_2(-0+4) - 1 = \log_2(4) - 1 = 2 - 1 = 1\)

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

X-intercept: Solve \(\log_2(-x+4) - 1 = 0\)

\(\log_2(-x+4) = 1\)

\(-x+4 = 2^1 = 2\)

\(-x = -2\)

\(x = 2\)

X-intercept: \((2, 0)\)

Transformations: Reflect across y-axis, Right 4, Down 1
Vertical Asymptote: \(x = 4\)
Domain: \((-\infty, 4)\)
Range: \((-\infty, \infty)\)
Y-intercept: \((0, 1)\)
X-intercept: \((2, 0)\)
Final answer:

The graph of \(f(x) = \log_2(-x+4) - 1\) is the graph of \(\log_2(x)\) reflected across the y-axis, shifted right by 4 and down by 1, with vertical asymptote \(x = 4\) and domain \((-\infty, 4)\).

Applied rules:

• Reflection Across Y-Axis: \(f(-x)\) reflects the graph across the y-axis

• Domain Constraints: Argument of logarithm must be positive

• Asymptote Location: Determined by setting argument equal to zero

Detailed Summary: Graphing Logarithmic Functions
f(x) = a\log_b(x-h) + k
General Form
Key definitions:

Logarithmic Function: A function of the form \(f(x) = \log_a(x)\) where \(a > 0\), \(a \neq 1\), and \(x > 0\). It is the inverse of the exponential function \(a^x\).

Logarithmic Growth: When \(a > 1\), the function increases slowly as \(x\) increases.

Logarithmic Decay: When \(0 < a < 1\), the function decreases slowly as \(x\) increases.

Complete graphing methodology:
  1. Identify the base: Determine if \(a > 1\) (growth) or \(0 < a < 1\) (decay)
  2. Identify transformations: From the form \(f(x) = a\log_b(x-h) + k\)
  3. Determine domain: Ensure argument of logarithm is positive
  4. Find key points: Calculate function values for strategic x-values
  5. Identify asymptotes: Vertical asymptote is typically \(x = h\)
  6. Sketch the curve: Draw smooth curve through the calculated points
Tip 1: The base determines growth/decay: a > 1 means growth, 0 < a < 1 means decay.
Tip 2: The vertical asymptote is determined by the horizontal shift component h.
Tip 3: When you have a negative inside the logarithm like log(-x), it reflects the graph across the y-axis.
Tip 4: Always verify that the argument of the logarithm is positive for the domain.
Common properties: All logarithmic functions pass through (1,0) before transformations, have vertical asymptotes, and are continuous and smooth curves.
Transformation rules: h shifts horizontally, k shifts vertically, coefficients stretch/compress and reflect.
Important mathematical principles:

• Base Property: If \(a > 1\), function increases; if \(0 < a < 1\), function decreases

• Asymptote Rule: Vertical asymptote is \(x = h\) in \(f(x) = a\log_b(x-h) + k\)

• Domain: Always \(x > h\) for \(f(x) = a\log_b(x-h) + k\) (where argument is positive)

• Range: Always \((-\infty, \infty)\) for logarithmic functions

Questions & Answers

Question: How do I tell the difference between logarithmic growth and decay just by looking at the function?

Answer: The key is in the base of the logarithmic function:

  • Logarithmic Growth: When the base \(a > 1\), the function increases as \(x\) increases
  • Logarithmic Decay: When \(0 < a < 1\), the function decreases as \(x\) increases

For example:

  • \(f(x) = \log_2(x)\): base is 2 > 1, so it's growth
  • \(f(x) = \log_{0.5}(x)\): base is 0.5 (between 0 and 1), so it's decay
  • \(f(x) = \log_{1/3}(x)\): base is 1/3 (between 0 and 1), so it's decay

A helpful tip: if the base is a fraction between 0 and 1, you can use the property that \(\log_{1/a}(x) = -\log_a(x)\), which clearly shows the reflection behavior.

Question: Why do logarithmic functions always have vertical asymptotes but never horizontal asymptotes?

Answer: This comes from the fundamental properties of logarithmic functions:

Vertical Asymptotes: Logarithmic functions approach infinity or negative infinity as x approaches a specific value:

  • For \(f(x) = \log_a(x)\) where \(a > 1\): as \(x \to 0^+\), \(f(x) \to -\infty\)
  • For \(f(x) = \log_a(x)\) where \(0 < a < 1\): as \(x \to 0^+\), \(f(x) \to \infty\)

No Horizontal Asymptotes: Logarithmic functions continue to grow (or decay) without bound as x increases:

  • For \(f(x) = \log_a(x)\) where \(a > 1\): as \(x \to \infty\), \(f(x) \to \infty\)
  • For \(f(x) = \log_a(x)\) where \(0 < a < 1\): as \(x \to \infty\), \(f(x) \to -\infty\)

The logarithm is undefined when its argument is zero or negative, creating the vertical asymptote. Since logarithms are inverses of exponentials, and exponentials have horizontal asymptotes, logarithms have vertical asymptotes.

Question: What happens when I have a negative coefficient in front of a logarithmic function? Does it flip the graph?

Answer: Yes, a negative coefficient reflects the graph across the x-axis! Here's what happens:

Positive coefficient: \(f(x) = \log_2(x)\) increases from left to right

Negative coefficient: \(f(x) = -\log_2(x)\) decreases from left to right (reflection)

For example, with \(f(x) = -2\log_3(x)\):

  • The positive function \(2\log_3(x)\) would pass through points like \((1, 0)\), \((3, 2)\), \((9, 4)\)
  • The negative function \(-2\log_3(x)\) passes through \((1, 0)\), \((3, -2)\), \((9, -4)\)

The vertical asymptote remains the same (at \(x = 0\)), but the direction of growth/decay is reversed. The coefficient also affects the steepness of the curve.