Lesson 5 of 8 · 15 min

The graph of y=log⁡a(x)y = \log_a(x)

Recognise the shape and key features of y=log⁡a(x)y = \log_a(x) for a>1a > 1, its asymptote, intercept and domain, and see it as the reflection of y=axy = a^x in the line y=xy = x.

What you will be able to do

  • State the domain, range, asymptote and intercept of y=log⁡a(x)y = \log_a(x) for a>1a > 1.
  • Explain why y=log⁡a(x)y = \log_a(x) is the reflection of y=axy = a^x in the line y=xy = x.
  • Describe how the base changes the graph, and sketch y=log⁡a(x)y = \log_a(x) with key points labelled.

The table for y=2xy = 2^x gives the points (0,1)(0, 1), (1,2)(1, 2), (2,4)(2, 4) and (3,8)(3, 8). Since log⁡2\log_2 undoes 2x2^x, the graph of y=log⁡2(x)y = \log_2(x) has the same points with the coordinates swapped: (1,0)(1, 0), (2,1)(2, 1), (4,2)(4, 2) and (8,3)(8, 3).

Swapping xx and yy reflects a graph in the line y=xy = x. So the log graph is the exponential graph, reflected.

y=2xy = 2^x and y=log⁡2(x)y = \log_2(x) are reflections in y=xy = x. The horizontal asymptote y=0y = 0 of one becomes the vertical asymptote x=0x = 0 of the other.

Key idea

Features of y=log⁡a(x)y = \log_a(x), a>1a > 1

  • Domain x>0x > 0: you can only take the log of a positive number.
  • Range all real numbers.
  • Vertical asymptote x=0x = 0 (the yy-axis): as x→0+x \to 0^+, y→−∞y \to -\infty.
  • xx-intercept (1,0)(1, 0), because log⁡a(1)=0\log_a(1) = 0. There is no yy-intercept.
  • It passes through (a,1)(a, 1), because log⁡a(a)=1\log_a(a) = 1.
  • It is always increasing, but ever more slowly: as x→∞x \to \infty, y→∞y \to \infty.
Interactive

Change the base

Every graph passes through (1,0)(1, 0). For x>1x > 1, a larger base gives a flatter graph; for 0<x<10 < x < 1 it gives values closer to 00. The dashed exponential is always the reflection in y=xy = x.

Which point lies on the graph of y=log⁡a(x)y = \log_a(x) for every base a>1a > 1?

Choose one answer

Worked example

Key features of y=log⁡3(x)y = \log_3(x)

  • Simple familiar
  • Technology free

For y=log⁡3(x)y = \log_3(x), state the domain, range, asymptote and intercepts, find three points on the graph, and sketch it.

y=log⁡3(x)y = \log_3(x) with its asymptote and key points.

4 steps

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

Method

  1. Asymptote x=0x = 0, domain x>0x > 0.

  2. Plot (1a,−1)\left(\frac{1}{a}, -1\right), (1,0)(1, 0), (a,1)(a, 1) and (a2,2)(a^2, 2).

  3. Draw a smooth increasing curve hugging the asymptote.

Watch out for

  • Drawing a yy-intercept: the curve never touches the yy-axis.

  • Making the curve level off to the right. It keeps rising without limit.

The graph of y=log⁡a(x)y = \log_a(x) passes through (16,2)(16, 2). Find aa.

Common mistake

It never levels off

The log graph rises so slowly that it can look as if it approaches a horizontal line. It does not: log⁡2(x)\log_2(x) reaches 1010 at x=1024x = 1024 and 2020 at xx about a million. The only asymptote is the vertical one, x=0x = 0.

For y=log⁡3(x)y = \log_3(x), what happens to yy as x→0+x \to 0^+ (as xx gets closer to 00 from the right)?

Choose one answer

Sketching by hand

Draw the asymptote x=0x = 0 (the yy-axis), plot (1,0)(1, 0) and (a,1)(a, 1), and one point to the left such as (1a,−1)\left(\frac{1}{a}, -1\right). Join them with a smooth curve that hugs the asymptote downward and keeps rising slowly to the right.

With technology

Enter y=log⁡a(x)y = \log_a(x) directly, or as log⁡(x)log⁡(a)\frac{\log(x)}{\log(a)}. Use the table or trace to confirm key points, and remember the screen cannot show the asymptote: you must label it on your sketch.

Summary

  • y=log⁡a(x)y = \log_a(x) is the inverse of y=axy = a^x: its graph is the reflection in y=xy = x.

  • For a>1a > 1: domain x>0x > 0, range all real yy, vertical asymptote x=0x = 0, xx-intercept (1,0)(1, 0), no yy-intercept.

  • The graph passes through (1a,−1)\left(\frac{1}{a}, -1\right), (1,0)(1, 0) and (a,1)(a, 1), and is always increasing.

  • A larger base gives a flatter graph for x>1x > 1.

Finished the lesson?

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

Lesson 5 of 80% read

Save your progress with a free account