tan substitutions work perfectly,
remember you don't get close to any funny points
since x = tan(u) ----> x varies over all reals, but tan(u) only has be defined for u in (-pi/2,pi/2) and for this interval secant is also fine.
there might potentially be problems with sec substitutions