integrate x^2+4x+12/(x-2)(x^2+4)

(x^2+4x+12)/((x-2)(x^2+4))

= 3/(x-2) - 2x/(x^2+4)
now it's simple logs after integration:

3log(x-2) - log(x^2+4)