What the graph of y = log₂ x looks like
log₂ x asks how many times you must double 1 to reach x: log₂ 8 = 3 because 2 × 2 × 2 = 8. Each doubling of x adds exactly 1 to y, so the curve rises one step for every doubling — steeply near zero and slowly further out. It is the reflection of 2ˣ in the line y = x.
It is the logarithm of computer science (bits, binary search, the height of balanced trees). Since log₂ x = ln x / ln 2 ≈ 1.4427 ln x, it is the natural-log curve stretched vertically.
Key features of y = log₂ x
| Property | Value |
|---|---|
| Function | y = log₂ x (Binary logarithm) |
| Family | Logarithmic |
| Domain | x > 0, i.e. (0, ∞) |
| Range | All real numbers (−∞, ∞) |
| x-intercept(s) | x = 1 |
| y-intercept | None |
| Symmetry | Neither even nor odd |
| Asymptotes | Vertical x = 0 |
| Period | Not periodic |
| Increasing on | (0, ∞) |
| Decreasing on | Never |
| Key points | Passes (½, −1), (1, 0), (2, 1), (8, 3) |
| Derivative f′(x) | 1/(x ln 2) |
| Antiderivative ∫ f(x) dx | (x ln x − x)/ln 2 + C |
Symmetry: Neither even nor odd. Because the function is not defined for negative x, it cannot be even or odd. Intercepts: the graph meets the x-axis at x = 1 and the y-axis at None.
Table of values for y = log₂ x
| x | y = log₂ x | Slope f′(x) |
|---|---|---|
| 0 | undefined | undefined |
| 0.25 | −2 | 5.7708 |
| 0.5 | −1 | 2.8854 |
| 1 | 0 | 1.4427 |
| 2 | 1 | 0.7213 |
| 4 | 2 | 0.3607 |
| 8 | 3 | 0.1803 |
| 16 | 4 | 0.0902 |
How to sketch y = log₂ x by hand
Plot the points from the table — (0.25, −2), (0.5, −1), (1, 0), (2, 1), (4, 2), (8, 3) — on axes running from about −1 to 9 horizontally. Draw the asymptotes first (vertical x = 0) as dashed lines; the curve gets ever closer to them without crossing in that direction. Then join the points with a smooth curve. As a check on the shape — increasing: (0, ∞); decreasing: Never.
Derivative, tangent line and area
The derivative of y = log₂ x is 1/(x ln 2), which gives the slope of the curve at each point (the third column of the table). At x = 1 the curve is at height 0 and its slope is f′(1) = 1.4427, so the tangent line there is y = 1.4427x − 1.4427.
The signed area under the curve from x = 1 to x = 2 is 0.5573, found using the antiderivative (x ln x − x)/ln 2 + C.
Related graphs and transformations
- y = 2ˣ — Inverse function
- y = ln x — Natural logarithm
- y = log x — Base-10 logarithm
- y = ∛x — Slow growth of a different kind
Browse all graphs of common functions by family, or open the graphing calculator.