This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Fringe Field Effects on Bending Magnets, Derived for TRANSPORT/TURTLE

Riley Molloy and Sam Blitz
Abstract

A realistic magnetic dipole has complex effects on a charged particle near the entrance and exit of the magnet, even with a constant and uniform magnetic field deep within the interior of the magnet. To satisfy Maxwell’s equations, the field lines near either end of a realistic magnet are significantly more complicated, yielding non-trivial forces. The effects of this fringe field are calculated to first order, applying both the paraxial and thin lens approximations. We find that, in addition to zeroth order effects, the position of a particle directly impacts the forces in the horizontal and vertical directions.

1 Introduction

Charged particle optics is frequently used within the context of experimental beamline design. A key element within an optical system is often a magnetic dipole, used to bend a beam. A pure dipole field implies that the trajectory of charged particles will strictly follow an arc. However, a physical implementation of such a dipole necessitates effects beyond the scope of a pure dipole field. In the FNAL experiment ORKA [2], dipoles are used for typical reasons such as spatial constraints and the removal of certain unwanted particles. To reduce the length of the beamline (and therefore minimzing travel time), designer Jaap Dornboss suggested the implementation of a dipole adjusted at its front and back to introduce additional focusing and defocusing effects on the beam in both the vertical and horizontal directions. These effects are a direct result of the fringe fields, or the non-constant fields located at the ends of the dipole magnet. It is important to carefully consider these effects because of the sensitive nature of the ORKA secondary beamline to subtle differences in (specifically vertical) beam properties.

This document provides an in-depth derivation of the transfer matrix elements of the fringe field of a dipole magnet. In particular, standard optical approximations are applied to achieve a “first order” approximation of the fringe field. Initally, the system is simplified to consider an infinitesimally thin fringe field called the “sharp cutoff field.” Then, we consider a finite-length fringe field and its effects compared to that of the sharp cutoff field. Throughout the document, we assume conventional terminology and notation used in beam transport and as established in Refs. [1] and [3]. We also assume some basic knowledge of E&M and mechanical knowledge of a dipole magnet’s structure.

Throughout this document, we emphasize the approximations used to arrive at the solutions. For many magnets, these approximations yield accurate results; however, it is up to a designer to determine whether the approximations used are sufficiently accurate for consideration of the fringe field. We find that magnetic dipoles tuned for low momentum particles (<1GeV/c<1\,\mathrm{GeV}/c), bent through large angles (>1rad>1\,\mathrm{rad}), and/or containing large vertical gaps relative to their lengths require a higher-order consideration of fringe field effects for accurate analysis.

2 Impulse Approximation of Magnet Exit

In this section, we look to simplify the system by considering the effects of a fringe field with zero length. This configuration implies a constant field inside the magnet until the defined field boundary, after which the magnitude immediately drops to zero.

2.1 Coordinate Systems

Refer to caption
Figure 1: A 3-dimensional rendering of a simplified yet geometrically realistic dipole bending magnet. In this graphic, the “pole faces” are the two rectangular faces between the coils. The region of interest is a thin mid-plane volume.

When discussing the fringe field, calculations are simplified by placing the origin of each coordinate system at the center of the pole face. The natural coordinate system defined throughout the magnet is a cylindrical curvilinear coordinate system based on the radius of curvature of the reference trajectory111The reference trajectory is the uniform trajectory of the central ray. All other rays are measured relative. given by the magnetic field within the magnet. This system is called the (x,y,t)(x,y,t) coordinate system.

A new coordinate system is introduced to describe the motion of a particle upon exiting the magnet. This coordinate system again has an origin centered on the pole face and extends rectilinearly beyond the magnet, following the reference trajectory. This coordinate system is called the (ξ,y,ζ)(\xi,y,\zeta) coordinate system. Note that the yy axis, in both coordinate systems, points out of the page in Fig. 2.

Fig. 2 depicts the new coordinate definitions based on the natural curvilinear coordinate system. In the curvilinear coordinate system, t+t+ follows the path of the reference trajectory through the magnet, and the xx-axis points in the direction perpendicular to the tt axis in the bend-plane. Sometimes, a magnet’s pole face is rotated about the yy axis through an angle β\beta, conventionally positive for counter-clockwise rotations when viewed from above, to modify the effects on the beam.

Refer to caption
Figure 2: A description of the coordinate system. Note that the beam travels from left to right, with tt- and ζ\zeta- inside the magnet. A positive β\beta implies a counter-clockwise rotation of the pole face when viewed from above.

We first look to find an expression of xx and tt in terms of ξ\xi and ζ\zeta from Fig. 3. Figure 3) shows the region surrounding the pole face and a displaced particle with its corresponding position in both (x,y,t)(x,y,t) and (ξ,y,ζ)(\xi,y,\zeta). This image is centered around the origin of both coordinate systems (located at the pole face). Note that this graphic does not show the geometry of the magnet. For this reason, it should only be used for conceptualizing the relationship between coordinate systems.

Refer to caption
Figure 3: The trigonometry used to convert between the two coordinate systems. Note that both the angle θ\theta and the quantity tt are both negative.

From the pythagorean theorem, we find that (ρ+ξ)2+ζ2=(ρ+x)2,(\rho+\xi)^{2}+\zeta^{2}=(\rho+x)^{2}, or
x=ζ2+(ρ+ξ)2ρx=\sqrt{\zeta^{2}+(\rho+\xi)^{2}}-\rho. To solve for tt, we recognize that t=ρθt=\rho\theta, where θ\theta is the angle traversed in the path and ρ\rho is the radius of curvature. Then, tanθ=ζρ+ξ\tan\theta=\frac{\zeta}{\rho+\xi}. Together,

x=ζ2+(ρ+ξ)2ρ\displaystyle x=\sqrt{\zeta^{2}+(\rho+\xi)^{2}}-\rho
t=ρarctanζρ+ξ.\displaystyle t=\rho\,\mathrm{arctan}\frac{\zeta}{\rho+\xi}. (1)

Solving for ζ\zeta and ξ\xi, we have

ξ=ρ(costρ1)+xcostρ\displaystyle\xi=\rho\left(\cos\frac{t}{\rho}-1\right)+x\cos\frac{t}{\rho}
ζ=(ρ+x)sintp\displaystyle\zeta=(\rho+x)\sin\frac{t}{p} (2)

Now we construct an expression for the line that defines the exit pole-face in the ξζ\xi\zeta coordinate system as seen in Fig. 4 with

ζ=ξtanβ,\zeta=-\xi\tan\beta, (3)

where β\beta is the pole-face rotation angle.

Refer to caption
Figure 4: A plot of the pole face line in the ξζ\xi\zeta plane.

The component perpendicular to the bend plane, yy, is identical in both coordinate systems. We retain the same coordinate name for clarity and convenience. A point in the curvilinear coordinate system is given by (x,y,t)(x,y,t) while a point in the rectilinear coordinate system is given by (ξ,y,ζ)(\xi,y,\zeta).

2.2 Horizontal Effects

We begin the process of calculating the horizontal focusing effect of the fringe field. The initial position of the particle is given as (x0,y0,0)(x_{0},y_{0},0) in the (x,y,t)(x,y,t) coordinate system. This particle lies on the “reference plane” which is both the xyxy plane and the ξy\xi y plane at t=0t=0 and ζ=0\zeta=0 respectively. This plane coincides with the pole face when β=0\beta=0.

To calculate the horizontal effects, we must first trace the trajectory of a test particle222We designate an arbitrary particle off the reference trajectory as a “test particle.” It is distinct frommm the reference particle, which lies along the reference trajectory. This particle may or may not differ slightly in momentum from the reference particle. backwards in the (x,y,t)(x,y,t) coordinate system from the reference plane until it intersects the rotated pole-face. We then change to the rectilinear (ξ,y,ζ)(\xi,y,\zeta) coordinate system so that we can translate the particle through the wedge-shaped drift space. The net effect of this transformation removes the field’s effect on the particle through the region swept out by a rotation of the pole face. (Note that while this description assumes positive β\beta and x0x_{0}, the processes used can be rearranged for any condition. The final results are always the same.)

We know from established TRANSPORT documentation that the transformation through a dipole with radius of curvature ρ\rho and vertical magnetic field derivative nn (a unitless value equal to zero in the case of any relevant dipole magnet) is given as

x=x0cx(t)+x0sx(t)+δdx(t)\displaystyle x=x_{0}c_{x}(t)+x^{\prime}_{0}s_{x}(t)+\delta d_{x}(t)
x=x0cx(t)+x0sx(t)+δdx(t)\displaystyle x^{\prime}=x_{0}c^{\prime}_{x}(t)+x^{\prime}_{0}s^{\prime}_{x}(t)+\delta d^{\prime}_{x}(t)

where cx(t)=cos(kxt)c_{x}(t)=\cos(k_{x}t), sx(t)=1kxsin(kxt)s_{x}(t)=\frac{1}{k_{x}}\sin(k_{x}t),
dx(t)=1kx2ρ(1cos(kxt))d_{x}(t)=\frac{1}{k_{x}^{2}\rho}(1-\cos(k_{x}t)), and kx2=1nρ2k_{x}^{2}=\frac{1-n}{\rho^{2}}. Note that the prime indicates differentiation with respect to the longitudinal axis—in this case, tt—for the remainder of this document. Expanding the trajectories about t=0t=0, we have

