Graph of y = log x (Common logarithm (base 10))

· How we calculate · Free, no sign-up

Quick answer

The graph of y = log x is a slowly rising curve through (1, 0) and (10, 1) with a vertical asymptote at x = 0. Domain: x > 0, i.e. (0, ∞); range: All real numbers (−∞, ∞). x-intercept: x = 1; y-intercept: None. It is neither even nor odd.

Functiony = log x
Domainx > 0, i.e. (0, ∞)
RangeAll real numbers (−∞, ∞)
x-intercept(s)x = 1
y-interceptNone
Derivative1/(x ln 10)
Graph of y = log x for −1 ≤ x ≤ 12−10123456789101112−2−1.5−1−0.500.511.5
Graph of y = log x for −1 ≤ x ≤ 12, −2 ≤ y ≤ 1.5. Dashed lines are asymptotes. Dots mark intercepts.
Zoom, pan and trace y = log x next to y = ln x in the interactive grapher.Open the Graphing Calculator →

What the graph of y = log x looks like

log x (log base 10) counts powers of ten: log 10 = 1, log 100 = 2, log 0.1 = −1. Its graph has the same shape as ln x but is squashed vertically by a factor of ln 10 ≈ 2.3026, because log x = ln x / ln 10. It crosses the x-axis at 1 and has the y-axis as a vertical asymptote.

Because it turns multiplication into addition, base-10 logarithms underlie the decibel, pH and Richter scales, and log-scale charts. It is the inverse of 10ˣ.

Key features of y = log x

Key features of y = log x
PropertyValue
Functiony = log x (Common logarithm (base 10))
FamilyLogarithmic
Domainx > 0, i.e. (0, ∞)
RangeAll real numbers (−∞, ∞)
x-intercept(s)x = 1
y-interceptNone
SymmetryNeither even nor odd
AsymptotesVertical x = 0
PeriodNot periodic
Increasing on(0, ∞)
Decreasing onNever
Key pointsPasses (0.1, −1), (1, 0), (10, 1), (100, 2)
Derivative f′(x)1/(x ln 10)
Antiderivative ∫ f(x) dx(x ln x − x)/ln 10 + 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

Values of y = log x
xy = log xSlope f′(x)
0undefinedundefined
0.01−243.4294
0.1−14.3429
0.5−0.3010.8686
100.4343
20.3010.2171
50.6990.0869
1010.0434
10020.0043

How to sketch y = log x by hand

Plot the points from the table — (0.01, −2), (0.1, −1), (0.5, −0.301), (1, 0), (2, 0.301), (5, 0.699) — on axes running from about −1 to 12 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 10), 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) = 0.4343, so the tangent line there is y = 0.4343x − 0.4343.

The signed area under the curve from x = 1 to x = 10 is 6.0913, found using the antiderivative (x ln x − x)/ln 10 + C.

Related graphs and transformations

Browse all graphs of common functions by family, or open the graphing calculator.

Frequently asked questions

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

Domain: x > 0, i.e. (0, ∞). Range: All real numbers (−∞, ∞).

What are the intercepts of y = log x?

x-intercept(s): x = 1. y-intercept: None.

What is the derivative of y = log x?

f′(x) = 1/(x ln 10). At x = 1 the curve is at height 0 and its slope is f′(1) = 0.4343, so the tangent line there is y = 0.4343x − 0.4343.

Is y = log x even, odd or neither?

Neither even nor odd. Because the function is not defined for negative x, it cannot be even or odd.

Does y = log x have asymptotes?

Vertical x = 0.