solve the following for m

or how to get the path of m when t tends to T in the following problem.

(to solve this any tool or software can be used)

where other than t everything is constant

[(L-m)/m]*[alpha/beta]=[-1+e^(T-t)*phi*(L-m)^beta]/[-1+e^(T-t)*P*m^alpha]