Newton's 2nd law of motion can't be applied for mass-varying systems. Another force, known as Thrust must come to play. It can be measured using law of conservation of linear momentum. $$\text{Thrust} M.\dfrac{dv}{dt} = v_{rel} .\dfrac{dm}{dt}.$$ where $M$ is the mass of the system; $\frac{dm}{dt}$ is the rate at which the mass changes; & $v_{rel}$ is the relative velocity of the exhausted mass w.r.t to the main system.
This is what my book writes. Now, the left hand side of the eqn. represents force on mass $M$ whereas the right hand side represents the force due to variable mass. How can they be equal? During the application of thrust, $M$ does change and the equation had to be $$ (M - dm). \dfrac{dv}{dt} = v_{rel} .\dfrac{dm}{dt}$$ But that is not the book's equation. Why is mine wrong? What is the intuition?