According to Harold Edwards in his book Riemann's Zeta Function there are two methods for evaluating the indefinite integral (1) to derive (2). He outlines each method on page 73 of his text. I will not reproduce them in full here but if the following suggestions do not get you all the way you can easily find the rest in Edwards.
Method 1. Use the expansion $-\zeta'(s)/\zeta(s)= \sum\Lambda(n)n^{-s}.$ Then (1) is $$\sum_{n=1}^{\infty}\Lambda(n)\frac{1}{2\pi}\int_{a-i\infty}^{a+i\infty}\frac{x^{s+1}ds}{n^ss(s+1)}. $$ Expand $\frac{1}{s(s+1)} $using partial fractions.
Method 2. Expand $-\zeta'(s)/\zeta(s)$ as $\frac{s}{s-1}-\sum_{\rho}\frac{s}{\rho(s-\rho)}+\sum_{n=1}^{\infty}\frac{s}{2n(s+2n)}- \frac{\zeta'(0)}{\zeta(0)}.$ Again you would use partial fractions, but there are algebra problems which Edwards covers in his book.
Edit: In case Edwards is not ready to hand and since it's not trivial, at least for me:
The integrand in (1) becomes:
$$\frac{-\zeta'(s)x^{s+1}}{\zeta(s)}(\frac{1}{s}-\frac{1}{s+1})= \frac{x^{s+1}}{s-1}- \sum_{\rho}\frac{x^{s+1}}{\rho(s-\rho)}+\sum_n \frac{x^{s+1}}{2n(s+2n)}-\frac{\zeta'(0)x^{s+1}}{\zeta(0)s}- \frac{x^{s+1}}{2(s-1)}+\sum_\rho \frac{x^{s+1}}{(\rho+1)(s-\rho)}- \sum_{n}\frac{x^{s+1}}{(2n-1)(s+2n)}+\frac{\zeta'(-1)x^{s+1}}{\zeta(-1)(s+1)}.$$
You can see, for example, that the first and fifth terms when integrated will combine to give you $\frac{x^2}{2}$... and so on.
Hopefully this is enough detail.