Nope you're perfectly fine.
To see why, use the fact that:
The stuff in red is nothing more than a constant, so call it
So your expression is equal to:
which is exactly what the book had.
Remember, all antiderivatives of a given function differ only by their constants which is what we've shown here.