Let's say I have a function,
F[x_,d_] = Sqrt[(x^2 - 1)^2 + d^2],
and I want to count how many roots (no root, or one root, or two roots etc.) it has in an interval, say, 0 < x < 5
for a given d. I am not interested in the exact value of the root.
For example, it has one root when d = 0, and no root if, say, d = 0.5.
If I use Reduce
, and try to count the roots, Mathematica tries to find the exact roots and it is unnecessary slow. There should be an easier way (or maybe built-in function in Mathematica) for this.
This F
function is toy model of my real problem, so I cannot play with the algebra of the function. And since function is always positive, I cannot check if the sign of the function changes. But, one thing for sure, function is not differentiable at the roots.
In other words, how can I calculate number of poles of 1/F[x,d]
at 0 < x < 5
?