Graphing Logarithmic Functions and Transformations

Relationship Between Exponential and Logarithmic Functions

Logarithmic functions are mathematically defined as the inverses of exponential functions. To understand this relationship, consider the exponential function f(x)=3xf(x) = 3^x. The table of values for this function reveals the following data points:

  • In the domain (,)(-\infty, \infty), when x=2x = -2, y=19y = \frac{1}{9}.
  • When x=1x = -1, y=13y = \frac{1}{3}.
  • When x=0x = 0, y=1y = 1.
  • When x=1x = 1, y=3y = 3.
  • When x=2x = 2, y=9y = 9.

The range for the exponential function f(x)=3xf(x) = 3^x is (0,)(0, \infty).

To graph the inverse function, denoted as f1(x)f^{-1}(x), you must swap the xx and yy values. This inverse relationship results in the equation x=3yx = 3^y, which is rewritten in logarithmic form as y=log3(x)y = \log_{3}(x). The points for this logarithmic function are:

  • When x=19x = \frac{1}{9}, y=2y = -2.
  • When x=13x = \frac{1}{3}, y=1y = -1.
  • When x=1x = 1, y=0y = 0.
  • When x=3x = 3, y=1y = 1.
  • When x=9x = 9, y=2y = 2.

The domain and range of the logarithmic function are the exact opposites of the exponential function: the Domain is (0,)(0, \infty) and the Range is (,)(-\infty, \infty).

Key Features Comparison

The following table summarizes the distinct characteristics of exponential parent functions versus logarithmic parent functions:

  1. Function f(x)=bxf(x) = b^x (Exponential)    - Domain: (,)(-\infty, \infty)    - Range: (0,)(0, \infty)    - Asymptote: y=0y = 0 (Horizontal Asymptote)    - Intercept: y-intercept at (0,1)y\text{-intercept at } (0, 1)

  2. Function f(x)=logb(x)f(x) = \log_{b}(x) (Logarithmic)    - Domain: (0,)(0, \infty)    - Range: (,)(-\infty, \infty)    - Asymptote: x=0x = 0 (Vertical Asymptote)    - Intercept: x-intercept at (1,0)x\text{-intercept at } (1, 0)

Method for Graphing Logarithmic Functions

To graph a logarithmic function such as y=log4(x)y = \log_{4}(x), identifying the base and distinct coordinates is essential.

  • Base Identification: In the function y=log4(x)y = \log_{4}(x), the base b=4b = 4.
  • Three Distinct Points: Every logarithmic parent function of the form y=logb(x)y = \log_{b}(x) passes through three predictable points:    1. (1b,1)(\frac{1}{b}, -1): For this example, (14,1)(\frac{1}{4}, -1).    2. (1,0)(1, 0): This is the universal x-interceptx\text{-intercept}.    3. (b,1)(b, 1): For this example, (4,1)(4, 1).

Once these points are plotted, connect them with a smooth curve that approaches but never touches the vertical asymptote. For y=log4(x)y = \log_{4}(x), the Domain is (0,)(0, \infty) and the Range is (,)(-\infty, \infty).

Logarithmic Transformations

The general transformed logarithmic function is represented by the equation y=alogb(xh)+ky = a \log_{b}(x - h) + k. Each variable represents a specific transformation of the parent graph:

  • a1|a| \geq 1: Indicates a vertical stretch.
  • 0<a<10 < |a| < 1: Indicates a vertical shrink.
  • a<0a < 0: If the value of aa is negative, the graph is reflected over the x-axisx\text{-axis}.
  • hh: This represents a horizontal translation. A positive value shifts the graph right, and a negative value shifts it left (note the formula uses xhx - h).
  • kk: This represents a vertical translation. A positive value shifts the graph up, and a negative shifts it down.

The Order of Transformations (HSRV)

When graphing transformations, it is vital to follow a specific sequence known as HSRV:

  1. H (Horizontal): Horizontal shifts.
  2. S (Stretch/Shrink): Vertical stretching or shrinking.
  3. R (Reflect): Reflections over the axes.
  4. V (Vertical): Vertical shifts.

Example Graphing with Transformations

Consider the function y=2log2(x2)+3y = 2 \log_{2}(x - 2) + 3. The parent function is y=log2(x)y = \log_{2}(x).

Parent Points for y=log2(x)y = \log_{2}(x):

  • (12,1)(\frac{1}{2}, -1)
  • (1,0)(1, 0)
  • (2,1)(2, 1)

Identified Transformations:

  • h=2h = 2: Shifts the graph right 2 units.
  • k=3k = 3: Shifts the graph up 3 units.
  • a=2a = 2: Indicates a vertical stretch by a factor of 2 (no reflection).

Point Transformation Process:

  1. Horizontal Shift (x+2x + 2):    - (12+2,1)=(2.5,1)(\frac{1}{2} + 2, -1) = (2.5, -1)    - (1+2,0)=(3,0)(1 + 2, 0) = (3, 0)    - (2+2,1)=(4,1)(2 + 2, 1) = (4, 1)

  2. Vertical Stretch and Shift (2y+32y + 3):    - For point (2.5,1)(2.5, -1): 2(1)+3=12(-1) + 3 = 1. Final point: (2.5,1)(2.5, 1).    - For point (3,0)(3, 0): 2(0)+3=32(0) + 3 = 3. Final point: (3,3)(3, 3).    - For point (4,1)(4, 1): 2(1)+3=52(1) + 3 = 5. Final point: (4,5)(4, 5).

Guided Practice Example

Graph the function y=log10(x+3)1y = -\log_{10}(x + 3) - 1.

Base Identification and Parent Points: The base is 10. The parent function points are (110,1)(\frac{1}{10}, -1), (1,0)(1, 0), and (10,1)(10, 1).

Transformations:

  • h=3h = -3: Horizontal shift left 3 units.
  • k=1k = -1: Vertical shift down 1 unit.
  • a=1a = -1: Reflection over the x-axisx\text{-axis}.

Transformed Points Calculation: Using the sequence x3x - 3 and y1-y - 1:

  • Point 1: (1103,(1)1)=(2.9,0)(\frac{1}{10} - 3, -(-1) - 1) = (-2.9, 0)
  • Point 2: (13,(0)1)=(2,1)(1 - 3, -(0) - 1) = (-2, -1)
  • Point 3: (103,(1)1)=(7,2)(10 - 3, -(1) - 1) = (7, -2)

The Final Product points are (2.9,0)(-2.9, 0), (2,1)(-2, -1), and (7,2)(7, -2).

Writing Logarithmic Functions from Graphs

You can determine the equation of a logarithmic function by identifying its translations relative to a parent function.

Example 8: Analyzing Translations If a graph is based on f(x)=log4(x)f(x) = \log_{4}(x) but has been translated 5 units up, then the value of kk is 5. The resulting function is g(x)=log4(x)+5g(x) = \log_{4}(x) + 5.

Case Studies for f(x)=log3(x)f(x) = \log_{3}(x): a. Vertical Translation: For a graph undergoing a vertical shift g(x)=f(x)+kg(x) = f(x) + k, if the graph is shifted up 4 units, the equation becomes g(x)=log3(x)+4g(x) = \log_{3}(x) + 4. b. Vertical Stretch/Shrink: For a graph undergoing a compression via g(x)=kf(x)g(x) = k \cdot f(x), where the points are shrunk vertically by a factor of 13\frac{1}{3}, the resulting equation is g(x)=13log3(x)g(x) = \frac{1}{3} \log_{3}(x).