x(t)\displaystyle x(t) =x0(1kx2t22+)+x0kx(kxtkx3t36+)\displaystyle=x_{0}\left(1-\frac{k_{x}^{2}t^{2}}{2}+\dots\right)+\frac{x_{0}^{\prime}}{k_{x}}\left(k_{x}t-\frac{k_{x}^{3}t^{3}}{6}+\dots\right)
+δkx2ρ(11+kx2t22)\displaystyle+\frac{\delta}{k_{x}^{2}\rho}\left(1-1+\frac{k_{x}^{2}t^{2}}{2}-\dots\right) (4)
x(t)\displaystyle x^{\prime}(t) =x0kx(kxtkx3t36+)+x0(1kx2t22+)\displaystyle=-x_{0}k_{x}\left(k_{x}t-\frac{k_{x}^{3}t^{3}}{6}+\dots\right)+x_{0}^{\prime}\left(1-\frac{k_{x}^{2}t^{2}}{2}+\dots\right)
+δkxρ(kxtkx3t36+).\displaystyle+\frac{\delta}{k_{x}\rho}\left(k_{x}t-\frac{k_{x}^{3}t^{3}}{6}+\dots\right). (5)

Note: We define δ\delta as the percentage difference between the test particle’s momentum and the reference momentum.

Approximation 1.

From the paraxial approximation used in first-order optics, we assert that each ray makes a small angle with the reference trajectory and lies a small distance from the reference ray compared to the radius of curvature of the reference trajectory. In the (x,y,t)(x,y,t) coordinate system used, this assumption implies

xρ1,yρ1\frac{x}{\rho}\ll 1,\;\;\frac{y}{\rho}\ll 1
x1,y1,δ1x^{\prime}\ll 1,\;\;y^{\prime}\ll 1,\;\;\delta\ll 1

The value of δ\delta is constrained to be significantly less than one in order to ensure that the angles formed with the reference trajectory stay small.

Because these values are small, any product of two or more of these quantities can be neglected in the first-order approximation.

In order to transform the particle backwards through the magnetic field (described above), we evaluate x(t0)x(t_{0}), x(t0)x^{\prime}(t_{0}), where t0t_{0} is the traversed longitudinal displacement from the reference plane to the pole face (see Fig. 5). Applying geometery and x0/ρ1x_{0}/\rho\ll 1 from Approximation 1, we observe that t0/ρ1t_{0}/\rho\ll 1. We can therefore treat it as a small quantity as we do with x0/ρx_{0}/\rho. In fact, dividing both sides of Eq. (2.2) by ρ\rho, we recognize there are several terms that contain a product of t0/ρt_{0}/\rho and some quantity mentioned in Approximation 1. Eliminating those terms and again multiplying through by ρ\rho, we have x=x0x=x_{0}. Applying the same argument to Eq. (2.2), we eliminate the products of small terms, yielding x=x0x^{\prime}=x_{0}^{\prime}. Together,

x\displaystyle x =x0\displaystyle=x_{0}
x\displaystyle x^{\prime} =x0.\displaystyle=x_{0}^{\prime}. (6)
Refer to caption
Figure 5: A graphical representation of a ray traced backwards from the reference plane. Note that t0t_{0} decreases as x0x_{0} decreases.

The above calculations show that tracing the particle backwards from the reference plane to the pole-face yields no first order changes.

The rotated pole-face geometrically yields a focusing or defocusing effect on horizontally displaced particles. Physically, the focusing effect is simply the result of passing through less (or more) field region. If a particle has a positive xx coordinate and the pole-face rotation angle β\beta is positive, then it will experience less field than the reference trajectory; likewise, if a particle has a negative xx coordinate and β\beta is positive, it will experience more field than the reference trajectory. The reverse occurs for a negative β\beta. Thus, we can expect that a positive β\beta results in a defocusing effect (the horizontal exit slope of particles with negative x0x_{0} decreases and the horizontal exit slope of particles with positive x0x_{0} increases) and similarly a negative β\beta results in a focusing effect.

To express this behavior mathematically, we must change to the ξζ\xi\zeta coordinate system to reflect the wedge-shaped, field-free region outside of the pole-face (see Fig. 6). This change in coordinate system reflects the physical fact that the particle’s direction does not change after exiting the field region: any ray will travel in a straight line once in the rectilinear coordinate system.

Refer to caption
Figure 6: Graphical representation of the field boundary, the wedge-shaped drift space, and the refrence plane.

By Eq. (2), we recognize that when we expand ξ\xi in tt and evaluate it at t=t0t=t_{0}, Approximation 1 yields ξ=x\xi=x. Because x=x0x=x_{0} to first order at the pole face (see Eq. (6)), we conclude that, at the reference plane in the ξζ\xi\zeta coordinate system, ξ=x0\xi=x_{0}. Therefore, we only look for effects in ξ=dξdζ\xi^{\prime}=\frac{d\xi}{d\zeta} due to the change in coordinate system.

To find these effects, we begin by applying the chain rule:

dξdζ=dξdtdζdt=ξxdxdt+ξtζxdxdt+ζt.\displaystyle\frac{d\xi}{d\zeta}=\frac{\frac{d\xi}{dt}}{\frac{d\zeta}{dt}}=\frac{\frac{\partial\xi}{\partial x}\frac{dx}{dt}+\frac{\partial\xi}{\partial t}}{\frac{\partial\zeta}{\partial x}\frac{dx}{dt}+\frac{\partial\zeta}{\partial t}}.

From Eq. (2), we substitute in the appropriate derivatives to obtain

dξdζ=dxdtcostρ(1+xρ)sintρdxdtsintρ+(1+xρ)costρ=x0costρ(1+x0ρ)sintρx0sintρ+(1+x0ρ)costρ.\frac{d\xi}{d\zeta}=\frac{\frac{dx}{dt}\cos\frac{t}{\rho}-\left(1+\frac{x}{\rho}\right)\sin\frac{t}{\rho}}{\frac{dx}{dt}\sin\frac{t}{\rho}+\left(1+\frac{x}{\rho}\right)\cos\frac{t}{\rho}}=\frac{x_{0}^{\prime}\cos\frac{t}{\rho}-\left(1+\frac{x_{0}}{\rho}\right)\sin\frac{t}{\rho}}{x_{0}^{\prime}\sin\frac{t}{\rho}+\left(1+\frac{x_{0}}{\rho}\right)\cos\frac{t}{\rho}}.

To simplify, we first expand in tt and evaluate at t=t0t=t_{0}, giving

dξdζ=x0(1t022ρ2+)(1+x0ρ)(t0ρt036ρ3+)x0(t0ρt036ρ3+)+(1+x0ρ)(1t022ρ2+).\frac{d\xi}{d\zeta}=\frac{x_{0}^{\prime}\left(1-\frac{t_{0}^{2}}{2\rho^{2}}+\dots\right)-\left(1+\frac{x_{0}}{\rho}\right)\left(\frac{t_{0}}{\rho}-\frac{t_{0}^{3}}{6\rho^{3}}+\dots\right)}{x_{0}^{\prime}\left(\frac{t_{0}}{\rho}-\frac{t_{0}^{3}}{6\rho^{3}}+\dots\right)+\left(1+\frac{x_{0}}{\rho}\right)\left(1-\frac{t_{0}^{2}}{2\rho^{2}}+\dots\right)}.

Applying Approximation 1 yields

dξdζ=x0t0ρ1+x0ρ.\frac{d\xi}{d\zeta}=\frac{x_{0}^{\prime}-\frac{t_{0}}{\rho}}{1+\frac{x_{0}}{\rho}}.

Now expanding in x0/ρx_{0}/\rho, we find that

dξdζ=(x0t0ρ)(1x0ρ+x02ρ2).\frac{d\xi}{d\zeta}=\left(x_{0}^{\prime}-\frac{t_{0}}{\rho}\right)\left(1-\frac{x_{0}}{\rho}+\frac{x_{0}^{2}}{\rho^{2}}-\dots\right).

and, again applying Approximation 1,

dξdζ=x0t0ρ.\frac{d\xi}{d\zeta}=x_{0}^{\prime}-\frac{t_{0}}{\rho}.

Again recalling Eq. (2), we recognize that ζ=t\zeta=t to first order and, as before, ξ=x\xi=x. Substituting these relations into Eq. (3), we have t=xtanβt=-x\tan\beta. Finally, substituting x0tanβ-x_{0}\tan\beta for t0t_{0} into the above equation yields

ξ=x0+x0ρtanβ.\xi^{\prime}=x_{0}^{\prime}+\frac{x_{0}}{\rho}\tan\beta.

To translate the particle through the wedge-shaped drift space, we apply the standard drift space transformation ξ=ξ0+ξζ0\xi=\xi_{0}+\xi^{\prime}\zeta_{0} where, to first order, (x0,t0)(ξ0,ζ0)(x_{0},t_{0})\equiv(\xi_{0},\zeta_{0}) (ζ0\zeta_{0} is the distance from the pole face to the reference plane in the ζ\zeta direction). Rewriting,

ξ=ξ0+ξζ0\displaystyle\xi=\xi_{0}+\xi^{\prime}\zeta_{0} =x0+(x0+x0ρtanβ)t0\displaystyle=x_{0}+\left(x_{0}^{\prime}+\frac{x_{0}}{\rho}\tan\beta\right)t_{0}
=x0+x0t0+t0x0ρtanβ.\displaystyle=x_{0}+x_{0}^{\prime}t_{0}+t_{0}\frac{x_{0}}{\rho}\tan\beta.

