Since tan has an infinite number of asymptotes, the first questions I'd have to ask is, will you be considering a particular range? Once you have a range, any numerical method could do the job.
I'd also wonder how accurate do you need solutions? To two decimal places? Three? Four? . . . If you didn't need a high degree of accuracy, perhaps even a graphical approach would work for you.
I would first evaluate f(x) and then use that result in the series expansion of tangent taken however far you want to get the accuracy you desire to solve.