Skip to content
Family Table Math
Auto

Transformations of Logarithmic Functions

You’ve already transformed parabolas, exponential functions, and sine curves with the same four parameters. Logarithmic functions work exactly the same way. The one thing to keep an eye on is the vertical asymptote: it moves left and right with the graph, and it decides the domain.

y=alog⁡b(k(x−d))+cy = a\log_b\big(k(x - d)\big) + c

With no base written, y=alog⁡(k(x−d))+cy = a\log\big(k(x - d)\big) + c is a transformation of the common logarithm y=log⁡xy = \log x. The parameters do the same jobs as for any function:

ParameterEffect
aavertical stretch or compression by ∣a∣\lvert a \rvert; reflection in the xx-axis if a<0a \lt 0
kkhorizontal stretch or compression by 1∣k∣\dfrac{1}{\lvert k \rvert}; reflection in the yy-axis if k<0k \lt 0
ddhorizontal translation
ccvertical translation

The mapping rule is (x,y)→(xk+d, ay+c)(x, y) \to \left(\dfrac{x}{k} + d,\ ay + c\right).

The parent y=log⁡bxy = \log_b x has the vertical asymptote x=0x = 0. A vertical line is only moved by horizontal translations, so after the transformation:

  • the vertical asymptote is x=dx = d
  • the domain is x>dx \gt d if k>0k \gt 0, or x<dx \lt d if k<0k \lt 0 (a reflection in the yy-axis flips the graph to the other side of the asymptote)
  • the range is still all real numbers

Stretches and vertical shifts don’t move the asymptote at all. (Compare exponential functions, where the asymptote is horizontal and moves with cc.)

ParentKey points
y=log⁡xy = \log x(0.1,−1)(0.1, -1), (1,0)(1, 0), (10,1)(10, 1)
y=log⁡2xy = \log_2 x(12,−1)\left(\tfrac{1}{2}, -1\right), (1,0)(1, 0), (2,1)(2, 1), (4,2)(4, 2), (8,3)(8, 3)
y=log⁡bxy = \log_b x(1b,−1)\left(\tfrac{1}{b}, -1\right), (1,0)(1, 0), (b,1)(b, 1)

Map the key points and the asymptote, then draw a smooth curve that approaches the new asymptote.

Some transformations of a log graph can be described in two ways. For example, y=log⁡(10x)y = \log(10x) is a horizontal compression by a factor of 110\tfrac{1}{10}, but it’s also the same graph as y=log⁡x+1y = \log x + 1, a translation 11 unit up. Example 4 shows why. You saw the same thing with exponential functions, where 3x+2=9(3x)3^{x + 2} = 9\left(3^x\right) is both a horizontal translation and a vertical stretch.

Describe how y=−2log⁡(x−3)+1y = -2\log(x - 3) + 1 relates to y=log⁡xy = \log x. State the asymptote, domain, and range.

Solution. Here a=−2a = -2, k=1k = 1, d=3d = 3, and c=1c = 1.

  • A vertical stretch by a factor of 22 and a reflection in the xx-axis.
  • A translation 33 units right and 11 unit up.

The asymptote moves right 33: x=3x = 3. Since k>0k \gt 0, the domain is {x∈R∣x>3}\{x \in \mathbb{R} \mid x \gt 3\}. The range is {y∈R}\{y \in \mathbb{R}\}.

Example 2: Sketching with mapping notation

Section titled “Example 2: Sketching with mapping notation”

Sketch y=2log⁡2(x+3)−1y = 2\log_2(x + 3) - 1. State the asymptote, domain, range, and intercepts.

Solution. a=2a = 2, d=−3d = -3, and c=−1c = -1, so the mapping rule is (x,y)→(x−3, 2y−1)(x, y) \to (x - 3,\ 2y - 1).

