Perron's formula

We know that:

  1. ψ(x)=nxΛ(n), where
Λ(n)={logpif n=pk for some prime p and k1,0otherwise.

I.e., Chebyshev function is a kind of accumulation of primes up to x
2. ζ(s)ζ(s)=nΛ(n)ns, i.e., it has information of the "total accumulation"
3. 12πicic+iys/sds is 1 if y>1, and 0 otherwise . For c>1, to have convergence.

How can we obtain from here that

ψ(x)=12πicic+i(ζ(s)ζ(s))xssds

?

We start with the right-hand side

I=12πicic+i(ζ(s)ζ(s))xssds

Replace ζ(s)ζ(s)

I=12πicic+i(n=1Λ(n)ns)xssds

but then

I=n=1Λ(n)[12πicic+i(xn)ssds]

Because the integral acts as a "filter" that only returns 1 when n<x and 0 otherwise, our infinite sum truncates beautifully into a finite sum:

I=nxΛ(n)