Consider the situation with this functions,
F[mm_, q_] := NIntegrate[(q/2) * (x Tanh[π x]) *( ( (Coth[π q Sqrt[x^2 + mm] ]
)/Sqrt[ x^2 + mm] - Coth[π x])/x,
{x, 0, ∞}] + (1/2) Tan[Sqrt[mm] π ] ;
Plot[ F[mm, 2], {mm, 0, 1}]

Looking at the graph it is clear that the function has roots in the range of $mm \in [0,1]$. But I am unable to use any of the root finding commands to get those numbers! Why are they not working here?
Also what are those vertical lines that the Mathematica is plotting here?
F[mm_?NumericQ, q_], then use something likeFindRoot[F[mm, 2], {mm, 0.1}]. See the User-defined functions, numerical approximation, and NumericQ answer on the what-are-the-most-common-pitfalls-awaiting-new-users question. – Sjoerd C. de Vries Mar 27 '14 at 23:12Exclusionsor:, RegionFunction -> (Abs[#2] < 5 &)for example. – Kuba Mar 27 '14 at 23:28Tan[x]. This option works this way: there are points above5and below-5but ourRegionFunctioncuts them out (#2stands fory) in context of plotting and will not try to join the outlayers, it knows there is something above. Am I clear? Because this comment looks like a mess :P – Kuba Mar 28 '14 at 18:05Tan:NSolve[1/Tan[x] == 0 && .1 < x < 2, x], orFindRoot. – Kuba Mar 29 '14 at 07:58