I am asked to derive the quadratic form of the Dirac equation in an electromagnetic field,
$\left[\left(i\hbar \partial - \frac{e}{c}A\right)^2 - \frac{\hbar e}{2c} \sigma^{\mu\nu} F_{\mu\nu} - m^2c^2\right] \psi = 0,$
where $F_{\mu\nu} =\partial_{\nu} A_{\mu} - \partial_{\mu} A_{\nu}$ is the usual e-m field tensor and $\sigma^{\mu\nu} = \frac{i}{2}[\gamma^{\mu}, \gamma^{\nu}].$
A hint in my textbook suggests that I left-multiply the Dirac equation,
$\left[-\gamma^{\mu} \left( i \hbar \partial_{\mu} - \frac{e}{c} A_{\mu} \right) + mc\right] \psi = 0,$
by the expression $\gamma^{\nu} \left( i \hbar \partial_{\nu} - \frac{e}{c} A_{\nu} \right) +mc$ and use the commutation relations for the gamma matrices. I have been unsuccessful to this end. I get
0 = $\left[-\gamma^{\nu} \gamma^{\mu} \left( i \hbar \partial_{\nu} - \frac{e}{c} A_{\nu} \right) \left( i \hbar \partial_{\mu} - \frac{e}{c} A_{\mu} \right) + m^2 c^2 \right] \psi = - \left[( \gamma^{\mu} \gamma^{\nu} + 2 i \sigma^{\mu\nu}) \left( i \hbar \partial_{\nu} - \frac{e}{c} A_{\nu} \right) \left( i \hbar \partial_{\mu} - \frac{e}{c} A_{\mu} \right) - m^2 c^2 \right] \psi = -\left[ -\left(i\hbar \partial - \frac{e}{c}A\right)^2 + 2 i \sigma^{\mu\nu} \left( i \hbar \partial_{\nu} - \frac{e}{c} A_{\nu} \right) \left( i \hbar \partial_{\mu} - \frac{e}{c} A_{\mu} \right) - m^2 c^2 \right] \psi, $
where in the last step I have used $(\gamma^{\mu})^2=-\mathbb{1}$.
From here I have tried expanding the expression $\left( i \hbar \partial_{\nu} - \frac{e}{c} A_{\nu} \right) \left( i \hbar \partial_{\mu} - \frac{e}{c} A_{\mu} \right)$ and rewriting the appropriate cross-term in terms of $F_{\mu\nu}$ but I don't know what to do with the other terms. I can't seem to extract the term $\frac{\hbar e}{2c} \sigma^{\mu\nu} F_{\mu\nu}$. Also, the sign of the $\left(i\hbar \partial - \frac{e}{c}A\right)^2$ term appears to be backwards. Can anyone help me with this?