Suppose I have an equation $$ d=\int_A^B \dfrac{dr}{\sqrt{1-\dfrac{2M}{r}}}\\ =B\sqrt{1-\dfrac{2M}{B}}-A\sqrt{1-\dfrac{2M}{A}}+M\ln\left( B\sqrt{1-\dfrac{2M}{B}} +B-M\right)-M\ln\left( A\sqrt{1-\dfrac{2M}{A}} +A-M\right), $$ where $B>A>2M>0$.
I want to solve this equation for $B$ analytically. So far, I have tried
Solve[0.1==B*Sqrt[1-2/B]-3*Sqrt[1-2/3]+Log[B*Sqrt[1-2/B]+B-1]-Log[3*Sqrt[1-2/3]+3-1],B]
where $d=0.1, A=3, M=1$. However, Mathematica won't give a number.
Is there another way to solve this? Thanks.
FindRoot
instead ofSolve
. $\endgroup$