Graph of log x (base 10 logarithm)
The graph of log x, the logarithm to base 10, has the same shape as every logarithm graph: it exists only for x > 0, crosses the x-axis at x = 1, and rises one unit each time x is multiplied by 10.
Key features
- Domain
- x > 0
- Range
- All real numbers
- x-intercept
- (1, 0)
- Vertical asymptote
- x = 0
- Notable points
- (0.1, −1), (10, 1), (100, 2)
- Monotonic
- Increasing
- Change of base
- log x = ln x / ln 10 ≈ 0.4343 ln x
- y-intercept
- None: the graph never reaches x = 0
- Derivative
- 1xln(10)
- Antiderivative
- xln(x)−xln(10)+C
Derivative and antiderivative from the calculator’s algebra system. Domain, range and asymptotes are stated for real x.
What the graph of log x looks like
log x answers the question “10 to what power gives x?” So log 10 = 1, log 100 = 2, log 1000 = 3, and log 0.1 = −1. The graph rises by exactly one unit every time x is multiplied by 10, which makes it look almost flat after the first few units.
Every logarithm, whatever its base b > 1, has this shape. They are all vertical stretches of one another, since log_b x = ln x / ln b: a bigger base gives a flatter curve, and all of them pass through (1, 0) with an asymptote at x = 0.
For a base between 0 and 1, such as log base ½, the graph is reflected in the x-axis and decreases instead.
Points of interest
Found numerically to about twelve digits in the window −2 ≤ x ≤ 22, then shown in exact form where one exists.
- x-intercepts (roots)
- x = 1
- Local maxima
- None in this window
- Local minima
- None in this window
- Inflection points
- None in this window
Table of values
A few points to plot, with exact values where they are simple.
| x | y = log x |
|---|---|
| 0.01 | −2 |
| 1/10 | −1 |
| 1 | 0 |
| 2 | 0.30103 |
| 5 | 0.69897 |
| 10 | 1 |
| 100 | 2 |
How to graph log x by hand
- 1Draw the vertical asymptote x = 0.
- 2Plot (1, 0) and (10, 1). If your axes allow it, plot (0.1, −1) too.
- 3Add (2, 0.301) and (5, 0.699) to fix the curvature between 1 and 10.
- 4Draw a smooth increasing curve, steep near the y-axis and very gentle beyond x = 10.
Transformations
How the graph moves when you change the formula. The original is log x in blue.
y = ln(x)/ln(2)log base 2: steeper, reaching 1 at x = 2. Type log_2(x) in the calculator for the same graph.y = log(x) + 1Shifted up 1. This equals log(10x).y = -log(x)Reflected in the x-axis: the same graph as log base 1/10.
Where it shows up
- Decibels: sound level in dB is 10 log(I/I₀).
- pH = −log[H⁺] in chemistry, and the Richter magnitude scale for earthquakes.
- Log scales on plots, which make exponential growth look like a straight line.
Frequently asked questions
What base does log x use?
What does the graph of a logarithmic function look like?
What is log 0?
How do I graph a log with a different base?
Related graphs
Defined for x > 0, through (1, 0) and (e, 1).
y = aˣ: growth when a > 1, decay when 0 < a < 1.
Through (0, 1), always positive; its slope equals its height.
Starts at the origin; half of a sideways parabola.
Halves every step: (0, 1), (1, ½), (2, ¼), …
A hyperbola with asymptotes along both axes.
Change the window, add sliders for a, b, h and k, trace the curve with your keyboard, or overlay its derivative.