[step:Expand the commutator with the quadratic operator $J^2$]Fix $i \in \{1,2,3\}$ and $\psi \in D$. Since each $J_a$ maps $D$ into $D$, every product of the operators $J_1,J_2,J_3$ appearing below is defined on $\psi$. Recall that $J^2:D\to D$ is the [linear map](/page/Linear%20Map) defined by
\begin{align*}
J^2\phi=\sum_{j=1}^{3}J_j^2\phi
\end{align*}
for every $\phi\in D$.
For linear maps $A,B,C : D \to D$, the commutator product identity on $D$ is
\begin{align*}
[AB,C]\psi = A[B,C]\psi + [A,C]B\psi .
\end{align*}
Indeed,
\begin{align*}
A[B,C]\psi + [A,C]B\psi = A(BC\psi-CB\psi)+(ACB\psi-CAB\psi).
\end{align*}
Cancelling the middle two terms gives
\begin{align*}
A[B,C]\psi + [A,C]B\psi = ABC\psi-CAB\psi = [AB,C]\psi .
\end{align*}
Applying this identity with $A=B=J_j$ and $C=J_i$, and using linearity of the commutator in its first argument, gives
\begin{align*}
[J^2,J_i]\psi = \sum_{j=1}^{3} [J_j^2,J_i]\psi .
\end{align*}
For each $j$,
\begin{align*}
[J_j^2,J_i]\psi = J_j[J_j,J_i]\psi + [J_j,J_i]J_j\psi .
\end{align*}
Therefore
\begin{align*}
[J^2,J_i]\psi = \sum_{j=1}^{3}\left(J_j[J_j,J_i]\psi + [J_j,J_i]J_j\psi\right).
\end{align*}[/step]