integrate mg/k - (mg/k - u)e^(-kx/m) from 0 to T