I understand that when a charged particle enters a magnetic field with a velocity $v$, with a angle $\theta$ within the field lines, its perpendicular and parallel velocity components generate, respectively, a circular and transverse motion, causing the particle to have a helical motion. However, in this development, it is often assumed that the magnetic field is uniform, and, having this premise established, it is not difficult to mathematically demonstrate why the particle describes a helical motion, one very nice and simple way is the first answer on this post: Helical motion of charged particle in external magnetic field.
But let's take the magnetic mirror as an example. In it, the magnetic field is variable, and yet the particle describes a helical movement along $\hat{z}$!
"Geometrically", it's not difficult to understand, the particle still have the components of the velocity producing the respective motions, after all. But I've not been able to rigorously demonstrate this fact, mathematically.
Summarizing, I want to demonstrate, mathematically, why particles, in non-uniform magnetic field regions, continue to describe helical movements, when entering the field with a angle $\theta$.