Noting from Fig. 5 that t0ρ1\frac{t_{0}}{\rho}\ll 1 and applying Approximation 1, we eliminate appropriate terms, yielding

ξ=x0.\xi=x_{0}.

It is important to note that slopes do not change when traversing a drift space, so we still have

ξ=x0+x0ρtanβ.\xi^{\prime}=x_{0}^{\prime}+\frac{x_{0}}{\rho}\tan\beta.

Then, in order to conform to the standard coordinate system (x,t)(x,t), we rename (ξ,ζ)(x,t)(\xi,\zeta)\equiv(x,t) once the particle reaches the reference plane (see Fig. 2). Thus we have

x=x0\displaystyle x=x_{0}
x=x0+x0ρtanβ.\displaystyle x^{\prime}=x_{0}^{\prime}+\frac{x_{0}}{\rho}\tan\beta. (7)

This result is the complete transformation due to the fringe field in the horizontal direction. Figure 7 provides an intuitive geometric description of the transformation in the xx^{\prime} coordinate.

Refer to caption
Figure 7: From the triangle with side aa opposite of β\beta, we fnd that tanβ=a/(x0ϵ)\tan\beta=a/(x_{0}-\epsilon). From the triangle with aa opposite of ω\omega, we have tanω=a/(ρϵ)\tan\omega=a/(\rho-\epsilon). By Approximation 1, we have that ϵ0\epsilon\approx 0. Therefore, tanω(x0tanβ)/ρ\tan\omega\approx(x_{0}\tan\beta)/\rho, i.e., the change in the slope.

2.3 Vertical Effects

Vertical effects on rays passing through the fringe field of a dipole are caused by the element of the field perpendicular to the pole face. For the impulse approximation, if β=0\beta=0, this element of the field will be in the direction of motion of the particle, causing no vertical forces on the particle and leaving the trajectory unchanged. To begin analysis, we suppose that the field 𝐁\mathbf{B} around the pole face also has some non-zero component in the direction perpendicular to the pole face, along with the typical field component ByB_{y}. It is important to clarify that specifics regarding the field are unnessesary for this mathematical consideration.

We begin with the trajectory coordinates before considering the effects of a vertical fringe field. Note that y=y0y=y_{0} and y=y0y^{\prime}=y_{0}^{\prime} before entering the fringe field.

2.3.1 Equation of Motion

We look to find the equation of motion in the yy direction to describe the trajectory. To do so, we must find an expression for all components of the magnetic field. Referencing Maxwell’s equations (Ampere’s Law), we note that ×𝐁=𝟎\mathbf{\nabla}\times\mathbf{B}=\mathbf{0}. Therefore,

Bζy\displaystyle\frac{\partial B_{\zeta}}{\partial y} =Byζ\displaystyle=\frac{\partial B_{y}}{\partial\zeta}
Bξy\displaystyle\frac{\partial B_{\xi}}{\partial y} =Byξ,\displaystyle=\frac{\partial B_{y}}{\partial\xi}, (8)

where the BξB_{\xi} and BζB_{\zeta} fields are components of the field 𝐁\mathbf{B} in the respective directions, as seen in Fig. 8.

Refer to caption
Figure 8: A diagram of the component of 𝐁\mathbf{B} in the bend plane.

We recognize that ByB_{y} depends solely on ξ\xi and ζ\zeta—it is constant in yy, as expected. Hence, Byζ\frac{\partial B_{y}}{\partial\zeta} depends only on ξ\xi and ζ\zeta. With the sharp cutoff field, ByB_{y} changes from constant B0B_{0} inside of the magnet to zero outside of the magnet. This implies that ByB_{y} is a step function where Byζ\frac{\partial B_{y}}{\partial\zeta} is infinite, and therefore nonzero, at the effective field boundary. However, this discontinuity is irrelevant with regards to the following method of analysis.

By using the first line from Eq. (2.3.1), BζB_{\zeta} is linear in yy (upon integrating both sides by yy), or

Bζ=yByζ.B_{\zeta}=y\frac{\partial B_{y}}{\partial\zeta}. (9)

Expressing Newton’s Second Law in the yy direction in a magnetic field,

md2ydt2\displaystyle m\frac{d^{2}y}{dt^{2}} =q(𝐯×𝐁)y\displaystyle=q(\mathbf{v}\times\mathbf{B})_{y}
(d2ydζ2vζ+dydζdvζdζ)vζ\displaystyle\left(\frac{d^{2}y}{d\zeta^{2}}v_{\zeta}+\frac{dy}{d\zeta}\frac{dv_{\zeta}}{d\zeta}\right)v_{\zeta} =qm(𝐯×𝐁)y\displaystyle=\frac{q}{m}(\mathbf{v}\times\mathbf{B})_{y}
=qm(vζBξvξBζ).\displaystyle=\frac{q}{m}(v_{\zeta}B_{\xi}-v_{\xi}B_{\zeta}). (10)

where333Cases involving vζ=0v_{\zeta}=0, although mathematically feasible, are physically unrealizable and therefore irrelevant.

vξ=ξζvζ=ξvζ,v_{\xi}=\frac{\partial\xi}{\partial\zeta}v_{\zeta}=\xi^{\prime}v_{\zeta}, (11)

(where the prime notation indicates differentiation with respect to ζ\zeta, the longitudinal axis in the (ξ,y,ζ)(\xi,y,\zeta) coordinate system), from the chain rule. Therefore, vξBζ=ξvζyByζv_{\xi}B_{\zeta}=\xi^{\prime}v_{\zeta}y\frac{\partial B_{y}}{\partial\zeta}. Rewritng Eq. (2.3.1),

y′′=qmvζ2(vζBξξvζyByζmqydvζdζvζ)y^{\prime\prime}=\frac{q}{mv_{\zeta}^{2}}\left(v_{\zeta}B_{\xi}-\xi^{\prime}v_{\zeta}y\frac{\partial B_{y}}{\partial\zeta}-\frac{m}{q}y^{\prime}\frac{dv_{\zeta}}{d\zeta}v_{\zeta}\right)
Approximation 2.

The speed v0v_{0} of a given ray is

v0=vξ2+vy2+vζ2=vζ+vξ22vζ+vy22vζ.v_{0}=\sqrt{v_{\xi}^{2}+v_{y}^{2}+v_{\zeta}^{2}}=v_{\zeta}+\frac{v_{\xi}^{2}}{2v_{\zeta}}+\frac{v_{y}^{2}}{2v_{\zeta}}-\dots.

From the chain rule,

v0=vζ+ξ2vζ22vζ+y2vζ22vζ.v_{0}=v_{\zeta}+\frac{\xi^{\prime 2}v_{\zeta}^{2}}{2v_{\zeta}}+\frac{y^{\prime 2}v_{\zeta}^{2}}{2v_{\zeta}}-\dots.

From Approximation 1, we say

v0=vζ.v_{0}=v_{\zeta}.

By using Approximation 2 and the fact that ρB0=p/q\rho B_{0}=p/q (where B0B_{0} is the magnitude of the field on the interior of the magnet), we have

y′′\displaystyle y^{\prime\prime} =qmv0(vζBξvζξvζyvζByζmqydvζdζvζvζ)\displaystyle=\frac{q}{mv_{0}}\left(\frac{v_{\zeta}B_{\xi}}{v_{\zeta}}-\frac{\xi^{\prime}v_{\zeta}y}{v_{\zeta}}\frac{\partial B_{y}}{\partial\zeta}-\frac{m}{q}y^{\prime}\frac{dv_{\zeta}}{d\zeta}\frac{v_{\zeta}}{v_{\zeta}}\right)
=qp(BξξyByζmqydvζdζ)\displaystyle=\frac{q}{p}\left(B_{\xi}-\xi^{\prime}y\frac{\partial B_{y}}{\partial\zeta}-\frac{m}{q}y^{\prime}\frac{dv_{\zeta}}{d\zeta}\right)
=1B0(BξρξyρByζmqρydvζdζ)\displaystyle=\frac{1}{B_{0}}\left(\frac{B_{\xi}}{\rho}-\xi^{\prime}\frac{y}{\rho}\frac{\partial B_{y}}{\partial\zeta}-\frac{m}{q\rho}y^{\prime}\frac{dv_{\zeta}}{d\zeta}\right) (12)
=1B0(BξρξyρByζmqρyddt[dζdζ])\displaystyle=\frac{1}{B_{0}}\left(\frac{B_{\xi}}{\rho}-\xi^{\prime}\frac{y}{\rho}\frac{\partial B_{y}}{\partial\zeta}-\frac{m}{q\rho}y^{\prime}\frac{d}{dt}\left[\frac{d\zeta}{d\zeta}\right]\right) (13)
=1B0(BξρξyρByζ).\displaystyle=\frac{1}{B_{0}}\left(\frac{B_{\xi}}{\rho}-\xi^{\prime}\frac{y}{\rho}\frac{\partial B_{y}}{\partial\zeta}\right).

Finally, from Approximation 1 in the (ξ,y,ζ)(\xi,y,\zeta) coordinate system,

y′′=1B0ρBξ.y^{\prime\prime}=\frac{1}{B_{0}\rho}B_{\xi}. (14)

