can some tell me why the second line follows from the first in the attachment
It doesn't. The two sides of the equation have different free indices.
For some reason they have mad a swap ##\mu\leftrightarrow\nu## in the second line...and also switch the order of the partial derivatives.
Separate names with a comma.