How do I use differential equations to get

dM/dt = r(t)M(t)

to equal to

M = E.e^[-(integral from T to t) of r(s)ds]

Where r is the continuous compounded interest which is a function of t and E= M(t) and theT represents some future time.

Where did the ds come from or the r(s) for that fact