Logarithmic graph y = logₐ x — properties and inverse

Choose a base and the calculator draws the logarithmic graph y = logₐ x together with its inverse, the exponential y = aˣ, and the line y = x, and shows the domain, the root, whether the function is increasing or decreasing, and the asymptote.

y = log₂ x
−2 2 4 6 8 −4 −2 2 4 xy (1, 0) (2, 1)

Drag the sliders and the graph and its properties update straight away. Drag the graph with the mouse to move it, and use the buttons in the top right to zoom in and out.

Function
y = log₂ x

y = log₂ x is an increasing logarithmic function, the inverse of y = 2ˣ.

Step-by-step breakdown
  1. Domain(0, +∞)
  2. Range(−∞, +∞)
  3. Roots (x-intercepts)(1, 0)
  4. Increasing or decreasingincreasing over the whole domain
  5. Asymptotex = 0
  6. Inverse functiony = 2ˣ

Formula

y=logₐ x

The base a > 0 and a ≠ 1, and the input x > 0. ln x is the logarithm to base e, and log x without a base is the logarithm to base 10.

How we got there

y = log₂ x

A logarithmic function and an exponential function with the same base are inverses: their graphs are reflections of each other in the line y = x.

How to draw a logarithmic graph

  1. Use powers of the base as x

    For y = log₂ x: x = 1/4, 1/2, 1, 2, 4 give y = −2, −1, 0, 1, 2.

  2. Plot the points

    The graph always passes through (1, 0) and (a, 1).

  3. Draw the curve

    Near the y-axis it plunges downwards (the asymptote x = 0); to the right it rises slowly.

  4. Check the base

    If 0 < a < 1, the graph is reflected in the x-axis: the function is decreasing.

Logs still confusing? Find a maths tutor for Year 12

The inverse of the exponential

If 2³ = 8, then log₂ 8 = 3. So the graph of y = log₂ x is the graph of y = 2ˣ reflected in the line y = x: the page shows both together.

A logarithm grows very slowly: for log₂ x to go up by 1, x has to double.

Logarithmic equations and inequalities

To solve them, first write down where each logarithm is defined: its input must be positive.

In inequalities, the sign stays the same when a > 1 and is reversed when 0 < a < 1 — just as for the exponential function.

Common mistakes

  • Forgetting where the log is defined: log₂(x − 3) exists only for x > 3.
  • Thinking the graph crosses the y-axis: x = 0 is not in the domain.
  • Mixing up log₂ x and 2ˣ: they are inverse functions, not the same function.

Table of values

Values of the function at a few points, so you can plot the graph by hand.

y = log₂ x

xy
1/4−2
1/2−1
10
21
42

Frequently asked questions

A function y = logₐ x, where a > 0 and a ≠ 1. It is the inverse of the exponential function y = aˣ: logₐ x is the power you raise a to in order to get x.

x > 0: the logarithm of zero or of a negative number does not exist. The range is all real numbers.

At (1, 0), because logₐ 1 = 0 for any base.

When a > 1; when 0 < a < 1, it is decreasing. This decides which way the sign goes in log inequalities.

ln x is the natural logarithm, to base e ≈ 2.718; log x, as on a calculator, is the logarithm to base 10. You can choose both bases on this page.

Use the change-of-base formula: logₐ x = ln x / ln a. The logarithm calculator gives the values directly.

Struggling with graphs?

Book a free introductory lesson with a Mathema tutor. 30 minutes online, no commitment — we find the gap and the plan to close it.