I'm learning about complex and almost complex structures on smooth manifolds, in particular the Newlander-Nirenberg theorem. Recall that for an almost complex structure $J$ on a smooth manifold, the Nijenhuis tensor field of $J$ is defined by $$ N_J(X, Y) = [X, Y] + J[JX, Y] + J[X, JY] - [JX, JY], $$ and Newlander-Nirenberg tells us that non-vanishing of $N_J$ is the obstruction to an almost complex structure coming from a complex structure.
I'm wondering if anyone can shed some light on the motivation for this construction: is there any intuitive reason why we'd expect $N_J$ to capture this obstruction? Moreover, are there any good reasons or historical motivation as to why this expression was considered in the first place? In other words, how would one stumble upon this tensor naturally?
A partial answer, regarding the history:
As far as I know, and this is also claimed in “Nijenhuis geometry” by Bolsinov, Konyaev & Matveev (arXiv:1903.04603 [math.DG]), the Nijenhuis tensor first appeared in Albert Nijenhuis's article “$X_{n-1}$-forming sets of eigenvectors” (Indag. Math. 1951, MR43540), in connection with a different problem, with no mention of complex structures: Suppose the $(1,1)$ tensor field $J$ is diagonalizable at every point. Then the Nijenhuis tensor $N_J$ is zero iff there is a local coordinate system in which $J$ is diagonal.