The typical way to do this, is to use Solve
or Reduce
get r
to one side of the equality. It seems like Mathematica cannot solve the equation, unfortunately:
Reduce[
{
rho == r (1 + (Sqrt[\[Pi]] Gamma[1/(q - 1)])/((1 - q) Gamma[1/2 ((q + 1)/(q - 1))]) b0/r + (1 + q)/(2 q) (b0/r)^(1 - q)),
q < 0,
b0 > 0
},
r
]
During evaluation of In[2]:= Reduce::nsmet: This system cannot be solved with the methods available to Reduce.
Out[2]= Reduce[{rho ==
r (1 + ((1 + q) (b0/r)^(1 - q))/(2 q) + (
b0 Sqrt[[Pi]]
Gamma[1/(-1 + q)])/((1 - q) r Gamma[(1 + q)/(2 (-1 + q))])),
q < 0, b0 > 0}, r]