The antiderivative of tan x is ln|secx|+C where C is a constant of integration.