2.3.2 Evaluating the Equation of Motion

Integrating Eq. (14) once across the field boundary yields the change in the derivative of yy with respect to ζ\zeta. That is,

Δy(ζ)=1B0ρζζBξ𝑑ζ,\Delta y^{\prime}(\zeta)=\frac{1}{B_{0}\rho}\int_{-\zeta}^{\zeta}B_{\xi}\,d\zeta^{*}, (15)

for ζ0\zeta\geq 0. Referencing Eq. (2.3.1) and integrating both sides with respect to ζ\zeta^{*}, we find that

yζζBξ𝑑ζ=ξζζBy𝑑ζ.\frac{\partial}{\partial y}\int_{-\zeta}^{\zeta}B_{\xi}\,d\zeta^{*}=\frac{\partial}{\partial\xi}\int_{-\zeta}^{\zeta}B_{y}\,d\zeta^{*}. (16)

Recalling Eq. (3) and differentiating,

ζξ=tanβ.\frac{\partial\zeta}{\partial\xi}=-\tan\beta. (17)

Now consider the integral across the field boundary, ζζBy𝑑ζ\int_{-\zeta}^{\zeta}B_{y}\,d\zeta^{*}. Because ByB_{y} is B0B_{0} before the boundary and zero afterwards, the integral evaluates to simply B0ζB_{0}\zeta. From using this result and by Eq. (17), we have

ξζζBy𝑑ζ=ξ(B0ζ)=B0ζξ=B0tanβ.\frac{\partial}{\partial\xi}\int_{-\zeta}^{\zeta}B_{y}\,d\zeta^{*}=\frac{\partial}{\partial\xi}(B_{0}\zeta)=B_{0}\frac{\partial\zeta}{\partial\xi}=-B_{0}\tan\beta. (18)

Now, equating Eq. (16) and Eq. (18) and integrating over yy from zero to y0y_{0}, we have

ζζBξ𝑑ζ=B0y0tanβ.\int_{-\zeta}^{\zeta}B_{\xi}d\zeta^{*}=-B_{0}y_{0}\tan\beta. (19)

Finally, we can recall Eq. (15) and combine it with Eq. (19), yielding an expression for the change in yy^{\prime},

Δy=y0ρtanβ.\Delta y^{\prime}=-\frac{y_{0}}{\rho}\tan\beta. (20)

This change in the derivative of yy with respect to ζ\zeta is simply the change that results only from crossing the field boundary. We note that an integration to find the change in yy would result in infintesimal bounds, yielding a zero result. Hence, the total transformation due to the fringe field is

y=y0\displaystyle y=y_{0}
y=y0y0ρtanβ.\displaystyle y^{\prime}=y_{0}^{\prime}-\frac{y_{0}}{\rho}\tan\beta. (21)

2.4 Alternative Derivation of Vertical Effects

We begin by considering the vertical component of the magnetic field in the magnet. On the interior of the magnet, the vertical component of the field has a value of B0B_{0} and on the exterior of the magnet the vertical component of the field has a value of zero. We look to define a new axis that is perpendicular to the rotated pole-face of the magnet in order to express the field mathematically. We use the geometry of the ξ\xi and ζ\zeta axes and the pole face to construct this axis (see Fig. 9). Let us define the new axis σ\sigma as

σ=ξsinβ+ζcosβ.\sigma=\xi\sin\beta+\zeta\cos\beta.
Refer to caption
Figure 9: Graphical depiction of the geometry used to define σ\sigma.

The field along the σ\sigma axis looks like a Heaviside function, H(x)H(x), so

By=B0H(σ)B_{y}=B_{0}\,H(-\sigma)

Rewriting this definition in terms of ξ\xi and ζ\zeta gives

By=B0H(ξsinβζcosβ).B_{y}=B_{0}\,H(-\xi\sin\beta-\zeta\cos\beta).

In order to find the field components in the ξ\xi and ζ\zeta directions, we must reference one of Maxwell’s equations and see that ×𝐁=𝟎\nabla\times\mathbf{B}=\mathbf{0}. That is,

|ξ^y^ζ^ξyζBξByBζ|=𝟎.\left|\begin{array}[]{ccc}{\hat{\xi}}&{\hat{y}}&{\hat{\zeta}}\\ \frac{\partial}{\partial\xi}&\frac{\partial}{\partial y}&\frac{\partial}{\partial\zeta}\\ B_{\xi}&B_{y}&B_{\zeta}\end{array}\right|=\mathbf{0}.

Hence, we have

Bξy\displaystyle\frac{\partial B_{\xi}}{\partial y} =Byξ=B0δ(ξsinβ+ζcosβ)sinβ\displaystyle=\frac{\partial B_{y}}{\partial\xi}=-B_{0}\delta(\xi\sin\beta+\zeta\cos\beta)\sin\beta
Bζy\displaystyle\frac{\partial B_{\zeta}}{\partial y} =Byζ=B0δ(ξsinβ+ζcosβ)cosβ,\displaystyle=\frac{\partial B_{y}}{\partial\zeta}=-B_{0}\delta(\xi\sin\beta+\zeta\cos\beta)\cos\beta,

where δ(x)\delta(x) is the Dirac delta function.

Therefore, we can solve for BξB_{\xi} and BζB_{\zeta} by integrating from zero to y0y_{0} in yy. Because these functions are constant in yy, this calculation is a simple process and yields, together with ByB_{y},

Bξ\displaystyle B_{\xi} =B0y0δ(ξsinβ+ζcosβ)cosβ\displaystyle=-B_{0}y_{0}\delta(\xi\sin\beta+\zeta\cos\beta)\cos\beta
By\displaystyle B_{y} =B0H(ξsinβζcosβ)\displaystyle=B_{0}\,H(-\xi\sin\beta-\zeta\cos\beta)
Bζ\displaystyle B_{\zeta} =B0y0δ(ξsinβ+ζcosβ)sinβ.\displaystyle=-B_{0}y_{0}\delta(\xi\sin\beta+\zeta\cos\beta)\sin\beta.

As before, we write the equation of motion (see Eq. (2.3.1)) and substitute in the field components and the expression for vξv_{\xi} (as in Eq. (11)). So, we now have

(y′′vζ+ydvζdζ)vζ\displaystyle\left(y^{\prime\prime}v_{\zeta}+y^{\prime}\frac{dv_{\zeta}}{d\zeta}\right)v_{\zeta} =qm(𝐯×𝐁)y\displaystyle=\frac{q}{m}(\mathbf{v}\times\mathbf{B})_{y}
=qm(vζBξvξBζ)\displaystyle=\frac{q}{m}(v_{\zeta}B_{\xi}-v_{\xi}B_{\zeta})
=qB0vζm[ξy0cosβy0sinβ]δ(ξsinβ+ζcosβ)\displaystyle=\frac{qB_{0}v_{\zeta}}{m}\left[\xi^{\prime}y_{0}\cos\beta-y_{0}\sin\beta\right]\,\delta(\xi\sin\beta+\zeta\cos\beta)
y′′\displaystyle y^{\prime\prime} =1ρ[ξy0cosβy0sinβmqyddt(dζdζ)]δ(ξsinβ+ζcosβ)\displaystyle=\frac{1}{\rho}\left[\xi^{\prime}y_{0}\cos\beta-y_{0}\sin\beta-\frac{m}{q}y^{\prime}\frac{d}{dt}\left(\frac{d\zeta}{d\zeta}\right)\right]\,\delta(\xi\sin\beta+\zeta\cos\beta) (22)
y′′\displaystyle y^{\prime\prime} =1ρ[ξy0cosβy0sinβ]δ(ξsinβ+ζcosβ).\displaystyle=\frac{1}{\rho}\left[\xi^{\prime}y_{0}\cos\beta-y_{0}\sin\beta\right]\,\delta(\xi\sin\beta+\zeta\cos\beta).

By Approximation 1, we eliminate the second order term ξy/ρ\xi^{\prime}y/\rho. We simplify the equation to

y′′=y0ρδ(ξsinβ+ζcosβ)sinβ.y^{\prime\prime}=-\frac{y_{0}}{\rho}\delta(\xi\sin\beta+\zeta\cos\beta)\sin\beta. (23)

Integrating with respect to ζ\zeta across the pole-face from ξtanβϵ-\xi\tan\beta-\epsilon to ξtanβ+ϵ-\xi\tan\beta+\epsilon (referencing Eq. (3)) for any ϵ>0\epsilon>0, we have

Δy\displaystyle\Delta y^{\prime} =y0sinβρξtan(β)ϵξtan(β)+ϵδ(ξsinβ+ζcosβ)𝑑ζ\displaystyle=-\frac{y_{0}\sin\beta}{\rho}\int_{-\xi\tan(\beta)-\epsilon}^{-\xi\tan(\beta)+\epsilon}\delta(\xi\sin\beta+\zeta\cos\beta)\,d\zeta
Δy\displaystyle\Delta y^{\prime} =y0tanβρ.\displaystyle=-\frac{y_{0}\tan\beta}{\rho}.

This result is the total change of the slope yy^{\prime} from passing through the sharp cutoff field.

We then attempt to calculate the total change in the yy position from passing through the pole face. To do this, we take the antiderivative of both sides of Eq. (23) and integrate across the field boundary, as before, with the same bounds.

