tan x=1/cot x and cot x=1/tan x *whenever both are defined*.
But the full range of definition of tan x is not the same as the full range of definition of 1/cot x.
But the full range of definition of tan x is not the same as the full range of definition of 1/cot x.