I have the following from Stan Wagons Mathematica in Action.
Plot[Sec[x]/(1 + x^2 Tan[x]), {x, -((5 \[Pi])/2), (5 \[Pi])/2},
Exclusions -> {Cos[x] == 0, 1 + x^2 Tan[x] == 0},
ExclusionsStyle -> {{Dashing[0.02], Gray, Thickness[0.008]}},
FrameTicks -> {{Automatic, None}, {Range[-2 Pi, 2 Pi, Pi], None}}]
Which produced:
However, neither Solve nor Reduce seem to find the Exclusions:
In[79]:= Reduce[1 + x^2 Tan[x] == 0, x, Reals]
During evaluation of In[79]:= Reduce::nsmet: This system cannot be solved with the methods available to Reduce. >>
Out[79]= Reduce[1 + x^2 Tan[x] == 0, x, Reals]
In[77]:= Solve[1 + x^2 Tan[x] == 0, x, Reals]
During evaluation of In[77]:= Solve::nsmet: This system cannot be solved with the methods available to Solve. >>
Out[77]= Solve[1 + x^2 Tan[x] == 0, x, Reals]
Plot[]
:Reduce[1 + x^2 Tan[x] == 0 && -5 π/2 < x < 5 π/2, x, Reals]
$\endgroup$