ϵϵdydζ𝑑ζ\displaystyle\int_{-\epsilon}^{\epsilon}\frac{dy}{d\zeta}d\zeta =ξtan(β)ϵξtan(β)+ϵ[y0sinβρδ(ξsinβ+ζcosβ)𝑑ζ]𝑑ζ\displaystyle=\int_{-\xi\tan(\beta)-\epsilon}^{-\xi\tan(\beta)+\epsilon}\left[-\frac{y_{0}\sin\beta}{\rho}\int\delta(\xi\sin\beta+\zeta^{*}\cos\beta)\,d\zeta^{*}\right]\,d\zeta
Δy\displaystyle\Delta y =ξtan(β)ϵξtan(β)+ϵ[cy0tanβH(ξsinβ+ζcosβ)ρ]𝑑ζ\displaystyle=\int_{-\xi\tan(\beta)-\epsilon}^{-\xi\tan(\beta)+\epsilon}\left[c-\frac{y_{0}\tan\beta\,H(\xi\sin\beta+\zeta\cos\beta)}{\rho}\right]\,d\zeta
Δy\displaystyle\Delta y =[cζy0tanβρH(ξsinβ+ζcosβ)(ζ+ξsinβ)]|ξtan(β)ϵξtan(β)+ϵ\displaystyle=\left[c\zeta-\frac{y_{0}\tan\beta}{\rho}H(\xi\sin\beta+\zeta\cos\beta)(\zeta+\xi\sin\beta)\right]\bigg{|}_{-\xi\tan(\beta)-\epsilon}^{-\xi\tan(\beta)+\epsilon}

We see as ϵ\epsilon goes to zero,

Δy=0.\Delta y=0.

The above result shows that the total change of yy from passing through the sharp cutoff field is zero.

Thus, the transformation through the sharp cutoff field is:

y\displaystyle y =y0\displaystyle=y_{0}
y\displaystyle y^{\prime} =y0y0tanβρ.\displaystyle=y_{0}^{\prime}-\frac{y_{0}\tan\beta}{\rho}.

3 Extended Fringe Field Effects

3.1 Coordinate System

In this section, we look to get a better approximation than the previous impulse approximation. The impulse approximation’s sharp cutoff magnetic field cannot be physically realized. We look to find an approximation based on a finite vertical pole gap where the fringe field extends beyond that of the sharp cutoff case. Recall that the pole width is still treated as if it were infinite so that the field never has a non-zero horizontally transverse component. See Fig. 10.

Refer to caption
Figure 10: A view from the side of the dipole exit face. There is no field in or out of the page.

We first look to define an axis perpendicular to the pole-face in the y=0y=0 plane (see Fig. 9). The magnitude of the field |𝐁||\mathbf{B}| is then only a function of this coordinate σ\sigma and the yy coordinate. That is,

σ=ζcosβ+ξsinβg,\sigma=\frac{\zeta\cos\beta+\xi\sin\beta}{g}, (24)

where gg is the vertical pole gap444The definition of σ\sigma here differs from the definition given in the alternative derivation for the sharp cutoff field by a factor of gg.. For sufficiently large positive σ\sigma, the magnitude of the field is zero. Conversely, for sufficiently large negative σ\sigma, the magnitude of the field is B0B_{0}, or the magnitude inside the magnet. We name these values σ2\sigma_{2} and σ1-\sigma_{1} respectively. Note that σ2\sigma_{2} is finite but large enough such that any remaining field is trivial.

Let σ=0\sigma=0 be the “effective field boundary,” or the point at which the sharp cutoff field drops to zero. Further, let By0B^{0}_{y} be the function representing the sharp cutoff field. Consider the sharp cutoff field and the extended fringe field as functions of σ\sigma. We set the effective field boundary such that

σ1σ2By𝑑σ=σ1σ2By0𝑑σ=σ1B0,\int_{-\sigma_{1}}^{\sigma_{2}}B_{y}\,d\sigma=\int_{-\sigma_{1}}^{\sigma_{2}}B_{y}^{0}\,d\sigma=\sigma_{1}B_{0}, (25)

where ByB_{y} represents the magnitude of the field in the vertical direction at y=0y=0 (see Fig. 11). While the definition is an approximation because ByB_{y} does indeed vary with yy, it is necessary and reasonable for small, practical values of yy (as can be seen in Fig. 10).

Refer to caption
Figure 11: A graphical depiction of Eq. (25). The gray regions are equivalent in area, showing the equivalence of the integrals.

Finding the field components in the other two directions ξ\xi and ζ\zeta is necessary in order to apply the Lorentz force. Because By=By(σ)B_{y}=B_{y}(\sigma), we know that By=By(ξ,ζ)B_{y}=B_{y}(\xi,\zeta). Applying Ampere’s Law,

Bζy=Byζ,Bξy=Byξ.\frac{\partial B_{\zeta}}{\partial y}=\frac{\partial B_{y}}{\partial\zeta},\,\,\,\frac{\partial B_{\xi}}{\partial y}=\frac{\partial B_{y}}{\partial\xi}.

Taking the antiderivative of both sides of each of the above equations with respect to yy yields

Bζ=Byζ𝑑y\displaystyle B_{\zeta}=\int\frac{\partial B_{y}}{\partial\zeta}dy
Bξ=Byξ𝑑y\displaystyle B_{\xi}=\int\frac{\partial B_{y}}{\partial\xi}dy

Evaluating the integrals on the right, we have

Bζ=yByζ\displaystyle B_{\zeta}=y\frac{\partial B_{y}}{\partial\zeta}
Bξ=yByξ\displaystyle B_{\xi}=y\frac{\partial B_{y}}{\partial\xi}

Finally, applying the chain rule from derivatives of Eq. (24),

Bζ=ycosβgdBydσ\displaystyle B_{\zeta}=\frac{y\cos\beta}{g}\frac{dB_{y}}{d\sigma} (26)
Bξ=ysinβgdBydσ.\displaystyle B_{\xi}=\frac{y\sin\beta}{g}\frac{dB_{y}}{d\sigma}.

From these expressions of the field in the three coordinate directions, we can determine the horizontal and vertical effects of the fringe field.

3.2 Horizontal Effects

To calculate the horizontal trajectory, we begin with an expression of Newton’s second law in the ξ\xi direction,

m(ξ′′vζ+ξdvζdζ)vζ\displaystyle m\left(\xi^{\prime\prime}v_{\zeta}+\xi^{\prime}\frac{dv_{\zeta}}{d\zeta}\right)v_{\zeta} =q(𝐯×𝐁)ξ\displaystyle=q(\mathbf{v}\times\mathbf{B})_{\xi}
=q(vyBζvζBy)\displaystyle=q(v_{y}B_{\zeta}-v_{\zeta}B_{y})

From Eq. (26), we substitute in BζB_{\zeta}. Further we recognize that vy=vζyv_{y}=v_{\zeta}y^{\prime} where the prime indicates differentiation with respect to ζ\zeta (the longitudinal axis in this coordinate system). So,

m(ξ′′vζ+ξdvζdζ)vζ=q(vζyycosβgdBydσvζBy)m\left(\xi^{\prime\prime}v_{\zeta}+\xi^{\prime}\frac{dv_{\zeta}}{d\zeta}\right)v_{\zeta}=q\left(v_{\zeta}y^{\prime}y\frac{\cos\beta}{g}\frac{dB_{y}}{d\sigma}-v_{\zeta}B_{y}\right)

After dividing by mvζmv_{\zeta}, we use Approximation 2 and p/q=B0ρp/q=B_{0}\rho:

ξ′′vζ+ξdvζdζ\displaystyle\xi^{\prime\prime}v_{\zeta}+\xi^{\prime}\frac{dv_{\zeta}}{d\zeta} =qm(yycosβgdBydσBy)\displaystyle=\frac{q}{m}\left(y^{\prime}y\frac{\cos\beta}{g}\frac{dB_{y}}{d\sigma}-B_{y}\right)
ξ′′vζ\displaystyle\xi^{\prime\prime}v_{\zeta} =qm(yycosβgdBydσBymqξddt[dζdζ])\displaystyle=\frac{q}{m}\left(y^{\prime}y\frac{\cos\beta}{g}\frac{dB_{y}}{d\sigma}-B_{y}-\frac{m}{q}\xi^{\prime}\frac{d}{dt}\left[\frac{d\zeta}{d\zeta}\right]\right)
ξ′′\displaystyle\xi^{\prime\prime} =1B0ρ(yycosβgdBydσBy).\displaystyle=\frac{1}{B_{0}\rho}\left(y^{\prime}y\frac{\cos\beta}{g}\frac{dB_{y}}{d\sigma}-B_{y}\right).

Then, applying Approximation 1, we eliminate the term containing yy/ρy^{\prime}y/\rho and find

ξ′′=1B0ρBy.\displaystyle\xi^{\prime\prime}=-\frac{1}{B_{0}\rho}B_{y}. (27)

Because dζ/dσ=g/cosβd\zeta/d\sigma=g/\cos\beta from Eq. (24), we multiply both sides of Eq. (27) by this quantity and apply the chain rule to both sides, yielding

ddσ[ξ]=gB0ρcosβBy.\frac{d}{d\sigma}[\xi^{\prime}]=-\frac{g}{B_{0}\rho\cos\beta}B_{y}. (28)

Integrating both sides from σ1-\sigma_{1} to σ2\sigma_{2},

