A dollar return with interest $i$ invested for $T$ years with compounding interest frequency of $m$ times each year is:
$$1*(1+\frac{i}{m})^{mt}.$$
My Question
Why do we divide $i$ by $m$? Is this because $i$ represents annual interest rate, but it is compounded $m$ times a year, so we need to compute the effective interest rate at each compounding periods?
How do we analytically derive this formula?