Graph of y = log₂ x

Logarithmic functions · Updated 2026-11-26

Quick answer

The graph of y = log₂ x is a logarithmic function. Its domain is x > 0 and its range is all real numbers. It crosses the x-axis at (1, 0), and it has no y-intercept. Asymptotes: Vertical x = 0.

−22468101214−5−4−3−2−112345
  • y=log_2(x)
Open in graphing calculator

Click the curve to show intercepts and turning points.

Key features

Domainx > 0
RangeAll real numbers
x-intercepts(1, 0)
y-interceptNone
Turning pointsNone
Symmetryneither even nor odd
AsymptotesVertical x = 0
End behaviorAs x → −∞, y → undefined; as x → ∞, y → ∞
Derivativey′ = 1/(x·ln(2))
Second derivativey″ = −(ln(2)/(x·ln(2))²)

Counts how many times you double 1 to reach x. Computer science uses it for binary search and tree depth.

Table of values

x0.250.51234510
y−2−1011.5849622.321933.32193

How to graph y = log₂ x

  1. Open the graphing calculator and type y = log_2(x).
  2. Plot the x-intercepts: (1, 0).
  3. Draw the asymptotes as dashed lines: Vertical x = 0.
  4. Use the table of values to add a few more points, then connect them with a smooth curve that follows the end behavior.

About logarithmic functions

A logarithm is the inverse of an exponential function. Its graph has a vertical asymptote and grows without bound, but slowly.

Frequently asked questions

What is the domain and range of y = log₂ x?

Domain: x > 0. Range: All real numbers.

What are the x-intercepts of y = log₂ x?

(1, 0).

What is the derivative of log₂ x?

1/(x·ln(2)). Graph it by defining f(x) = log_2(x) and typing f'(x).

Is log₂ x even, odd or neither?

It is neither even nor odd.