Graph of the function intersects the axis X at f = 0
so we need to solve the equation:
$$\tan{\left(x \right)} - 2 = 0$$
Solve this equationThe points of intersection with the axis X:
Analytical solution$$x_{1} = \operatorname{atan}{\left(2 \right)}$$
Numerical solution$$x_{1} = -61.7247043540018$$
$$x_{2} = -17.7424072037447$$
$$x_{3} = 67.0805944431797$$
$$x_{4} = -46.0167410860528$$
$$x_{5} = -52.2999263932324$$
$$x_{6} = -55.4415190468222$$
$$x_{7} = -1258.67150537171$$
$$x_{8} = -74.2910749683609$$
$$x_{9} = -30.3087778181038$$
$$x_{10} = -24.0255925109243$$
$$x_{11} = 101.638113632667$$
$$x_{12} = -96.2822235434895$$
$$x_{13} = 76.5053724039491$$
$$x_{14} = -39.7335557788732$$
$$x_{15} = 10.5319266785635$$
$$x_{16} = 63.93900178959$$
$$x_{17} = -8.31762924297529$$
$$x_{18} = 51.3726311752308$$
$$x_{19} = -33.4503704716936$$
$$x_{20} = 54.5142238288206$$
$$x_{21} = 92.2133356718981$$
$$x_{22} = 41.9478532144614$$
$$x_{23} = -49.1583337396426$$
$$x_{24} = -36.5919631252834$$
$$x_{25} = -102.565408850669$$
$$x_{26} = 23.0982972929226$$
$$x_{27} = -99.4238161970793$$
$$x_{28} = 35.6646679072818$$
$$x_{29} = 19.9567046393328$$
$$x_{30} = 4.24874137138388$$
$$x_{31} = 98.4965209790777$$
$$x_{32} = 85.9301503647185$$
$$x_{33} = -89.9990382363099$$
$$x_{34} = 48.231038521641$$
$$x_{35} = 73.3637797503593$$
$$x_{36} = 70.2221870967695$$
$$x_{37} = 1.10714871779409$$
$$x_{38} = -27.167185164514$$
$$x_{39} = 16.8151119857431$$
$$x_{40} = 32.523075253692$$
$$x_{41} = 13.6735193321533$$
$$x_{42} = 79.6469650575389$$
$$x_{43} = -11.4592218965651$$
$$x_{44} = -77.4326676219507$$
$$x_{45} = 26.2398899465124$$
$$x_{46} = 60.7974091360002$$
$$x_{47} = -68.0078896611814$$
$$x_{48} = 95.3549283254879$$
$$x_{49} = -2.0344439357957$$
$$x_{50} = -83.7158529291303$$