The thing to do for partial fractions would be to solve:
1/(z^2+2z/x) = 1 / z(z+2/x) = A/z+B/(z+2/x)
for A and B, and then it can be integrated to logs.
Or, you can complete the square and you're left with an integral that yields a hyperbolic trig solution which can be expressed in terms of logs: http://en.wikipedia.org/wiki/Hyperbolic_function
The interesting thing about this problem is that it has simple poles at z=0 and -2/x.
So you get log absolute values when integrating 1/z at negative z...,
and there are corresponding domain restrictions on the validity of the hyperbolic trig solution.
When you take care, you can arrive at the two methods yielding the same solution over their common domain of validity: z=(-2/x,0) (assuming x>0).