In Tong’s preliminaries for QFT, he makes the following step while showing Noether’s theorem:
$(\frac{\partial L}{\partial q}\delta q + \frac{\partial L}{\partial \dot q}\delta \dot q) = \left(\frac{\partial L}{\partial q} - \frac{d}{dt}\left(\frac{\partial L}{\partial \dot q} \right)\right)\delta q + \frac{\partial L}{\partial \dot q}\delta q$
How do you get algebraically from the left to the right side there?