I have this equation $$\coth (2 x )=x $$ and I want to solve it to find $x$. The methods Solve and Reduce do not work.
Coth[2 x] == x
Plot[{Coth[2 x], x}, {x, -3 Pi, 3 Pi}]
Therefore
Solve[{Coth[2 x] == x, -2 Pi < x < 2 Pi}, x] // N
(* {{x -> -1.03267}, {x -> 1.03267}} *)
This also works
Solve[Coth[2 x] == x, x, Reals] // N
(* {{x -> -1.03267}, {x -> 1.03267}} *)
Keeping domain complex (i.e. function values can be complex), but telling it variables are real also works
Solve[Coth[2 x] == x && Element[x, Reals], x]
// N
, you get expressions that represent the exact roots, which can be evaluated to arbitrary precision. For more complex solutions, try Solve[{Coth[2 x] == x, -2 Pi < Re@x < 2 Pi, -2 Pi < Im@x < 2 Pi}, x]
$\endgroup$
Commented
Jul 10, 2020 at 23:13
Another way to do it as a FixedPoint
numerical method:
FixedPoint[Coth[2 #] &, 0.1] (* 1.03267 *)
FixedPoint[Coth[2 #] &, -0.1] (* -1.03267 *)
Solve[Coth[2 x] == x, x, Reals]
$\endgroup$