The Chebyshev functions

The first Chebyshev function: when Gauss was a boy (by the dates found on his notes he was approximately 16) he noticed that the primes appear with density δ(x)=1logx around x. Then, instead of counting primes and looking at the function π(x), lets weight by the natural density and look at pxlogp. Since we are weighting by what we think is the density, we expect it to be asymptotic to be x. This is the first Chebyshev function θ(x).
More in detail, let's analyze the derivative ddxθ(x). When we go from x to x+1 the increment in θ(x) is sometimes log(x) and sometimes 0. In average, the increment is given by log(x)δ(x), but this is precisely 1. So θ(x)x.

The second Chebyshev function, denoted by ψ(x), is defined in terms of the von Mangoldt function Λ(n):

ψ(x)=nxΛ(n),

where

Λ(n)={logpif n=pk for some prime p and k1,0otherwise.

This means that ψ(x) includes all prime powers pkx, not just primes, but weights each one by logp.
Pasted image 20260505133657.png

Analyzing the expected increment when moving from x to x+1, the function ψ(x) increases by logp whenever x hits a prime power pk.Primes (k=1): Occur with density δ1(x)=1logx and contribute weight logx.$$\text{Expected increment} = \log x \cdot \frac{1}{\log x} = 1$$Squares (k=2): A prime square p2x means px. The density of prime squares at x is:$$\delta_2(x) = \frac{d}{dx}\pi(\sqrt{x}) \approx \frac{1}{2\sqrt{x}\log\sqrt{x}} = \frac{1}{\sqrt{x}\log x}$$Each prime square adds weight logp=logx=12logx.$$\text{Expected increment} = \left(\frac{1}{2}\log x\right) \cdot \left(\frac{1}{\sqrt{x}\log x}\right) = \frac{1}{2\sqrt{x}}$$General k-th powers: A power pkx occurs with density δk(x)1kx11/klog(x1/k)=1x11/klogx and adds weight 1klogx.$$\text{Expected increment} = \left(\frac{1}{k}\log x\right) \cdot \left(\frac{1}{x^{1 - 1/k}\log x}\right) = \frac{1}{k x^{1 - 1/k}}$$Summing the expected increments from all powers k:$$\frac{d}{dx}\psi(x) \approx 1 + \frac{1}{2\sqrt{x}} + \frac{1}{3 x^{2/3}} + \dots$$Integrating this expected rate of change from 1 to x:$$\psi(x) \approx \int_1^x \left(1 + \frac{1}{2\sqrt{t}} + O\left(t^{-2/3}\right)\right) dt \approx x + \sqrt{x} + O(x^{1/3}) \approx x$$

Why ψ(x) Counts Prime Numbers

Although ψ(x) includes powers of primes (p2,p3,), those contribute very little compared to the primes themselves.

So, ψ(x) behaves like a smoothed or weighted version of the prime counting function π(x). While π(x) simply counts 1 for each prime x, ψ(x) counts logp for each prime and its powers x.

Why to use it?

It turns out that this function is more natural in complex analysis than the prime counting function or the first Chebyshev function above: see Riemann hypothesis, for the details.