The magnetic field B is defined by the Lorentz force law, which states that the magnetic force Fmag on a particle with charge q and velocity v is equal to q crossed with the product of v and B. This causes the particle to move in a circular path, with the magnetic force providing the necessary centripetal force. Magnetic field lines are used to represent magnetic fields graphically, with the direction of the force on a charged particle given by the right-hand rule where it is perpendicular to both the velocity and magnetic field vectors.