ξ|σ2ξ|σ1=gB0ρcosβσ1σ2By𝑑σ\xi^{\prime}\big{|}_{\sigma_{2}}-\xi^{\prime}\big{|}_{-\sigma_{1}}=-\frac{g}{B_{0}\rho\cos\beta}\int_{-\sigma_{1}}^{\sigma_{2}}B_{y}d\sigma (29)

We observe that Eq. (29) is valid for By0B^{0}_{y} and ByB_{y}, the extended field case. We denote the slopes of the trajectories with subscripts EE and SS for the extended fringe field and sharp cutoff field cases respectively. Subtracting the two, we have

[ξS|σ2ξS|σ1][ξE|σ2ξE|σ1]=gB0ρcosβσ1σ2(By0By)𝑑σ.\left[\xi^{\prime}_{S}\big{|}_{\sigma_{2}}-\xi^{\prime}_{S}\big{|}_{-\sigma_{1}}\right]-\left[\xi^{\prime}_{E}\big{|}_{\sigma_{2}}-\xi^{\prime}_{E}\big{|}_{-\sigma_{1}}\right]=-\frac{g}{B_{0}\rho\cos\beta}\int_{-\sigma_{1}}^{\sigma_{2}}(B^{0}_{y}-B_{y})\,d\sigma.

Recognizing that the second and fourth terms on the left side both represent the slope well inside the magnet by the definition of σ1\sigma_{1}, their difference is zero. Thus,

ξS|σ2ξE|σ2=gB0ρcosβσ1σ2(By0By)𝑑σ.\xi^{\prime}_{S}\big{|}_{\sigma_{2}}-\xi^{\prime}_{E}\big{|}_{\sigma_{2}}=-\frac{g}{B_{0}\rho\cos\beta}\int_{-\sigma_{1}}^{\sigma_{2}}(B^{0}_{y}-B_{y})\,d\sigma.

This equation represents the difference of the slopes of the sharp cutoff case and the extended case at σ2\sigma_{2}. Recalling Eq. (25),

σ1σ2(By0By)𝑑σ=(B0σ1B0σ1)=0.\int_{-\sigma_{1}}^{\sigma_{2}}(B^{0}_{y}-B_{y})\,d\sigma=(B_{0}\sigma_{1}-B_{0}\sigma_{1})=0.

Then,

ξS|σ2ξE|σ2=0.\xi^{\prime}_{S}\big{|}_{\sigma_{2}}-\xi^{\prime}_{E}\big{|}_{\sigma_{2}}=0.

Hence, the vertical slope of the trajectory in the bend plane in the case of the extended fringe field is equal to the slope in the sharp cutoff field. As such, x=x0+x0ρtanβx^{\prime}=x_{0}^{\prime}+\frac{x_{0}}{\rho}\tan\beta, just as in Eq. (2.2).

By using the process to achieve Eq. (28) twice, we find that

d2dσ2[ξ]=g2B0ρcos2βBy.\frac{d^{2}}{d\sigma^{2}}[\xi]=-\frac{g^{2}}{B_{0}\rho\cos^{2}\beta}B_{y}.

We integrate twice with respect to σ\sigma and subtract the sharp cutoff case and the extended case to find the difference in ξ\xi between the extended case and the sharp cutoff case, just as before. This process results in

ξE|σ2ξS|σ2\displaystyle\xi_{E}\big{|}_{\sigma_{2}}-\xi_{S}\big{|}_{\sigma_{2}} =g2B0ρcos2βσ1σ2σ1σ(By0By)𝑑σ𝑑σ\displaystyle=\frac{g^{2}}{B_{0}\rho\cos^{2}\beta}\int_{-\sigma_{1}}^{\sigma_{2}}\int_{-\sigma_{1}}^{\sigma^{*}}(B^{0}_{y}-B_{y})\,d\sigma\,d\sigma^{*}
=g2ρcos2βI1\displaystyle=\frac{g^{2}}{\rho\cos^{2}\beta}I_{1}

where

I1=σ1σ2σ1σBy0ByB0𝑑σ𝑑σ.I_{1}=\int_{-\sigma_{1}}^{\sigma_{2}}\int_{-\sigma_{1}}^{\sigma^{*}}\frac{B^{0}_{y}-B_{y}}{B_{0}}\,d\sigma\,d\sigma^{*}.

This difference represents the horizontal dispacement of a ray from the equivalent ray in the sharp cutoff case. This displacement affects any input ray equivalently. Therefore, the net effect is a shift in the entire beam, including the reference trajectory. Because this difference does not depend on any initial trajectory coordinates, we call this effect a “zeroth order” effect.

The final effects of the fringe field in the horizontal direction are

x=x0+g2ρcos2βI1\displaystyle x=x_{0}+\frac{g^{2}}{\rho\cos^{2}\beta}I_{1}
x=x0+x0ρtanβ.\displaystyle x^{\prime}=x_{0}^{\prime}+\frac{x_{0}}{\rho}\tan\beta. (30)

3.3 Vertical Effects

To adequately consider the vertical effects, we must consider the horizontal trajectory throughout the fringe field and how it affects the vertical motion. It is important to recognize that, due to the fringe field, not even the reference particle exits the magnet parallel to the ζ\zeta axis: because the fringe field is continuously decreasing to zero as opposed to a instantaneous change in the sharp cutoff case, both particles experience lesser horizontal bending effects but for longer periods of time. This phenomenon implies that particles are at an angle to the σ\sigma axis, called γ\gamma, which continues to change until the particles are a significant distance from the pole face, at which point γ(σ2)=β\gamma(\sigma_{2})=\beta. See Fig. 12.

Refer to caption
Figure 12: A graphical description of the coordinate systems used in this section, with the yy axis pointing out of the page. Note that the TT and PP axes follow the trajectory of each particle (in this case, the particle’s trajectory in the plane is parallel to the reference trajectory). The angle γ\gamma lies between the σ\sigma axis and a line tangent to the trajectory.

Suppose a particle displaced in the yy direction. Because of the particle’s position along the yy axis, it will experience a field pointing in the σ\sigma direction as well as the typical field in the yy direction while within the fringe field (see Fig. 10). The field component in the direction perpendicular to the trajectory within the bend plane is the direct cause of the vertical focusing/defocusing effects on the displaced particle. Thus, the vertical effects depend on the said field component and the speed of the particle projected into the bend plane, vTv_{T}. Let (P,y,T)(P,y,T) be a curvilinear coordinate system where the PP axis is always perpendicular to the particle’s trajectory TT in the bend plane.

3.3.1 Equation of Motion

By using the same technique that we used to find the field components in Eq. (26), we can find BPB_{P} and BTB_{T}:

BT=ycosγgdBydσ\displaystyle B_{T}=y\frac{\cos\gamma}{g}\frac{dB_{y}}{d\sigma}
BP=ysinγgdBydσ.\displaystyle B_{P}=y\frac{\sin\gamma}{g}\frac{dB_{y}}{d\sigma}. (31)

We then consider the equation of motion in the vertical direction,

(d2ydT2vT+dydTdvTdT)vT=vT2d2ydT2=qm(vTBPvPBT).\left(\frac{d^{2}y}{dT^{2}}v_{T}+\frac{dy}{dT}\frac{dv_{T}}{dT}\right)v_{T}=v_{T}^{2}\frac{d^{2}y}{dT^{2}}=\frac{q}{m}(v_{T}B_{P}-v_{P}B_{T}).

Because of the definition of the coordinate system, the only velocity in the bend plane is tangential to the trajectory, i.e. vP=0v_{P}=0. Further, applying Approximation 2 in the (P,y,T)(P,y,T) coordinate system, vT=v0v_{T}=v_{0}. Simplifying,

d2ydT2=1ByρBP\frac{d^{2}y}{dT^{2}}=\frac{1}{B_{y}\rho}B_{P}

Then, from Eq. (3.3.1),

y′′=1B0ρysinγgdBydσ,y^{\prime\prime}=\frac{1}{B_{0}\rho}y\frac{\sin\gamma}{g}\frac{dB_{y}}{d\sigma}, (32)

where prime indicates differentiation with respect to TT (again the longitudinal direction in this coordinate system).

Consider the differential right triangle in Fig. 12 (we include gg because the distance along the σ\sigma axis must be scaled to the distance along the TT axis). Trigonometric relationships yield

dTdσ=gcosγ.\frac{dT}{d\sigma}=\frac{g}{\cos\gamma}. (33)

We multiply the left side of Eq. (32) by dTdT and the right side by gcosγdσ\frac{g}{\cos\gamma}\,d\sigma. Then, we integrate from σ=σ\sigma=\sigma^{*} to σ2\sigma_{2}, where σ\sigma^{*} is a floating variable.

T(σ)T(σ2)d2ydT2𝑑T\displaystyle\int_{T(\sigma^{*})}^{T(\sigma_{2})}\frac{d^{2}y}{dT^{2}}\,dT =1B0ρσσ2ytanγdBydσdσ\displaystyle=\frac{1}{B_{0}\rho}\int_{\sigma^{*}}^{\sigma_{2}}y\tan\gamma\frac{dB_{y}}{d\sigma}\,d\sigma
dydT|σ2dydT|σ\displaystyle\frac{dy}{dT}\bigg{|}_{\sigma_{2}}-\frac{dy}{dT}\bigg{|}_{\sigma^{*}} =1B0ρσσ2ytanγdBydσdσ\displaystyle=\frac{1}{B_{0}\rho}\int_{\sigma^{*}}^{\sigma_{2}}y\tan\gamma\frac{dB_{y}}{d\sigma}\,d\sigma (34)
ΔdydT\displaystyle\Delta\frac{dy}{dT} =1B0ρσσ2ytanγdBydσdσ\displaystyle=\frac{1}{B_{0}\rho}\int_{\sigma^{*}}^{\sigma_{2}}y\tan\gamma\frac{dB_{y}}{d\sigma}\,d\sigma

