Perron's formula

We know that:

  1. ψ(x)=∑n≤xΛ(n), where
Λ(n)={log⁡pif n=pk for some prime p and k≥1,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πi∫c−i∞c+i∞ys/sds is 1 if y>1, and 0 otherwise . For c>1, to have convergence.

How can we obtain from here that

ψ(x)=12πi∫c−i∞c+i∞(−ζ′(s)ζ(s))xssds

?

We start with the right-hand side

I=12πi∫c−i∞c+i∞(−ζ′(s)ζ(s))xssds

Replace −ζ′(s)ζ(s)

I=12πi∫c−i∞c+i∞(∑n=1∞Λ(n)ns)xssds

but then

I=∑n=1∞Λ(n)[12πi∫c−i∞c+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=∑n≤xΛ(n)