Consider the equations of motion of an object in an orbit around a central body. We use an inertial frame originating at centre of mass of the central body: $$ \frac{d\mathbf{r}}{dt} = \mathbf{V} \tag{1} $$ $$ \frac{d\mathbf{V}}{dt} = -\frac{\mu}{r^3}\mathbf{r} + \mathbf{A}_\text{ext} \tag{2} $$ where $\mathbf{r}$ is the position vector of the object, $\mathbf{V}$ is the velocity, $\mu$ is the gravitational parameter of the central body and $\mathbf{A}_\text{ext}$ are accelerations due to some other sources (example, thrust from engines, drag, etc.).
I am interested in specifying these with respect to the specific orbital energy $\epsilon$. For this, I need to know $\dfrac{d\epsilon}{dt}$
I know that $$\epsilon = \frac{V^2}{2}-\frac{\mu}{r} \tag{3}$$ So, differentiating: $$ \frac{d\epsilon}{dt} = V\dfrac{dV}{dt}+\dfrac{\mu}{r^2}\dfrac{dr}{dt} \tag{4} $$
If we multiply equation (2) with $\dfrac{d\mathbf{r}}{dt}$, we get: $$ \dfrac{d\mathbf{r}}{dt} \cdot \frac{d\mathbf{V}}{dt} = - \dfrac{d\mathbf{r}}{dt} \cdot \frac{\mu}{r^3}\mathbf{r} + \dfrac{d\mathbf{r}}{dt} \cdot \mathbf{A}_\text{ext} \tag{5} $$
Rearranging it, $$ \mathbf{V} \cdot \frac{d\mathbf{V}}{dt} + \dfrac{d\mathbf{r}}{dt} \cdot \frac{\mu}{r^3}\mathbf{r} = \mathbf{V} \cdot \mathbf{A}_\text{ext} \tag{6} $$
I am stuck here. $\epsilon$ is a scaler, and so is its derivative. However, it appears that the left hand side of the equation 6 is the vector form of equation 4.
Could you help me proceed? If I have the above, then I could formulate the equations of motion. Or, if you already know the equations of motion with respect to energy, that would be great!
Wikipedia article on specific orbital energy states that $\dfrac{d\epsilon}{dt} = \mathbf{V}\cdot \mathbf{A}_\text{ext}$ but doesnt give any reference / steps.
https://en.wikipedia.org/wiki/Specific_orbital_energy#Applying_thrust