Integrate[1/Sqrt[x^2 + 4]-C/(x+2), {x}]