Let's say a rocket is moving along $\hat{i}$ and is ejecting mass at a rate of $r$ with relative velocity $-k \hat{i}$ under constant external force $F$
The rocket equation, $$m\frac{dv}{dt} = F + u\frac{dm}{dt}$$ gives me $$(m_0-rt)\frac{dv}{dt} = F + (-k)(-r)$$
However, using $F = dP/dt$ I get $$F = m_0\frac{dv}{dt} + vr$$ which gives me a different $v(t)$
I want to know why using $$F = \frac{dP}{dt} = m\frac{dv}{dt} + v\frac{dm}{dt}$$ is failing me.
I suspect that $F = dP/dt$ might be only valid for closed systems, but why?