y=log⁡2xy = \log_2 x(12,−1)\left(\tfrac{1}{2}, -1\right)(1,0)(1, 0)(2,1)(2, 1)(4,2)(4, 2)(8,3)(8, 3)
y=2log⁡2(x+3)−1y = 2\log_2(x + 3) - 1(−52,−3)\left(-\tfrac{5}{2}, -3\right)(−2,−1)(-2, -1)(−1,1)(-1, 1)(1,3)(1, 3)(5,5)(5, 5)

The asymptote x=0x = 0 moves left 33, to x=−3x = -3.

The graph of y = 2 log base 2 of (x + 3), minus 1, with vertical asymptote x = -3, and the dashed parent y = log base 2 of x. −4 −2 2 4 6 −2 4 (−2.5, −3) (−2, −1) (−1, 1) (1, 3) (5, 5) x = −3 y = log₂ x y = 2 log₂(x + 3) − 1
The asymptote moves left with the graph, from x=0x = 0 to x=−3x = -3.

Domain {x∈R∣x>−3}\{x \in \mathbb{R} \mid x \gt -3\}; range {y∈R}\{y \in \mathbb{R}\}.

yy-intercept: y=2log⁡23−1≈2.17y = 2\log_2 3 - 1 \approx 2.17, which matches the graph crossing the yy-axis between (−1,1)(-1, 1) and (1,3)(1, 3).

xx-intercept: set y=0y = 0:

2log⁡2(x+3)−1=0⇒log⁡2(x+3)=12⇒x+3=212⇒x=2−3≈−1.592\log_2(x + 3) - 1 = 0 \quad\Rightarrow\quad \log_2(x + 3) = \tfrac{1}{2} \quad\Rightarrow\quad x + 3 = 2^{\frac{1}{2}} \quad\Rightarrow\quad x = \sqrt{2} - 3 \approx -1.59

Describe the transformations in y=log⁡(2x−8)y = \log(2x - 8), map the points (0.1,−1)(0.1, -1), (1,0)(1, 0), and (10,1)(10, 1), and state the asymptote and domain.

Solution. First factor out the coefficient of xx:

y=log⁡(2x−8)=log⁡(2(x−4))y = \log(2x - 8) = \log\big(2(x - 4)\big)

So k=2k = 2 and d=4d = 4: a horizontal compression by a factor of 12\tfrac{1}{2}, then a translation 44 units right. The mapping rule is (x,y)→(x2+4, y)(x, y) \to \left(\tfrac{x}{2} + 4,\ y\right):

(0.1,−1)→(4.05,−1),(1,0)→(4.5,0),(10,1)→(9,1)(0.1, -1) \to (4.05, -1), \qquad (1, 0) \to (4.5, 0), \qquad (10, 1) \to (9, 1)

The asymptote is x=4x = 4 and the domain is {x∈R∣x>4}\{x \in \mathbb{R} \mid x \gt 4\}.

Check: at x=9x = 9, y=log⁡(18−8)=log⁡10=1y = \log(18 - 8) = \log 10 = 1. ✓ Also, the argument 2x−82x - 8 is positive exactly when x>4x \gt 4, which confirms the domain.

Show that y=log⁡(1000x)y = \log(1000x) and y=log⁡x+3y = \log x + 3 have the same graph. Describe each as a transformation of y=log⁡xy = \log x.

Solution. Pick any x>0x \gt 0 and write it as a power of 1010: x=10mx = 10^m, so log⁡x=m\log x = m. Then

log⁡(1000x)=log⁡(103⋅10m)=log⁡(10m+3)=m+3=log⁡x+3\log(1000x) = \log\left(10^3 \cdot 10^m\right) = \log\left(10^{m + 3}\right) = m + 3 = \log x + 3

So the two equations give the same yy for every xx, and the graphs are identical.

  • y=log⁡(1000x)y = \log(1000x): a horizontal compression by a factor of 11000\tfrac{1}{1000}.
  • y=log⁡x+3y = \log x + 3: a translation 33 units up.

Check with a point: (10,1)(10, 1) on y=log⁡xy = \log x maps to (0.01,1)(0.01, 1) under the compression and to (10,4)(10, 4) under the translation. Both are on y=log⁡(1000x)y = \log(1000x): log⁡10=1\log 10 = 1 ✓ and log⁡10 000=4\log 10\,000 = 4 ✓.

