Four bar magnets configured to produce a quadrupole

Quadrupole magnets, abbreviated as Q-magnets, consist of groups of four magnets laid out so that in the planar multipole expansion of the field, the dipole terms cancel and where the lowest significant terms in the field equations are quadrupole. Quadrupole magnets are useful as they create a magnetic field whose magnitude grows rapidly with the radial distance from its longitudinal axis. This is used in particle beam focusing.

The simplest magnetic quadrupole is two identical bar magnets parallel to each other such that the north pole of one is next to the south of the other and vice versa. Such a configuration will have no dipole moment, and its field will decrease at large distances faster than that of a dipole. A stronger version with very little external field involves using a k=3 Halbach cylinder.

In some designs of quadrupoles using electromagnets, there are four steel pole tips: two opposing magnetic north poles and two opposing magnetic south poles. The steel is magnetized by a large electric current in the coils of tubing wrapped around the poles. Another design is a Helmholtz coil layout but with the current in one of the coils reversed.[1]

## Quadrupoles in particle accelerators

A quadrupole electromagnet as used in the storage ring of the Australian Synchrotron
Quadrupole electromagnets (in blue), surrounding the linac of the Australian Synchrotron, are used to focus the electron beam

At the particle speeds reached in high energy particle accelerators, the magnetic force term is larger than the electric term in the Lorentz force:

${\displaystyle \mathbf {F} =q(\mathbf {E} +\mathbf {v} \times \mathbf {B} ),}$

and thus magnetic deflection is more effective than electrostatic deflection. Therefore a 'lattice' of electromagnets is used to bend, steer and focus a charged particle beam.

Magnetic field lines of an idealized quadrupole field in the plane transverse to the nominal beam direction. The red arrows show the direction of the magnetic field while the blue arrows indicate the direction of the Lorentz force on a positive particle going into the image plane (away from the reader)

The quadrupoles in the lattice are of two types: 'F quadrupoles' (which are horizontally focusing but vertically defocusing) and 'D quadrupoles' (which are vertically focusing but horizontally defocusing). This situation is due to the laws of electromagnetism (the Maxwell equations) which show that it is impossible for a quadrupole to focus in both planes at the same time. The image on the right shows an example of a quadrupole focusing in the vertical direction for a positively charged particle going into the image plane (forces above and below the center point towards the center) while defocusing in the horizontal direction (forces left and right of the center point away from the center).

If an F quadrupole and a D quadrupole are placed immediately next to each other, their fields completely cancel out (in accordance with Earnshaw's theorem). But if there is a space between them (and the length of this has been correctly chosen), the overall effect is focusing in both horizontal and vertical planes. A lattice can then be built up enabling the transport of the beam over long distances—for example round an entire ring. A common lattice is a FODO lattice consisting of a basis of a focusing quadrupole, 'nothing' (often a bending magnet), a defocusing quadrupole and another length of 'nothing'.

## Equations of motion and focal length for charged particles

A charged particle beam in a quadrupole magnetic field will experience a focusing / defocusing force in the transverse direction. This focusing effect is summed up by a focusing strength ${\displaystyle \kappa }$ which depends on the quadrupole gradient ${\displaystyle G}$ as well as the beam's rigidity ${\displaystyle [B\rho ]={\frac {p}{q}}}$ (${\displaystyle p}$ is the relativistic momentum ${\displaystyle mc\beta \gamma }$ and ${\displaystyle q}$ is the particle's charge). The strength is given by

${\displaystyle \kappa ={\frac {G}{[B\rho ]}}}$,

and particles in the magnetic will behave according to the ODE[2]

${\displaystyle x^{\prime \prime }(z)+{\frac {\gamma ^{\prime }(z)}{\gamma ^{2}(z)\beta (z)}}x^{\prime }(z)+\kappa (z)x(z)=0}$.

The same equation will be true for the y direction, but with a minus sign in front of the focusing strength to account for the field changing directions.

## Quadrupole ideal field

The components of the ideal magnetic field in the plane transverse to the beam are given by the following[3] (see also multipole magnet).

{\displaystyle {\begin{aligned}{\vec {B}}_{\text{normal}}&=\left({\begin{matrix}K\cdot y,&K\cdot x,&0\end{matrix}}\right)\\{\vec {B}}_{\text{skew}}&=\left({\begin{matrix}J\cdot x,&-J\cdot y,&0\end{matrix}}\right)\\\end{aligned}}}

where ${\displaystyle K}$ is the field gradient of the normal quadrupole component and ${\displaystyle J}$ is the field gradient of the skew quadrupole component. The SI unit of the field gradients are ${\displaystyle \mathrm {T} /\mathrm {m} }$. The field in a normal quadrupole is such that the magnetic poles are arranged with an angle of 45 degrees to the horizontal and vertical planes. The sign of ${\displaystyle K}$ determines whether (for a fixed particle charge and direction) the quadrupole focuses or defocuses particles in the horizontal plane.

3. ^ Shepard, Ben. "Conventional Magnets for Accelerators" (PDF).{{cite web}}: CS1 maint: url-status (link)