I am working on a problem that I have gone over and over and can't seem to find my mistake. The problem involves solving an integral using trigonometric substitution. My final answer is identical to the text's answer except my answer has a factor of 1/4 that is not in the book's answer and I cannot figure out why. Thanks in advance to anyone who takes the time to work it!

$\displaystyle \int \frac{x}{\sqrt{x^2+4x+8}} dx$

Book answer: $\displaystyle \sqrt{x^2+4x+8} - 2ln|\sqrt{x^2+4x+8} + (x+2)| + C$

My answer: $\displaystyle \frac{1}{4}\sqrt{x^2+4x+8} - 2ln|\sqrt{x^2+4x+8} + (x+2)| + C$