How to calculate the indefinite integral of 1 / (x ^ 2 + a)?

How to calculate the indefinite integral of 1 / (x ^ 2 + a)?

∫1/(x²+a)dx
=(1/a)∫1/[(x/√a)²+1]dx
=(√a/a)∫1/[(x/√a)²+1]d(x/√a)
=(√a/a)arctan(x/√a)+C
C is an arbitrary constant