Set a system of coordinates - say X
Define two tensors for experimentation
Use the declare facility of PDEtools to avoid redundant display of functionality
Compute the Lie bracket of and
Because the spacetime at this point in the worksheet is flat, the output above involves d_, not the covariant D_. Set the spacetime to any nongalilean value, for instance (see g_):
Compute the Lie bracket again
Note that the Lie bracket between two vector fields is equal to the LieDerivative of the second one with respect to the first one, that you can pass with or without its index to both LieBracket and LieDerivative:
Due to the symmetry properties of Christoffel symbols, this expression can also be expressed replacing the covariant derivative operator D_ by d_. To see that, rewrite the covariant derivatives in terms of Christoffel symbols and the d_ operator
This expression is the same one obtained above in (5) for a flat spacetime but for the dummy used for repeated index: