In Prof. David Tong's notes, specifically on page 10, he gives the Lagrangian of Maxwell's theory to be
$$ \mathcal{L} = -\frac{1}{2}(\partial_\mu A_\nu)(\partial^\mu A^\nu) + \frac{1}{2}(\partial_\mu A^\mu)^2 $$
and then he computes the following
$$ \frac{\partial\mathcal{L}}{\partial(\partial_\mu A_\nu)} = -\partial_\mu A_\nu + (\partial_\rho A^\rho)\eta^{\mu\nu}. $$
I can see how the first term in the derivative is computed but am having problems with the second term. Any help is appreciated!