Graph of y = ln x (Natural logarithm)

· How we calculate · Free, no sign-up

Quick answer

The graph of y = ln x is a slowly rising curve through (1, 0) 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 = ln x
Domainx > 0, i.e. (0, ∞)
RangeAll real numbers (−∞, ∞)
x-intercept(s)x = 1
y-interceptNone
Derivative1/x
Graph of y = ln x for −1 ≤ x ≤ 8−1012345678−4−3−2−10123
Graph of y = ln x for −1 ≤ x ≤ 8, −4 ≤ y ≤ 3. Dashed lines are asymptotes. Dots mark intercepts.
Zoom, pan and trace y = ln x in the interactive grapher.Open the Graphing Calculator →

What the graph of y = ln x looks like

ln x answers “e to what power gives x?”, so ln 1 = 0, ln e = 1 and ln(e²) = 2. It only accepts positive inputs: as x shrinks towards 0 the value dives to −∞ (a vertical asymptote along the y-axis), and as x grows it keeps rising, but extremely slowly — ln 1000 is only about 6.9.

Its graph is the reflection of eˣ in the line y = x. The slope 1/x is large near zero and small far out, which is why the curve is concave down. The area under it from 1 to e is exactly 1.

Key features of y = ln x

Key features of y = ln x
PropertyValue
Functiony = ln x (Natural logarithm)
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 (1, 0) and (e, 1); concave down everywhere
Derivative f′(x)1/x
Antiderivative ∫ f(x) dxx ln x − x + 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 = ln x

Values of y = ln x
xy = ln xSlope f′(x)
0undefinedundefined
0.1−2.302610
0.5−0.69312
101
20.69310.5
e10.3679
51.60940.2
102.30260.1

How to sketch y = ln x by hand

Plot the points from the table — (0.1, −2.3026), (0.5, −0.6931), (1, 0), (2, 0.6931), (e, 1), (5, 1.6094) — on axes running from about −1 to 8 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 = ln x is 1/x, 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, so the tangent line there is y = x − 1.

The signed area under the curve from x = 1 to x = e is 1, found using the antiderivative x ln x − x + 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 = ln x?

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

What are the intercepts of y = ln x?

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

What is the derivative of y = ln x?

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

Is y = ln 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 = ln x have asymptotes?

Vertical x = 0.