This docstring should probably make some mention of Lie symmetries.