is known as the expression that captures how the primes thin out. The prime number theorem states that , the number of primes not exceeding , grows at the same rate as this function.
The logarithm must be defined and non-zero, so the domain is with . On we have and hence , while for .
The line is a vertical asymptote, approached toward from the left and toward from the right. As the numerator tends to and the denominator to , so and the curve enters the origin from below. As the factor overwhelms and the function diverges, so there is no asymptote on the right.
The quotient rule gives the derivative.
The denominator is positive, so the sign is that of : negative for and positive for . There is therefore a local minimum at , of value , so the minimum point has equal coordinates.
The branch on falls steadily from near the origin down to , giving , while the branch on has minimum , giving . No value in is attained. This is exactly the range of , an amusing coincidence: exchanging logarithm and exponential leaves the same structure.
The second derivative is .
| Range | Numerator | Denominator | Concavity |
|---|---|---|---|
| positive | negative | concave down | |
| positive | positive | concave up | |
| negative | positive | concave down |
There is thus a single inflection point, at , where the value is .
Writing for the number of primes up to , the prime number theorem says that the ratio of the two tends to .
Intuitively the density of primes near is about , so consecutive primes are separated by roughly on average. The convergence is slow, however, and the values close in only gradually.
| Ratio | |||
|---|---|---|---|
The error shrinks dramatically with the logarithmic integral.
Here , only about away from the true value. Substituting turns that integral into , the exponential integral. The function is the leading term of the asymptotic expansion of , and the Riemann hypothesis is a statement about how small the difference between and can be.