For the periods let's take the secant function first. Assume a value of X such that the function starts to repeat itself. The secant function repeats itself every 2*pi radians. Thus 3X = 2*pi. etc.
The tangent is a bit trickier, but the same method applies. tangent repeats itself every pi radians. (If this seems odd, graph it.)