The tangent of x is not defined for values of x equal to pi/2 + pi*n.
In these values, the cosine is equal to zero, and since the tangent is equal to the sine over the cosine, it's not possible to calculate the tangent.
Knowing this, let's calculate the domain of each function:
Therefore the correct option is the first one: f(x)