Vectors: a visual warm-up
A vector is an arrow: a quantity with both a size and a direction, like velocity, force or a magnetic field. We write it with components, A = (Ax, Ay). Physics is full of vector arithmetic, so drag the arrow tips and see what each operation does.
The physics
The dot product turns two vectors into a single number. It is large and positive when they point the same way, zero when they are at right angles, and negative when they point against each other:
The cross product turns two vectors into a new vector at right angles to both. For vectors lying flat on the page it points straight out of or into the page, so only its z-component is non-zero. Its size is the area of the parallelogram the two vectors span:
A charge q moving with velocity v through a magnetic field B feels the magnetic force
Because a cross product is at right angles to both of its inputs, this force is always at right angles to the velocity. It bends the path without changing the speed, and that is the heart of how plasmas are held by magnetic fields.