for the Lagrangian density $$\mathscr{L}=\frac{1}{2}(\partial_{\mu}A^{\mu})^2$$
how can I get this $$\frac{\partial{\mathscr{L}}}{\partial(\partial_{\mu}A_\nu)}=(\partial_\rho A^\rho)\eta^{\mu\nu}$$
or I can only get $\frac{\partial{\mathscr{L}}}{\partial(\partial_{\mu}A_\nu)}=\partial_\rho A^\rho$ but where the $\eta^{\mu\nu}$ comes from.