I don't know if this exercise is in the literature, where $Li(x)=\int_2^x\frac{dt}{\log t}$ is the logarithmic integral and $\pi(x)$ is the prime counting function
Question. Compute a good bound for $$ \left|Li(x)-\pi(x) \right| $$ by using summation methods, Möbius inversion, Shapiro's tauberian theorem, bounding integrals and the statement of the Prime Number theorem. Many thanks.
I know that it is an unsolved problem to prove that it is $O(\sqrt{x}\log x)$, but I don't know what of the following sum of terms it is impossible get as a previous big oh term $O(\sqrt{x}\log x)$. Notice that I don't know what cancellations could be in the sum of terms. Neiher I don't know what are the techniques employed in the deduction of the best bounds for previous difference. I am inspired in Apostol's words of section 4.11 (see bellow the reference) in a attempt, I say myself, to follow Tatuzawa and Iseki strategy.
By specialization with $F(x)=1$, thus $G(x):= \left[ x \right] \log x$ in Apostol's Theorem 4.17 (Apostol, Introduction to Analytic Number Theory (Springer)), dividing by $\log^2 x$, when $x\geq 2$ and after integrating $$Li(x)+\int_2^x\frac{\psi(t)}{\log^2 t}dt=\int_2^x\frac{\sum_{n\leq t}\mu(n) \left[ \frac{t}{n} \right] \log\frac{t}{n}}{\log^2 t}dt,$$ where $\psi(x)=\sum_{n\leq x}\Lambda(n)$ is the second Chebyshev's function with $\Lambda(n)$ the von Mangoldt function, and $\mu(n)$ is the Möbius function, with $ \left[ x \right] $ as we know the integer part function. I know to do the following computations, if there are no mistakes, applying the Prime Number theorem (I say the $O(1)$ term), for $\sum_{n\leq x}\mu(n) \left[ \frac{x}{n} \right] \log\frac{x}{n}$ that is equal to $$x\log x \left( O(1)+O \left( \sum_{n\leq x} \mu(n)\right) \right) -x\sum_{n\leq x}\frac{\mu(n)\log n}{n}+O \left( x\sum_{n\leq x} \mu(n)\log n\right) ,$$ I know that it is possible to get by summation bounds for more terms *.
By a second specialization of the cited theorem, $\tilde{F}(x)=x$ thus $\tilde{G}:=x\log x\sum_{n\leq x}\frac{1}{n}$, and thus we know that we can get this $\tilde{G}$ in an asymptotic identity as $x\log^2x+\gamma x \log x+O(\log x)$, where $\gamma$ is the Euler-Mascheroni constant, then by the theorem for $x\geq 2$
$$\frac{x}{\log ^2 x}+\frac{x}{\log^2 x} \left(\sum_{n\leq x} \frac{\Lambda(n)}{n}\right)=\frac{1}{\log^2 x}\sum_{n\leq x}\mu(n)\tilde{G} \left( \frac{x}{n} \right) , $$
and combining with the known $\pi(x)=\frac{x}{\log x}+O \left( \frac{x}{\log^2 x} \right) $, and the application of Shapiro's tauberian theorem to get the asymptotic for $\sum_{n\leq x}\frac{\Lambda(n)}{n}$, with the first specialization of the cited theorem $$ Li(x)-\pi(x) = \int_2^x\frac{\psi(t)}{\log^2 t}dt-\frac{x}{\log x}+\int_2^x\frac{\sum_{n\leq t}\mu(n) \left[ \frac{t}{n} \right] \log\frac{t}{n}}{\log^2 t}dt$$ $$\qquad\qquad\qquad\qquad-\frac{1}{\log^2 x}\sum_{n\leq x}\mu(n)\tilde{G} \left( \frac{x}{n} \right)+O \left( \frac{x}{\log ^2 x} \right). $$
To clarify my question I say in * and here that I want check with my functions or with different specializations, how much we can say about the difference $ Li(x)-\pi(x)$. I know that I can use the triangle inequality but I've said perhaps my computations were not the best. I would like to use the cited Theorem 4.17 to test it, with techniques of the kind that I've cited, on assumption of the statement of the Prime Number theorem. My question can be read as: what is the term that can not get as $O(\sqrt{x}\log x)$ in my computations or well in yourself, as you want.