How can we isolate the $r$ in the following formula?
$$A = P\left(1 + \frac rn\right)^{nt} + \frac{PMT\left(\left(1 + \frac rn\right)^{nt} - 1\right)}{\frac rn}$$
I went through multiple tutorials but found it hard to solve. It will be really helpful if anyone can describe the steps for isolating the r in this formula. Thanks in advance.
Let $x:=1+\dfrac rn$ and let us rename the coefficients. The equation reads
$$(1-px^m)(x-1)=q(x^m-1)$$ and is of the polynomial type if $nt$ is integer. It can have several roots and has no closed-form solution in general.