I was reading about how a Cathode ray tube works, and stumbled upon the term "focusing coil(s)". After a bit of reading I have deduced that this might be a focusing solenoid or solenoid lens. The working principle of the focusing solenoid seemed quite straightforward at first, and I decided to calculate a few particle trajectories myself. If the magnetic field of a solenoid is known, I would just have to solve equation of motion $\ddot{\mathbf{x}} = \frac{q}{m}\dot{\mathbf{x}}\times\mathbf{B}$. However, the trajectories I got (see the figure) are not at all what I expected (see, for example, the particle trajectories presented here). I am quite sure that the magnetic field is calculated correctly. And in a uniform magnetic field my equation of motion predicts the circular motion with the expected gyroradius, but in this case - no focusing. Therefore the obvious question: what am I doing wrong? Is there some additional force that I should account for or is my approach fundamentally flawed? Any input will be much appreciated!
The particle velocities should be small enough for non relativistic approximations to work.