Lesson 6 of 8 · 20 min

Transforming and sketching log graphs

Determine the effect of aa, hh and kk on y=log⁡a(x−h)+ky = \log_a(x - h) + k, find its asymptote, domain and intercepts, sketch it, and find the rule from a graph.

What you will be able to do

  • Describe how hh and kk translate y=log⁡a(x)y = \log_a(x), and how aa changes its steepness.
  • Find the asymptote, domain, intercepts and key points of y=log⁡a(x−h)+ky = \log_a(x - h) + k.
  • Sketch translated log graphs with their key features labelled, with and without technology.
  • Determine aa, hh and kk from a graph.

You have already moved parabolas and exponentials around with hh and kk. Log graphs work the same way. In y=log⁡a(x−h)+ky = \log_a(x - h) + k, hh slides the graph right and kk lifts it up. Because the asymptote is vertical, hh moves it and kk does not.

Interactive

Move y=log⁡a(x−h)+ky = \log_a(x - h) + k

The faint graph is y=log⁡2(x)y = \log_2(x). Watch the dashed asymptote move with hh but not with kk.

The parameters of y=log⁡a(x−h)+ky = \log_a(x - h) + k, a>1a > 1
ParameterEffect on the graph of y=log⁡a(x)y = \log_a(x)
h>0h > 0Translate hh units right; the asymptote becomes x=hx = h
h<0h < 0Translate ∣h∣\lvert h \rvert units left; e.g. log⁡2(x+3)\log_2(x + 3) has asymptote x=−3x = -3
kkTranslate kk units up (k>0k > 0) or down (k<0k < 0); the asymptote does not move
aaLarger aa makes the graph flatter (rise more slowly) for x−h>1x - h > 1

Key idea

Key features of y=log⁡a(x−h)+ky = \log_a(x - h) + k

  • Asymptote x=hx = h, and domain x>hx > h (the argument x−hx - h must be positive).
  • Key points (h+1, k)(h + 1,\ k) and (h+a, k+1)(h + a,\ k + 1): the images of (1,0)(1, 0) and (a,1)(a, 1).
  • xx-intercept: solve log⁡a(x−h)+k=0\log_a(x - h) + k = 0, giving x=h+a−kx = h + a^{-k}.
  • yy-intercept: only if 00 is in the domain, i.e. h<0h < 0. Then y=log⁡a(−h)+ky = \log_a(-h) + k.

State the equation of the asymptote of y=log⁡5(x−4)+2y = \log_5(x - 4) + 2.

Reads asYour answer shows here as maths.

Worked example

Sketch y=log⁡2(x+3)−1y = \log_2(x + 3) - 1

  • Complex familiar
  • Technology free

Sketch the graph of y=log⁡2(x+3)−1y = \log_2(x + 3) - 1, showing the asymptote and the exact coordinates of the intercepts.

y=log⁡2(x+3)−1y = \log_2(x + 3) - 1 is y=log⁡2(x)y = \log_2(x) moved 33 left and 11 down.

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Read off aa, hh, kk; the asymptote is x=hx = h.

  2. Solve y=0y = 0 for the xx-intercept.

  3. Substitute x=0x = 0 for the yy-intercept, if h<0h < 0.

  4. Plot key points and draw the curve beside the dashed asymptote.

Watch out for

  • Putting the asymptote at x=3x = 3. The graph moves left when hh is negative.

  • Assuming the xx-intercept is at (h+1,0)=(−2,0)(h + 1, 0) = (-2, 0). With k≠0k \neq 0 you must solve y=0y = 0.

Find the xx-intercept of y=log⁡3(x−1)−2y = \log_3(x - 1) - 2.

Common mistake

Signs and shifts

y=log⁡2(x+3)y = \log_2(x + 3) moves left 33, so its asymptote is x=−3x = -3. And kk never moves the asymptote: y=log⁡2(x)−4y = \log_2(x) - 4 still has asymptote x=0x = 0.

Don't assume the xx-intercept is (h+1,0)(h + 1, 0). That is only true when k=0k = 0. Solve y=0y = 0.

Reading a rule from a graph. The asymptote gives hh. The point where the argument is 11, at x=h+1x = h + 1, has y=ky = k. One more point then fixes the base.

Worked example

Find the rule of a log graph

  • Complex familiar
  • Technology free

The graph of y=log⁡a(x−h)+ky = \log_a(x - h) + k, with a>1a > 1, has asymptote x=−2x = -2 and passes through (−1,3)(-1, 3) and (2,4)(2, 4). Find aa, hh and kk.

A graph of the form y=log⁡a(x−h)+ky = \log_a(x - h) + k.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. The asymptote gives hh.

  2. The point at x=h+1x = h + 1 gives kk.

  3. Substitute another point and convert to index form to find aa.

Watch out for

  • Taking h=2h = 2 from the asymptote x=−2x = -2. The asymptote is x=hx = h itself.

  • Substituting before finding hh and kk, which leaves three unknowns in one equation.

What is the domain of y=log⁡2(x+5)−1y = \log_2(x + 5) - 1?

Choose one answer

Sketching by hand

Draw the asymptote x=hx = h dashed and label it. Find and label the xx-intercept, and the yy-intercept if h<0h < 0. Plot (h+1,k)(h + 1, k) and (h+a,k+1)(h + a, k + 1). Draw a smooth increasing curve that plunges down beside the asymptote.

With technology

Enter y=log⁡(x−h)÷log⁡(a)+ky = \log(x - h) \div \log(a) + k. Use zero or root for the xx-intercept and the table for the yy-intercept. Copy the sketch with the asymptote added and the intercepts labelled as coordinates.

Exam tip

A sketch earns marks for each labelled feature: the asymptote (dashed, with its equation), each intercept as coordinates, and the correct shape at both ends. Give intercepts exactly in Paper 1, such as (0,log⁡2(3)−1)(0, \log_2(3) - 1), or to the stated accuracy in Paper 2.

Summary

  • y=log⁡a(x−h)+ky = \log_a(x - h) + k is y=log⁡a(x)y = \log_a(x) translated hh right and kk up.

  • Asymptote x=hx = h, domain x>hx > h, range all real numbers.

  • Key points: (h+1,k)(h + 1, k) and (h+a,k+1)(h + a, k + 1).

  • xx-intercept: solve y=0y = 0. A yy-intercept exists only when h<0h < 0.

  • From a graph: the asymptote gives hh, the point at x=h+1x = h + 1 gives kk, and one more point gives aa.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 6 of 80% read

Save your progress with a free account