Now, we must find approximations for yy and tanγ\tan\gamma. In the end, we will substitute these back into the previous expression, yielding the total change in yy^{\prime}.

3.3.2 Expression for γ\gamma

We now attempt to find an expression containing γ\gamma from a differential equation of motion in the perpendicular direction from dγ/dTd\gamma/dT.

We begin expressing the Lorentz force in the perpendicular direction in terms of γ\gamma and TT. By linking TT and γ\gamma with the instantaneous radius of curvature RR(T)R\equiv R(T) of the path, we recognize that dT=RdγdT=R\,d\gamma. Utilizing RR in the equation for centripetal acceleration and equating it to the Lorentz force, we have

mvT21R=mvT2dγdT\displaystyle-mv_{T}^{2}\frac{1}{R}=-mv_{T}^{2}\frac{d\gamma}{dT} =q(vyBTvTBy)\displaystyle=q(v_{y}B_{T}-v_{T}B_{y})
=q(yvTycosγgdBydσvTBy).\displaystyle=q\left(y^{\prime}v_{T}y\frac{\cos\gamma}{g}\frac{dB_{y}}{d\sigma}-v_{T}B_{y}\right).

As used several times previously, we apply Approximation 1 and Approximation 2 but in the (P,y,T)(P,y,T) coordinate system. Hence, the equation of motion in the perpendicular direction is

dγdT=1B0ρBy.\frac{d\gamma}{dT}=\frac{1}{B_{0}\rho}B_{y}. (35)

Recall from Eq. (33) that dT=gcosγdσdT=\frac{g}{\cos\gamma}\,d\sigma. Applying this relation to Eq. (35), we have that

dγdσ=gByB0ρsecγ.\frac{d\gamma}{d\sigma}=\frac{gB_{y}}{B_{0}\rho}\sec\gamma. (36)

Next, suppose uu is the axis perpendicular to the σ\sigma axis (see [4]), scaled in gg (just as σ\sigma is). As before, we consider the differential right triangle in Fig. 12. We see

tanγ=dudσ.\tan\gamma=\frac{du}{d\sigma}.

Differentiating with respect to σ\sigma,

d2udσ2=dγdσsec2γ.\frac{d^{2}u}{d\sigma^{2}}=\frac{d\gamma}{d\sigma}\sec^{2}\gamma.

Substituting Eq. (36) into the previous equation, we have

d2udσ2=gByB0ρsec3γ.\frac{d^{2}u}{d\sigma^{2}}=\frac{gB_{y}}{B_{0}\rho}\sec^{3}\gamma. (37)

We integrate555Note that σ\sigma^{*} is simply a dummy variable used to clarify the discrepancy between the variable of integration and the bounds. both sides of Eq. (37) from σ\sigma to σ2\sigma_{2}, where σ\sigma is a floating variable,

dudσ|σ2dudσ|σ\displaystyle\frac{du}{d\sigma}\big{|}_{\sigma_{2}}-\frac{du}{d\sigma}\big{|}_{\sigma} =σσ2gByB0ρsec3γdσ\displaystyle=\int_{\sigma}^{\sigma_{2}}\frac{gB_{y}}{B_{0}\rho}\sec^{3}\gamma\,d\sigma^{*}
tan(γ(σ2))tan(γ(σ))\displaystyle\tan(\gamma(\sigma_{2}))-\tan(\gamma(\sigma)) =gB0ρσσ2Bysec3γdσ.\displaystyle=\frac{g}{B_{0}\rho}\int_{\sigma}^{\sigma_{2}}B_{y}\sec^{3}\gamma\,d\sigma^{*}.

Substituting in γ(σ2)=β\gamma(\sigma_{2})=\beta and that γ(σ)γ\gamma(\sigma)\equiv\gamma,

tanγ\displaystyle\tan\gamma =tanβgB0ρσσ2Bysec3γdσ\displaystyle=\tan\beta-\frac{g}{B_{0}\rho}\int_{\sigma}^{\sigma_{2}}B_{y}\sec^{3}\gamma\,d\sigma^{*} (38)

By using an iterative approximation666By iterative approximation, we mean a process of utilizing some given information and inputting it to one side of some implicit equation to approximate all other values described in said equation. In this case, we use fact that γ(σ2)=β\gamma(\sigma_{2})=\beta and substitute this value into the right-hand side of the equation., utilizing the given point of γ(σ2)=β\gamma(\sigma_{2})=\beta, we find that

tanγ=tanβgB0ρcos3βσσ2By𝑑σ.\tan\gamma=\tan\beta-\frac{g}{B_{0}\rho\cos^{3}\beta}\int_{\sigma}^{\sigma_{2}}B_{y}\,d\sigma^{*}. (39)

3.3.3 Expression for yy

We look to use a similar iterative approximation to find an equation for y(σ)y(\sigma) in terms of some fixed point y2y_{2} by using Eq. (3.3.1).

Rewriting Eq. (3.3.1), we have

dydT=y21B0ρσσ2ytanγdBydσdσ,\frac{dy}{dT}=y_{2}^{\prime}-\frac{1}{B_{0}\rho}\int_{\sigma^{*}}^{\sigma_{2}}y\tan\gamma\frac{dB_{y}}{d\sigma}\,d\sigma,

where y2=dydT|σ2y_{2}^{\prime}=\frac{dy}{dT}\big{|}_{\sigma_{2}}. The next step is to make the iterative approximation. We choose the fixed point as γ(σ2)=β\gamma(\sigma_{2})=\beta and y(σ2)=y2y(\sigma_{2})=y_{2}. Simplifying,

dydT\displaystyle\frac{dy}{dT} =y2y2tanβB0ρσσ2dBydσ𝑑σ\displaystyle=y_{2}^{\prime}-\frac{y_{2}\tan\beta}{B_{0}\rho}\int_{\sigma^{*}}^{\sigma_{2}}\frac{dB_{y}}{d\sigma}\,d\sigma
=y2+y2tanβB0ρBy(σ).\displaystyle=y_{2}^{\prime}+\frac{y_{2}\tan\beta}{B_{0}\rho}B_{y}(\sigma^{*}). (40)

Then, integrating from σ=σ\sigma^{*}=\sigma to σ2\sigma_{2} and solving for yy, we have

y2y(σ)\displaystyle y_{2}-y(\sigma) =y2g(σ2σ)cosβ+y2gtanβB0ρcosβσσ2By𝑑σ.\displaystyle=\frac{y_{2}^{\prime}g(\sigma_{2}-\sigma)}{\cos\beta}+\frac{y_{2}g\tan\beta}{B_{0}\rho\cos\beta}\int_{\sigma}^{\sigma_{2}}B_{y}\,d\sigma^{*}.

where the g/cosβ\nicefrac{{g}}{{\cos\beta}} factor above arises from applying the chain rule to convert from dTdT to dσd\sigma^{*}.

Approximation 3.

Physically, we know that the extent of the fringe field, g(σ2+σ1)g(\sigma_{2}+\sigma_{1}), is of the same order as the vertical gap gg. Because g/L1g/L\ll 1 where LL is the length of the magnet, we conclude that

g(σ2+σ1)L1.\frac{g(\sigma_{2}+\sigma_{1})}{L}\ll 1.

We can see from division by LL that the term containing y2g(σ2σ)y_{2}^{\prime}g(\sigma_{2}-\sigma) contains the product of two small values (assuming σ1σσ2-\sigma_{1}\leq\sigma\leq\sigma_{2}) and can be neglected, following Approximation 3. Then simplifying,

y(σ)\displaystyle y(\sigma) =y2(1gtanβB0ρcosβσσ2By𝑑σ).\displaystyle=y_{2}\left(1-\frac{g\tan\beta}{B_{0}\rho\cos\beta}\int_{\sigma}^{\sigma_{2}}B_{y}\,d\sigma^{*}\right). (41)

3.3.4 Change in yy^{\prime}

Utilizing the previous three subsections, we derive an approximation for the change in yy^{\prime}, the vertical slope, as a function of the vertical displacement, y2y_{2}. Substituting in Eq. (39) and Eq. (41) into Eq. (3.3.1), we have

