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⁡2(x8)y = \log_2\left(\tfrac{x}{8}\right) is a horizontal stretch by a factor of 88, but it’s also the same graph as y=log⁡2x−3y = \log_2 x - 3, a translation 33 units down. 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⁡2(x8)y = \log_2\left(\dfrac{x}{8}\right) and y=log⁡2x−3y = \log_2 x - 3 have the same graph. Describe each as a transformation of y=log⁡2xy = \log_2 x.

Solution. Pick any x>0x \gt 0 and write it as a power of 22: x=2mx = 2^m, so log⁡2x=m\log_2 x = m. Since 8=238 = 2^3,

log⁡2(x8)=log⁡2(2m23)=log⁡2(2m−3)=m−3=log⁡2x−3\log_2\left(\frac{x}{8}\right) = \log_2\left(\frac{2^m}{2^3}\right) = \log_2\left(2^{m - 3}\right) = m - 3 = \log_2 x - 3

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

  • y=log⁡2(x8)y = \log_2\left(\tfrac{x}{8}\right): a horizontal stretch by a factor of 88 (the rule is (x,y)→(8x, y)(x, y) \to (8x,\ y)).
  • y=log⁡2x−3y = \log_2 x - 3: a translation 33 units down.

Check with a point: (2,1)(2, 1) on y=log⁡2xy = \log_2 x maps to (16,1)(16, 1) under the stretch and to (2,−2)(2, -2) under the translation. Both are on y=log⁡2(x8)y = \log_2\left(\tfrac{x}{8}\right): log⁡22=1\log_2 2 = 1 ✓ and log⁡214=−2\log_2 \tfrac{1}{4} = -2 ✓.

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. ✓

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.

State domains and ranges in set notation, and use mapping notation for key points.

H1. (Foundations) For each function, describe the transformations of the parent function, then state the vertical asymptote, domain, and range.

  • (a) y=4log⁡(x+6)−3y = 4\log(x + 6) - 3
  • (b) y=−12log⁡5(x−1)+2y = -\tfrac{1}{2}\log_5(x - 1) + 2
  • (c) y=3log⁡(−x)−1y = 3\log(-x) - 1

H2. (Foundations) Consider y=3log⁡4(x−5)−6y = 3\log_4(x - 5) - 6.

  • (a) Write the mapping rule.
  • (b) Map the key points (14,−1)\left(\tfrac{1}{4}, -1\right), (1,0)(1, 0), (4,1)(4, 1), and (16,2)(16, 2) of y=log⁡4xy = \log_4 x.
  • (c) State the asymptote, domain, and range, and sketch the graph.

H3. (Core) Consider y=log⁡(5x+20)y = \log(5x + 20).

  • (a) Rewrite the equation so that you can read off kk and dd. Describe the transformations.
  • (b) Map (0.1,−1)(0.1, -1), (1,0)(1, 0), and (10,1)(10, 1).
  • (c) State the asymptote and domain. Then find the xx-intercept algebraically and check that it matches one of your mapped points.
  • (d) Find the yy-intercept, rounded to two decimal places.

H4. (Core) Find the intercepts of each function, if they exist.

  • (a) y=2log⁡3(x+1)−4y = 2\log_3(x + 1) - 4. Also find the xx-value where y=2y = 2.
  • (b) y=2log⁡(x−3)+1y = 2\log(x - 3) + 1. Give the exact xx-intercept and a decimal to two places, and explain why there is no yy-intercept.

H5. (Core) Write an equation for each transformed function, and state its asymptote and domain.

  • (a) y=log⁡2xy = \log_2 x is stretched vertically by a factor of 33, reflected in the xx-axis, compressed horizontally by a factor of 12\tfrac{1}{2}, and then translated 44 units left and 11 unit up. Also find the image of (2,1)(2, 1) and check it in your equation.
  • (b) y=log⁡xy = \log x is stretched vertically by a factor of 22, reflected in the yy-axis, and then translated 22 units right. Also find the images of (0.1,−1)(0.1, -1), (1,0)(1, 0), and (10,1)(10, 1).

H6. (Core) Sound level in decibels (dB) can be written as L=10log⁡I+120L = 10\log I + 120, where II is the sound intensity in watts per square metre (W/m2\text{W/m}^2).

  • (a) Describe how the graph of LL against II is a transformation of y=log⁡xy = \log x. What is the domain in this context?
  • (b) A (hypothetical) reading on a busy Montréal street is I=10−5 W/m2I = 10^{-5}\ \text{W/m}^2. Find LL.
  • (c) Show that the formula can also be written as L=10log⁡(1012I)L = 10\log\left(10^{12}I\right), and describe the transformations in this form.
  • (d) A power tool is rated at 8585 dB. Find its intensity, exactly and in scientific notation to three significant figures.

H7. (Challenge) A student wrote: ”y=log⁡(2x−6)y = \log(2x - 6) is y=log⁡xy = \log x compressed horizontally by a factor of 12\tfrac{1}{2} and translated 66 units right. So the asymptote is x=6x = 6 and the domain is x>6x \gt 6.”

  • (a) Find and explain the error.
  • (b) Give the correct asymptote and domain, and map (0.1,−1)(0.1, -1), (1,0)(1, 0), and (10,1)(10, 1).
  • (c) Evaluate yy at x=6x = 6. Explain how this alone shows the student’s asymptote can’t be right.

H8. (Challenge) A function of the form y=alog⁡3(x+2)+cy = a\log_3(x + 2) + c passes through (7,1)(7, 1) and (25,4)(25, 4).

  • (a) Find aa and cc.
  • (b) State the asymptote and domain.
  • (c) Find the exact xx-intercept and round it to two decimal places.

H9. (Challenge) Mei says y=log⁡3(9x)y = \log_3(9x) and y=2+log⁡3xy = 2 + \log_3 x must be different graphs, because one is a horizontal compression and the other is a vertical translation.

  • (a) Make a table of values of both functions at x=19x = \tfrac{1}{9}, 11, 33, and 99. What do you notice?
  • (b) Explain why the two equations give the same yy-value for every x>0x \gt 0. (Hint: write x=3mx = 3^m.)
  • (c) Mei then claims y=log⁡3(x+9)y = \log_3(x + 9) is also the same graph as y=2+log⁡3xy = 2 + \log_3 x. Show that she is wrong.
  • (d) Write y=log⁡5(125x)y = \log_5(125x) as a vertical translation of y=log⁡5xy = \log_5 x.

H10. (Challenge) A function of the form y=log⁡(k(x−d))y = \log\big(k(x - d)\big) has the vertical asymptote x=2x = 2 and passes through (−3,1)(-3, 1).

  • (a) Find dd and kk.
  • (b) Explain why no positive value of kk could work.
  • (c) State the domain and find the xx-intercept.