Solved Exercises on Graphing Logarithmic Functions in Algebra 1

Master graphing logarithmic functions: basic to advanced techniques with detailed explanations through these 5 exercises.

Solution: Exercises 1 to 3
1 Basic logarithmic function
Exercise 1
Graph the function \(f(x) = \log_2(x)\) and identify its key characteristics.
Definition:

Logarithmic function: A function of the form \(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. Find the x-intercept
  4. Create a table of values
  5. Plot the points and draw the curve
Function
\(f(x) = \log_2(x)\)
Domain
\(x > 0\)
Range
All real numbers
Asymptote
\(x = 0\)
Step 1: Determine the domain

Since we're taking the logarithm of x, we need \(x > 0\). The domain is \((0, ∞)\).

Step 2: Identify the vertical asymptote

The function is undefined at \(x = 0\), so there's a vertical asymptote at \(x = 0\).

Step 3: Find the x-intercept

Set \(f(x) = 0\): \(\log_2(x) = 0\) means \(x = 2^0 = 1\). The x-intercept is at \((1, 0)\).

Step 4: Create a table of values
x f(x)
\(\frac{1}{4}\) \(\log_2\left(\frac{1}{4}\right) = -2\)
\(\frac{1}{2}\) \(\log_2\left(\frac{1}{2}\right) = -1\)
1 \(\log_2(1) = 0\)
2 \(\log_2(2) = 1\)
4 \(\log_2(4) = 2\)
Step 5: Sketch the graph

Plot the points and draw a smooth curve that approaches the y-axis but never touches it.

\(f(x) = \log_2(x)\) has domain \((0, ∞)\), range \((-∞, ∞)\), and vertical asymptote \(x = 0\)
Final answer:

The graph of \(f(x) = \log_2(x)\) is increasing, passes through \((1, 0)\), has domain \((0, ∞)\), range \((-∞, ∞)\), and vertical asymptote \(x = 0\).

Applied rules:

• Domain restriction: Logarithms only accept positive inputs

• X-intercept: Occurs at \((1, 0)\) for all basic logarithmic functions

• Asymptotic behavior: Approaches asymptote as x approaches 0

2 Vertical translation
Exercise 2
Graph the function \(f(x) = \log_3(x) + 2\) and compare it to the basic function.
Definition:

Vertical translation: Adding a constant to a logarithmic function shifts the graph vertically

Original Function
\(g(x) = \log_3(x)\)
Transformed Function
\(f(x) = \log_3(x) + 2\)
Translation
Up 2 units
Step 1: Identify the transformation

The "+2" means the graph of \(f(x) = \log_3(x)\) is shifted up by 2 units.

Step 2: Determine the domain and range

Domain remains the same: \((0, ∞)\) since the input to the logarithm hasn't changed.

Range is now \((-∞, ∞)\) shifted up by 2: still \((-∞, ∞)\).

Step 3: Find the new x-intercept

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

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

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

The x-intercept is at \(\left(\frac{1}{9}, 0\right)\).

Step 4: Identify the vertical asymptote

The vertical asymptote remains at \(x = 0\) since the domain hasn't changed.

Step 5: Create a table of values
x \(\log_3(x)\) \(f(x) = \log_3(x) + 2\)
\(\frac{1}{3}\) \(-1\) \(1\)
1 0 2
3 1 3
9 2 4
Step 6: Sketch the graph

Plot the points and draw the curve, noting that it's the basic logarithmic function shifted up by 2 units.

\(f(x) = \log_3(x) + 2\) has domain \((0, ∞)\), range \((-∞, ∞)\), and vertical asymptote \(x = 0\)
Final answer:

The graph of \(f(x) = \log_3(x) + 2\) is the basic logarithmic function shifted up by 2 units, with x-intercept at \(\left(\frac{1}{9}, 0\right)\).

Applied rules:

• Vertical shift: \(f(x) + k\) shifts graph up by k units

• Domain preservation: Vertical shifts don't change the domain

• Asymptote preservation: Vertical shifts don't change vertical asymptotes

3 Horizontal translation and reflection
Exercise 3
Graph the function \(f(x) = -\log_4(x - 1)\) and identify all transformations.
Definition:

Multiple transformations: A combination of horizontal shifts, vertical reflections, and other transformations applied to a logarithmic function

Function
\(f(x) = -\log_4(x - 1)\)
Transformations
Right 1, reflect over x-axis
Domain
\(x > 1\)
Range
All real numbers
Step 1: Identify the transformations

\(f(x) = -\log_4(x - 1)\) involves:

  • Horizontal shift: Right by 1 unit (due to \(x - 1\))
  • Vertical reflection: Over x-axis (due to the negative sign)
Step 2: Determine the domain

We need \(x - 1 > 0\), so \(x > 1\). The domain is \((1, ∞)\).

Step 3: Find the vertical asymptote

The vertical asymptote is at \(x = 1\) (where the input to the logarithm is 0).

Step 4: Find the x-intercept

Set \(f(x) = 0\): \(-\log_4(x - 1) = 0\)

\(\log_4(x - 1) = 0\)

\(x - 1 = 4^0 = 1\)

\(x = 2\)

The x-intercept is at \((2, 0)\).

Step 5: Create a table of values
x \(x - 1\) \(\log_4(x - 1)\) \(f(x) = -\log_4(x - 1)\)
1.25 0.25 -1 1
2 1 0 0
5 4 1 -1
17 16 2 -2
Step 6: Sketch the graph

Plot the points and draw the curve. Note that the graph decreases (due to reflection) and approaches the asymptote \(x = 1\) from the right.

\(f(x) = -\log_4(x - 1)\) has domain \((1, ∞)\), range \((-∞, ∞)\), and vertical asymptote \(x = 1\)
Final answer:

The graph of \(f(x) = -\log_4(x - 1)\) is decreasing, shifted right by 1 unit, reflected over x-axis, with domain \((1, ∞)\) and vertical asymptote \(x = 1\).

Applied rules:

• Horizontal shift: \(f(x - h)\) shifts graph right by h units

• Vertical reflection: \(-f(x)\) reflects over x-axis

• Domain change: Horizontal shifts affect the domain

Rules and methods, laws,...
\(f(x) = a\log_b(x - h) + k\)
General Logarithmic Function
Domain
\(x > h\)
Input must be positive
Asymptote
\(x = h\)
Vertical asymptote
Range
All real numbers
Unbounded output
Key definitions:

Logarithmic function: A function that is the inverse of an exponential function

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

Domain: The set of all possible input values for which the function is defined

Range: The set of all possible output values of the function

X-intercept: The point where the graph crosses the x-axis

Complete methodology:
  1. Analyze the function: Identify base and transformations
  2. Determine domain: Set argument of log > 0
  3. Identify asymptotes: Where the function is undefined
  4. Find key points: Intercepts and strategic values
  5. Sketch the graph: Plot points and draw smooth curve
Tip 1: Always check that the argument of the logarithm is positive.
Tip 2: The x-intercept occurs when the logarithm equals zero.
Tip 3: The graph approaches the asymptote but never touches it.
Tip 4: For bases > 1, the function increases; for bases between 0 and 1, it decreases.
Common errors: Forgetting domain restrictions, misidentifying asymptotes, confusing horizontal and vertical shifts, ignoring reflections.
Key characteristics: Logarithmic functions are the inverse of exponential functions and have unique properties regarding growth and domain restrictions.
Solution: Exercises 4 to 5
4 Stretch and multiple transformations
Exercise 4
Graph the function \(f(x) = 2\log_5(x + 3) - 1\) and identify all characteristics.
Definition:

Combined transformations: Multiple transformations including horizontal shift, vertical stretch, and vertical shift

Function
\(f(x) = 2\log_5(x + 3) - 1\)
Transformations
Left 3, vertical stretch by 2, down 1
Domain
\(x > -3\)
Asymptote
\(x = -3\)
Step 1: Identify the transformations

\(f(x) = 2\log_5(x + 3) - 1\) involves:

  • Horizontal shift: Left by 3 units (due to \(x + 3\))
  • Vertical stretch: By factor of 2 (due to coefficient 2)
  • Vertical shift: Down by 1 unit (due to \(-1\))
Step 2: Determine the domain

We need \(x + 3 > 0\), so \(x > -3\). The domain is \((-3, ∞)\).

Step 3: Find the vertical asymptote

The vertical asymptote is at \(x = -3\) (where the input to the logarithm is 0).

Step 4: Find the x-intercept

Set \(f(x) = 0\): \(2\log_5(x + 3) - 1 = 0\)

\(2\log_5(x + 3) = 1\)

\(\log_5(x + 3) = \frac{1}{2}\)

\(x + 3 = 5^{1/2} = \sqrt{5}\)

\(x = \sqrt{5} - 3 \approx -0.764\)

Step 5: Find the y-intercept

Set \(x = 0\): \(f(0) = 2\log_5(3) - 1\)

Using change of base: \(f(0) = 2 \cdot \frac{\log(3)}{\log(5)} - 1 \approx 2(0.6826) - 1 \approx 0.365\)

Step 6: Create a table of values
x \(x + 3\) \(\log_5(x + 3)\) \(f(x) = 2\log_5(x + 3) - 1\)
-2 1 0 -1
2 5 1 1
22 25 2 3
Step 7: Sketch the graph

Plot the points and draw the curve, noting the stretch and shifts applied to the basic logarithmic function.

\(f(x) = 2\log_5(x + 3) - 1\) has domain \((-3, ∞)\), range \((-∞, ∞)\), and vertical asymptote \(x = -3\)
Final answer:

The graph of \(f(x) = 2\log_5(x + 3) - 1\) is stretched vertically by 2, shifted left by 3 and down by 1, with domain \((-3, ∞)\) and vertical asymptote \(x = -3\).

Applied rules:

• Vertical stretch: Coefficient a stretches the graph by factor |a|

• Horizontal shift: \(f(x + h)\) shifts left by h units

• Vertical shift: \(f(x) + k\) shifts up by k units

5 Real-world application
Exercise 5
The pH of a solution is given by \(pH = -\log[H^+]\) where \([H^+]\) is the hydrogen ion concentration. Graph the pH function for concentrations from 0.001 to 0.1 moles per liter.
Definition:

pH scale: A logarithmic measure of acidity or basicity of an aqueous solution

Function
\(pH = -\log[H^+]\)
Domain
\(0.001 \leq [H^+] \leq 0.1\)
Range
\(1 \leq pH \leq 3\)
Type
Reflected logarithmic
Step 1: Analyze the function

The function \(pH = -\log[H^+]\) is a reflected logarithmic function where the negative sign flips the typical logarithmic behavior.

Step 2: Determine the domain and range

Given domain: \(0.001 \leq [H^+] \leq 0.1\) (from the problem)

When \([H^+] = 0.001\): \(pH = -\log(0.001) = -(-3) = 3\)

When \([H^+] = 0.1\): \(pH = -\log(0.1) = -(-1) = 1\)

So the pH values range from 1 to 3 (more acidic).

Step 3: Create a table of values
\([H^+]\) \(\log[H^+]\) \(pH = -\log[H^+]\)
0.001 -3 3
0.01 -2 2
0.1 -1 1
Step 4: Interpret the relationship

As hydrogen ion concentration increases, pH decreases. This is the inverse relationship expected in the logarithmic scale.

Step 5: Sketch the graph

Plot the points with \([H^+]\) on the x-axis and pH on the y-axis. The graph decreases as concentration increases.

Step 6: Connect to real-world context

Lower pH values indicate more acidic solutions, which corresponds to higher hydrogen ion concentrations.

The pH function shows that as \([H^+]\) increases, pH decreases logarithmically
Final answer:

The pH function \(pH = -\log[H^+]\) is a decreasing logarithmic function where higher hydrogen ion concentrations correspond to lower pH values, demonstrating the logarithmic nature of the pH scale.

Applied rules:

• Real-world logarithmic functions: Many scientific measurements use logarithmic scales

• Inverse relationships: Negative logarithmic functions show inverse correlations

• Scientific applications: pH, decibels, Richter scale all use logarithmic functions

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

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

Vertical asymptote: A vertical line that the graph approaches but never touches, typically occurring where the function is undefined.

Domain: The set of all possible input values for which the function is defined. For basic logarithmic functions, the domain is \((0, ∞)\).

Range: The set of all possible output values of the function. For basic logarithmic functions, the range is \((-∞, ∞)\).

X-intercept: The point where the graph crosses the x-axis, found by setting \(f(x) = 0\).

Complete methodology:
  1. Analyze the function: Identify base and transformations by comparing to the general form \(f(x) = a\log_b(x - h) + k\).
  2. Determine domain: Set the argument of the logarithm greater than 0 and solve for x.
  3. Identify asymptotes: Find where the function is undefined (typically where the argument equals 0).
  4. Find key points: Calculate intercepts and additional strategic points for graphing.
  5. Sketch the graph: Plot points and draw a smooth curve respecting the asymptotic behavior.
Tip 1: Always check that the argument of the logarithm is positive when determining the domain.
Tip 2: The x-intercept occurs when the logarithm equals zero, which happens when its argument equals 1.
Tip 3: The graph approaches the vertical asymptote but never touches or crosses it.
Tip 4: For bases greater than 1, the function increases; for bases between 0 and 1, it decreases.
Tip 5: Transformations affect domain and asymptotes differently: horizontal shifts change both, vertical shifts change neither.
Common errors: Forgetting domain restrictions, misidentifying asymptotes, confusing horizontal and vertical shifts, ignoring the effect of negative coefficients on the direction of the graph.
Key characteristics: Logarithmic functions grow very slowly compared to polynomial functions, making them useful for modeling phenomena with wide ranges of values.
Essential rules to remember:

• Domain restriction: \(x - h > 0\), so \(x > h\) for the general form

• Vertical asymptote: \(x = h\) for the general form

• Range: Always \((-∞, ∞)\) regardless of transformations

• Horizontal shift: \(f(x - h)\) shifts right by h, \(f(x + h)\) shifts left by h

• Vertical stretch: Coefficient a stretches by factor |a|

Comparative Analysis: Different Logarithmic Functions
Comparative Exercise: Analyzing Different Logarithmic Behaviors
Compare the following logarithmic functions:
\(f_1(x) = \log_2(x)\) (basic)
\(f_2(x) = \log_2(x) + 2\) (vertical shift)
\(f_3(x) = \log_2(x - 1)\) (horizontal shift)
\(f_4(x) = -\log_2(x)\) (reflection)

Analysis: The chart shows how different parameters affect the behavior of logarithmic functions.

  • \(f_1(x) = \log_2(x)\): Basic logarithmic function with domain \((0, ∞)\)
  • \(f_2(x) = \log_2(x) + 2\): Shifted up by 2 units, same domain
  • \(f_3(x) = \log_2(x - 1)\): Shifted right by 1 unit, domain \((1, ∞)\)
  • \(f_4(x) = -\log_2(x)\): Reflected over x-axis, decreasing function

Questions & Answers

Question: Why can't logarithmic functions have negative inputs or zero as input?

Answer: Logarithmic functions are only defined for positive inputs because they are the inverse of exponential functions. If \(y = \log_b(x)\), then \(x = b^y\). Since any positive base raised to any power always results in a positive number, the input to a logarithm must be positive.

  • For any real y: \(b^y > 0\) when \(b > 0\) and \(b ≠ 1\)
  • Therefore: \(x > 0\) for \(\log_b(x)\) to be defined
  • Special case: \(\log_b(0)\) is undefined because there's no real number y such that \(b^y = 0\)

This is why logarithmic functions have vertical asymptotes at the boundary of their domain.

Question: How do I determine if a logarithmic function is increasing or decreasing?

Answer: The behavior of a logarithmic function depends on both the base and any negative coefficients:

  • Base effect: If base > 1, the basic function increases; if 0 < base < 1, the basic function decreases
  • Coefficient effect: A negative coefficient reflects the function over the x-axis

For \(f(x) = a\log_b(x)\):

  • If \(a > 0\) and \(b > 1\): increasing function
  • If \(a > 0\) and \(0 < b < 1\): decreasing function
  • If \(a < 0\) and \(b > 1\): decreasing function (reflection)
  • If \(a < 0\) and \(0 < b < 1\): increasing function (double effect)

Most commonly, we use bases greater than 1, so the sign of the coefficient determines if the function increases or decreases.

Question: What's the difference between \(\log(x)\) and \(\ln(x)\) when graphing?

Answer: Both \(\log(x)\) and \(\ln(x)\) have the same general shape and properties, but they differ in their base:

  • \(\log(x)\): Usually refers to common logarithm (base 10)
  • \(\ln(x)\): Natural logarithm (base e ≈ 2.718)

The graphs have identical characteristics:

  • Same domain: \((0, ∞)\)
  • Same range: \((-∞, ∞)\)
  • Same vertical asymptote: \(x = 0\)
  • Same x-intercept: \((1, 0)\)
  • Both increasing since both bases are greater than 1

The only difference is the rate of growth: \(\ln(x)\) grows slightly faster than \(\log(x)\) because the base e is smaller than 10, making the function steeper.

Question: How are logarithmic functions related to exponential functions graphically?

Answer: Logarithmic and exponential functions are inverses of each other, which has important graphical implications:

  • Reflection property: The graph of \(y = \log_b(x)\) is the reflection of \(y = b^x\) across the line \(y = x\)
  • Domain-range swap: The domain of one function becomes the range of the other
  • Asymptote swap: Horizontal asymptotes of exponentials become vertical asymptotes of logarithms

For example:

  • \(y = 2^x\) has domain \((-∞, ∞)\), range \((0, ∞)\), and horizontal asymptote \(y = 0\)
  • \(y = \log_2(x)\) has domain \((0, ∞)\), range \((-∞, ∞)\), and vertical asymptote \(x = 0\)

Every point \((a, b)\) on the exponential graph corresponds to a point \((b, a)\) on the logarithmic graph.

Question: Why are logarithmic functions important in real-world applications?

Answer: Logarithmic functions are essential in many real-world applications because they can represent phenomena that span multiple orders of magnitude:

  • pH scale: Measures acidity/alkalinity of solutions
  • Decibel scale: Measures sound intensity
  • Richter scale: Measures earthquake intensity
  • Stellar magnitude: Measures brightness of stars
  • Computational complexity: Analyzes algorithm efficiency

Logarithmic scales compress large ranges of values into manageable scales. For example, the pH scale converts hydrogen ion concentrations that vary by factors of millions into a scale from 0 to 14.

They're also fundamental in solving exponential equations, analyzing growth patterns, and modeling processes where relative change matters more than absolute change.