I have some questions for multiroot search for transcendental equations. Is there any clever solution to find all the roots for a transcendental equation in a specific range?
Perhaps FindRoot is the most efficient way to solve transcendental equations, but it only gives one root around a specific value. For example,
FindRoot[BesselJ[1, x]^2 + BesselK[1, x]^2 - Sin[Sin[x]], {x, 10}]
Of course, one can first Plot the equation and then choose several start values around each root and then use FindRoot to get the exact value.
Is there any elegant way to find all the roots at once?
Actually, I come up with this question when I solve the eigenequation for optical waveguides and I want to get the dispersion relation. I find
ContourPlotis very useful to get the curve of the dispersion relation. For example,ContourPlot[BesselJ[1, x]^2 + BesselK[1, x]^2 - Sin@Sin[a*x] == 0, {x, 0, 10}, {a, 0, 4}]You can get

Is there any elegant way to get all the values in the
ContourPlotforxwhena==0?Is it possible to know how the
ContourPlotgets all the points shown in the figure? Perhaps we can harness it to get all the roots for the transcendental equation.





Plot[]to find initial approximations forFindRoot[]. If you're interested in that approach, I can write up an answer. – 0x4A4D♦ May 17 '12 at 8:09Reduce[]-based methods: all of these hinge on the fact thatReduce[]apparently knows quite a fair bit about the transcendental functions built within Mathematica. If, however, you are dealing with a black-box function that can only evaluate at numerical values (you can simulate this behavior with something likef[x_?NumericQ] := Haversine[Pi x]), thenReduce[]won't be able to do much. – 0x4A4D♦ May 17 '12 at 9:15