There is no general way of rewriting this in the form m= ... , where ... is a a closed form expression in terms of elementary functions etc

Some special cases may have such an representation but in a specific case you will probably have to resort to a numerical solution method.

CB