I wanted to derive the Tsiolkovsky rocket equation using the Lagrange formalism. $$ T = \frac{m(t)}{2}\dot{\xi(t)}^2 + \frac{\mu(t)}{2}(\dot{\xi(t)} - u)^2$$ $m$ - mass of the rocket
$\xi$ - some coordinate along which the rocket is moving
$\mu$ - mass of the thrown out fuel
$u$ - fuel velocity (in the rocket's reference frame).
The standard procedure yields the following equation of motion: $$\ddot{\xi} (m+\mu) + \dot{\xi} (\dot{m} + \dot{\mu}) = \dot{\mu} u.$$ Since $m(t) = m_0 - \eta t$, and $\mu = \eta t$, there follow $\dot{m} + \dot{\mu} = 0$, $m+\mu = m_0$, and $\dot{\mu} = - \dot{m}$.
Therefore we have $$m_0 \frac{d}{dt}\dot{\xi} = m_0 \ddot{\xi} = -u \eta.$$
This is not the anticipated result, the Tsiolkovsky equation is $$\frac{d}{dt}\dot{\xi} = - u \frac{dm}{m},$$ where $m = m(t)$. Specifically, my issue is the fact that $m_0 \neq m(t)$.
Where is my mistake? Is the lagrangian wrong, or am I missing something else here?