Since external force is zero which means rocket gets propelled by relative change of momentum of exhaust with respect to rocket. Hence net force = rate of change of momentum of exhaust= −dm/dt×u=ma Integrating this and putting limits mi=m0 and mf=m we get m=m0e−a/u.