Following David Tong's great lecture notes on QFT I've got struggling with the following steps he did. Can someone explain the steps between those three lines?
1.1.3 A final Example: Maxwell's Equations
We may derive Maxwell's equation in the vacuum from the Lagrangian, $$\mathcal{L}=-\frac{1}{2}(\partial_\mu A_\nu)(\partial^\mu A^\nu)+\frac{1}{2}(\partial_\mu A^\mu)^2 \tag{1.18}$$ Notice the funny minus signs! This is to ensure that the kinetic terms for $\mathbf{A}_i$ are positive using the Minkowski space metrtic (1.18), so $\mathcal{L}\sim\frac{1}{2}\dot A_i^2$. The Lagrangian (1.18) has no kinetic term $\dot A_0^2$ for $A_0$. We will see the consequences of this in Section 6. To see that Maxwell's equations indeed follow from (1.18), we compute $$\frac{\partial \mathcal{L}}{\partial(\partial_\mu A_\nu)}=-\partial^\mu A^\nu+(\partial_\rho A^\rho)\eta^{\mu\nu} \tag{1.19}$$ from which we may derive the equations of motion, $$\partial_\mu\left(\frac{\partial \mathcal{L}}{\partial(\partial_\mu A_\nu)}\right)=-\partial^2 A^\nu+\partial^\nu(\partial_\rho A^\rho) =-\partial_\mu(\partial^\mu A^\nu-\partial^\nu A^\mu)\equiv-\partial_\mu F^{\mu\nu} \tag{1.20}$$