I know that we can extend $\zeta (s)$, originally defined on $\Re(s)>1$ by the sum $\zeta(s)=\sum_{n=1}^{\infty}\frac{1}{n^s}$, to the domain $\mathbb{C} - \mathbb{Z}$ by this definition: $$\zeta(s) = \frac{i}{2\Gamma(s)\sin(\pi s)}\displaystyle\int_C \frac{(-z)^{s-1}}{e^z -1}dz,$$ where $C$ is a small circle around the origin.
But it seems that we can extend the function even further, and include all integers except $1$, by this formula: $$\zeta(s) = \frac{s}{s-1} -s\displaystyle\int_{1}^{\infty}x^{-s-1}\{x\}dx,$$ where $\{x\}$ is the fractional part of the real number $x$. This will also show us that $\zeta$ can be extended to a meromorphic function on $\mathbb{C}$ with a simple pole at $s=1$. I really don't know how this formula can be derived. Any help would be great.