Moving the asymptote with cc. A log graph’s asymptote is vertical, so only dd moves it. y=log⁡(x+2)+5y = \log(x + 2) + 5 has asymptote x=−2x = -2, not y=5y = 5.

Reading the horizontal shift with the wrong sign. log⁡(x+3)\log(x + 3) moves the graph left 33, and the domain becomes x>−3x \gt -3.

Not factoring out kk. y=log⁡(2x−8)y = \log(2x - 8) is log⁡(2(x−4))\log\big(2(x - 4)\big): the shift is 44 right, not 88. A quick check: the asymptote is where the argument equals 00, and 2x−8=02x - 8 = 0 at x=4x = 4.

Getting the domain backwards after a reflection in the yy-axis. If k<0k \lt 0, the graph is on the left of the asymptote. For y=log⁡(−x)y = \log(-x) the domain is x<0x \lt 0.

Using the exponential’s key points. The log graph doesn’t pass through (0,1)(0, 1). Start from (1,0)(1, 0) and (b,1)(b, 1) (for base 1010, (1,0)(1, 0) and (10,1)(10, 1)).

1. (Warm-up) State the asymptote and domain of y=log⁡(x+5)−2y = \log(x + 5) - 2.

Solution

Asymptote x=−5x = -5; domain {x∈R∣x>−5}\{x \in \mathbb{R} \mid x \gt -5\}.

2. (Warm-up) Describe the transformations that take y=log⁡xy = \log x to y=3log⁡x+4y = 3\log x + 4.

Solution

A vertical stretch by a factor of 33, then a translation 44 units up. The asymptote stays at x=0x = 0.

3. (Warm-up) Describe the transformation that takes y=log⁡xy = \log x to y=log⁡(−x)y = \log(-x), and state the domain.

Solution

A reflection in the yy-axis. The domain is {x∈R∣x<0}\{x \in \mathbb{R} \mid x \lt 0\}.

4. (Core) For y=log⁡3(x−2)+1y = \log_3(x - 2) + 1, map the points (13,−1)\left(\tfrac{1}{3}, -1\right), (1,0)(1, 0), (3,1)(3, 1), and (9,2)(9, 2) of y=log⁡3xy = \log_3 x. State the asymptote, domain, and range.

Solution

The mapping rule is (x,y)→(x+2, y+1)(x, y) \to (x + 2,\ y + 1):

(13,−1)→(73,0),(1,0)→(3,1),(3,1)→(5,2),(9,2)→(11,3)\left(\tfrac{1}{3}, -1\right) \to \left(\tfrac{7}{3}, 0\right), \quad (1, 0) \to (3, 1), \quad (3, 1) \to (5, 2), \quad (9, 2) \to (11, 3)

Asymptote x=2x = 2; domain {x∈R∣x>2}\{x \in \mathbb{R} \mid x \gt 2\}; range {y∈R}\{y \in \mathbb{R}\}.

5. (Core) For y=−2log⁡(x+1)+2y = -2\log(x + 1) + 2:

  • (a) Describe the transformations.
  • (b) Map (0.1,−1)(0.1, -1), (1,0)(1, 0), and (10,1)(10, 1).
  • (c) Find the intercepts and state the asymptote.
Solution

(a) A vertical stretch by a factor of 22, a reflection in the xx-axis, and a translation 11 unit left and 22 units up.

(b) The rule is (x,y)→(x−1, −2y+2)(x, y) \to (x - 1,\ -2y + 2):

(0.1,−1)→(−0.9,4),(1,0)→(0,2),(10,1)→(9,0)(0.1, -1) \to (-0.9, 4), \qquad (1, 0) \to (0, 2), \qquad (10, 1) \to (9, 0)

(c) The yy-intercept is 22 (from the point (0,2)(0, 2)). For the xx-intercept, −2log⁡(x+1)+2=0-2\log(x + 1) + 2 = 0 gives log⁡(x+1)=1\log(x + 1) = 1, so x+1=10x + 1 = 10 and x=9x = 9. The asymptote is x=−1x = -1.