ΔdydT=1B0ρσσ2ytanγdBydσdσ=1B0ρσσ2y2(1gtanβB0ρcosβσσ2By𝑑σ)(tanβgB0ρcos3βσσ2By𝑑σ)dBydσ𝑑σ=y2B0ρσσ2(tanβ[gB0ρcos3βσσ2Bydσ][gsin2βB0ρcos3βσσ2Bydσ]+g2tanβB02ρ2cos4β(σσ2Bydσ)2)dBydσdσ.\displaystyle\begin{split}&\Delta\frac{dy}{dT}=\frac{1}{B_{0}\rho}\int_{\sigma^{*}}^{\sigma_{2}}y\tan\gamma\frac{dB_{y}}{d\sigma}\,d\sigma\\ &=\frac{1}{B_{0}\rho}\int_{\sigma^{*}}^{\sigma_{2}}y_{2}\left(1-\frac{g\tan\beta}{B_{0}\rho\cos\beta}\int_{\sigma}^{\sigma_{2}}B_{y}\,d\sigma^{*}\right)\left(\tan\beta-\frac{g}{B_{0}\rho\cos^{3}\beta}\int_{\sigma}^{\sigma_{2}}B_{y}\,d\sigma^{*}\right)\frac{dB_{y}}{d\sigma}\,d\sigma\\ &=-\frac{y_{2}}{B_{0}\rho}\int_{-\sigma_{*}}^{\sigma_{2}}\bigg{(}\tan\beta-\bigg{[}\frac{g}{B_{0}\rho\cos^{3}\beta}\int_{\sigma}^{\sigma_{2}}B_{y}d\sigma^{*}\bigg{]}-\bigg{[}\frac{g\sin^{2}\beta}{B_{0}\rho\cos^{3}\beta}\int_{\sigma}^{\sigma_{2}}B_{y}d\sigma^{*}\bigg{]}\\ &\,\;\;\,\;+\frac{g^{2}\tan\beta}{B_{0}^{2}\rho^{2}\cos^{4}\beta}\bigg{(}\int_{\sigma}^{\sigma_{2}}B_{y}d\sigma^{*}\bigg{)}^{2}\bigg{)}\frac{dB_{y}}{d\sigma}d\sigma.\end{split}

The lower bound of the outer integral σ\sigma^{*} is set to σ1-\sigma_{1} to account for the effects of the entire fringe field.

Approximation 4.

For a length of a magnet LL on the order of or smaller than the radius of curvature ρ\rho and assuming g/L1g/L\ll 1 as in Approximation 3, it follows that

gρ1.\frac{g}{\rho}\ll 1.

Eliminating all but first order terms in g/ρg/\rho from Approximation 4 and simplifying,

ΔdydT=y2ρ(tanβ+g(1+sin2βB02ρcos3β)σ1σ2[dBydσσσ2By𝑑σ]𝑑σ).\Delta\frac{dy}{dT}=-\frac{y_{2}}{\rho}\left(\tan\beta+g\left(\frac{1+\sin^{2}\beta}{B_{0}^{2}\rho\cos^{3}\beta}\right)\int_{-\sigma_{1}}^{\sigma_{2}}\left[\frac{dB_{y}}{d\sigma}\int_{\sigma}^{\sigma_{2}}B_{y}d\sigma^{*}\right]d\sigma\right). (42)

We can further simplify Eq. (42) with integration by parts to see that

σ1σ2[dBydσσσ2By𝑑σ]𝑑σ=σ1σ2By(B0By)𝑑σ\int_{-\sigma_{1}}^{\sigma_{2}}\left[\frac{dB_{y}}{d\sigma}\int_{\sigma}^{\sigma_{2}}B_{y}d\sigma^{*}\right]d\sigma=-\int_{-\sigma_{1}}^{\sigma_{2}}B_{y}(B_{0}-B_{y})d\sigma (43)

To compare this result with the sharp cutoff case, suppose an “effective exit angle” βv\beta_{v} such that

tanβv=tanβgρ1+sin2βcos3βI2,\tan\beta_{v}=\tan\beta-\frac{g}{\rho}\frac{1+\sin^{2}\beta}{\cos^{3}\beta}I_{2}, (44)

where I2I_{2} is a dimensionless, measurable integral777Note that within texts like The Optics of Charged Particle Beams, this integral contains gg in the denominator; however, a different definition of σ\sigma lacking gg is used. The definition Eq. (24) was chosen to clarify the mathematics, as seen in Enge’s “Deflecting Magnets.” Hence, the integrals are equivalent., defined as

I2=σ1σ2By(B0By)B02𝑑σ.I_{2}=\int_{-\sigma_{1}}^{\sigma_{2}}\frac{B_{y}(B_{0}-B_{y})}{B_{0}^{2}}d\sigma. (45)

This angle βv\beta_{v} is the angle through which the pole face in the sharp cutoff case must be rotated to achieve the same vertical effect. Although many texts include further approximations to solve for βv\beta_{v},888These texts include but are not limited to SLAC-75, The Optics of Charged Particle Beams, and both the TRANSPORT/TURTLE manuals. no further approximations are necessary.

Note that Eq. (42) is constant in σ\sigma. Therefore, integrating it to find the change in yy would only yield second order, trivial terms (from Approximation 1 and Approximation 3). Therefore, to first order, y=y2=y0y=y_{2}=y_{0}. The final effect in the yy direction is then

y\displaystyle y =y0\displaystyle=y_{0}
y\displaystyle y^{\prime} =y0y0ρ(tanβgρ1+sin2βcos3βI2).\displaystyle=y^{\prime}_{0}-\frac{y_{0}}{\rho}\left(\tan\beta-\frac{g}{\rho}\frac{1+\sin^{2}\beta}{\cos^{3}\beta}I_{2}\right). (46)

Within the TRANSPORT code, R43R_{43} reads

R43=1ρtanβv.R_{43}=-\frac{1}{\rho}\tan\beta_{v}. (47)

3.4 Total Transformation

Here we compile all effects of the extended fringe field, represented mathematically through matrix-vector algebra. The input vector is equivalent to the output vector from the bending magnet transformation preceding the exit face fringing field.

(xxyy)=(10001ρtanβ1000010001ρtanβv1)(x0x0y0y0)+(g2ρcos2βI1000)\left(\begin{array}[]{c}x\\ x^{\prime}\\ y\\ y^{\prime}\end{array}\right)=\left(\begin{array}[]{cccc}1&0&0&0\\ \frac{1}{\rho}\tan\beta&1&0&0\\ 0&0&1&0\\ 0&0&-\frac{1}{\rho}\tan\beta_{v}&1\\ \end{array}\right)\left(\begin{array}[]{c}x_{0}\\ x^{\prime}_{0}\\ y_{0}\\ y^{\prime}_{0}\end{array}\right)+\left(\begin{array}[]{c}\frac{g^{2}}{\rho\cos^{2}\beta}I_{1}\\ 0\\ 0\\ 0\end{array}\right) (48)

4 Evaluation of Approximation Accuracy

We now consider some real-world magnets and the level of accuracy that the approximations used throughout this document would provide. Two distinct cases are examined: Fermilab’s Test Beam dipole magnet and ORKA’s first bending magnet (proposed).

Value Test Beam ORKA Beam Notes
LL 3.0 m .80 m Magnet longitudinal length.
gg 3.8 cm 8.9 cm Vertical pole gap - represents twice the maximum vertical displacement.
ww 13 cm 30 cm Magnet width - represents twice the maximum horizontal displacement.
pp 120 GeV/cc .60 GeV/cc Design momentum of the magnet.
B0B_{0} 15 kG 15 kG Magnitude of the magnetic field deep within the magnet.
w/ρw/\rho 4.8×1044.8\times 10^{-4} .22 Used in Approximation 1.
g/ρg/\rho 1.4×1041.4\times 10^{-4} .067 Used in both Approximation 1 for twice the maximum vertical displacement and in Approximation 4.
g/Lg/L .013 .11 This ratio relates the fringe field length (on the order of gg) and the total magnet length, used in Approximation 3.
L/ρL/\rho .011 .60 Used in Approximation 4. A smaller value yields a more accurate approximation.

The ratios calculated in the final four rows of the above table are all used in important approximations within this document. If these values are too large (i.e. on the order of 10110^{-1} or larger), the approximations lose validity because the squares and higher powers of these ratios must be essentially zero. One would note that, upon squaring each of these ratios, the errors from these approximations would be insignificant for a magnet like those in the Test Beam. However, the values yielded by ORKA’s dipole are far too large; the squares of these values are still significant.

5 Conclusion

The Total Transformation section gives a complete matrix description of a particle’s trajectory while passing through the exit fringe field of a dipole magnet. The transfer operations applied here are precisely the same as those found in TURTLE and TRANSPORT. Several other texts including the TRANSPORT manual state a result differing from the result given above (specifically, the R43R_{43} component). However, the discrepancy lies in the use of an unnecessary approximation to yield a more aesthetically pleasing matrix element.

In conclusion, the first order approximations of the fringe fields in a magnetic dipole are sufficient for high-momentum, large-ring dipoles. Further consideration regarding higher-order effects is necessary when dealing with certain magnets.

Acknowledgements

We would like to thank Tom Kobilarcik and Douglas Jensen for their help and advisory throughout the creation of this document. Further, we would not be in any position to write this document without the assistance and encouragement of our advisor Joseph Comfort. Without their aid in revision and experience in the field, this document would not exist.

References

  • [1] Carey, David C. The Optics of Charged Particle Beams. Harwood Academic Publishers, 1992.
  • [2] Fermilab Proposal P1021. ORKA: Measurement of the K+π+νν¯K^{+}\rightarrow\pi^{+}\nu\overline{\nu} Decay at Fermilab. Fermilab, November 28, 2011.
  • [3] Enge, Harald. Focusing of Charged Particles, Vol. 2. “Deflecting Magnets.”
  • [4] Sagalovsk, Leonid. “Third-Order Charged Particle Beam Optics.” University of Illinois, 1989.