6. (Core) Describe the transformations in y=log⁡2(4x+8)y = \log_2(4x + 8) and map (1,0)(1, 0), (2,1)(2, 1), and (4,2)(4, 2). Then show that the graph is also a vertical translation of y=log⁡2(x+2)y = \log_2(x + 2).

Solution

Factor: y=log⁡2(4(x+2))y = \log_2\big(4(x + 2)\big). A horizontal compression by a factor of 14\tfrac{1}{4}, then a translation 22 units left. The rule is (x,y)→(x4−2, y)(x, y) \to \left(\tfrac{x}{4} - 2,\ y\right):

(1,0)→(−74,0),(2,1)→(−32,1),(4,2)→(−1,2)(1, 0) \to \left(-\tfrac{7}{4}, 0\right), \qquad (2, 1) \to \left(-\tfrac{3}{2}, 1\right), \qquad (4, 2) \to (-1, 2)

Since 4=224 = 2^2, write x+2=2mx + 2 = 2^m. Then log⁡2(4(x+2))=log⁡2(2m+2)=m+2=log⁡2(x+2)+2\log_2\big(4(x + 2)\big) = \log_2\left(2^{m + 2}\right) = m + 2 = \log_2(x + 2) + 2. So the graph is also y=log⁡2(x+2)y = \log_2(x + 2) translated 22 units up.

Check: at x=−1x = -1, log⁡2(1)+2=2\log_2(1) + 2 = 2, which matches (−1,2)(-1, 2). ✓

7. (Core) A function of the form y=alog⁡x+cy = a\log x + c passes through (1,4)(1, 4) and (10,1)(10, 1). Find aa and cc.

Solution

At x=1x = 1: alog⁡1+c=0+c=4a\log 1 + c = 0 + c = 4, so c=4c = 4.

At x=10x = 10: alog⁡10+4=a+4=1a\log 10 + 4 = a + 4 = 1, so a=−3a = -3.

The function is y=−3log⁡x+4y = -3\log x + 4.

8. (Challenge) For y=log⁡(−2(x−5))y = \log\big(-2(x - 5)\big), describe the transformations, map (0.1,−1)(0.1, -1), (1,0)(1, 0), and (10,1)(10, 1), and state the asymptote and domain.

Solution

k=−2k = -2 and d=5d = 5: a horizontal compression by a factor of 12\tfrac{1}{2}, a reflection in the yy-axis, and a translation 55 units right. The rule is (x,y)→(−x2+5, y)(x, y) \to \left(-\tfrac{x}{2} + 5,\ y\right):

(0.1,−1)→(4.95,−1),(1,0)→(4.5,0),(10,1)→(0,1)(0.1, -1) \to (4.95, -1), \qquad (1, 0) \to (4.5, 0), \qquad (10, 1) \to (0, 1)

Asymptote x=5x = 5. Because k<0k \lt 0, the graph is to the left of the asymptote: the domain is {x∈R∣x<5}\{x \in \mathbb{R} \mid x \lt 5\}.

Check: at x=0x = 0, y=log⁡(−2(−5))=log⁡10=1y = \log\big(-2(-5)\big) = \log 10 = 1. ✓

9. (Challenge) The point (7,5)(7, 5) is on the graph of y=2log⁡3(x−4)+3y = 2\log_3(x - 4) + 3. Which point on y=log⁡3xy = \log_3 x did it come from?

Solution

The rule is (x,y)→(x+4, 2y+3)(x, y) \to (x + 4,\ 2y + 3). Work backwards:

x+4=7⇒x=3,2y+3=5⇒y=1x + 4 = 7 \Rightarrow x = 3, \qquad 2y + 3 = 5 \Rightarrow y = 1

It came from (3,1)(3, 1), which is on y=log⁡3xy = \log_3 x since log⁡33=1\log_3 3 = 1. ✓