0903.0620
0903.0620
A FAST NEW PUBLIC CODE FOR COMPUTING PHOTON ORBITS IN A KERR SPACETIME
Jason Dexter
Department of Physics, University of Washington, Seattle, WA 98195-1560, USA
Eric Agol
Department of Astronomy, University of Washington, Box 351580, Seattle, WA 98195, USA
ApJ, accepted
arXiv:0903.0620v1 [astro-ph.HE] 3 Mar 2009
ABSTRACT
Relativistic radiative transfer problems require the calculation of photon trajectories in curved
spacetime. We present a novel technique for rapid and accurate calculation of null geodesics in the
Kerr metric. The equations of motion from the Hamilton-Jacobi equation are reduced directly to
Carlson’s elliptic integrals, simplifying algebraic manipulations and allowing all coordinates to be
computed semi-analytically for the first time. We discuss the method, its implementation in a freely
available FORTRAN code, and its application to toy problems from the literature.
Subject headings: accretion — black hole physics — radiative transfer — relativity
ment that should be expected from using an analytic The signs of the integrals in r and θ are independent
code. Section 6 provides an overview of our code for and arbitrary, but are fixed for a given geodesic. It may
readers who are not interested in all of its detail, and the seem odd that these equations lend themselves to the
code is applied to toy problems and test cases in Sec- choice of r or θ as independent variable to determine the
tion 7. Finally, Section 8 discusses future work both in cyclic coordinates t and φ. However, this is the natural
extending the code and in applying it to more realistic outcome of the separation of the Hamilton-Jacobi equa-
astrophysical situations. tion.
TABLE 1
Reduction of Iu
ah is found from solving Eq. (21) and selecting one of the two real roots. d, e are defined in Eq. (22).
1
b When u = u , the domain of u is [0, u ).
2 3 2
c When u = u , the domain of u is (u , u ).
2 3 3 +
d q = sign(q 2 ).
s
3.1. Reduction of Iu
Z x
Call the left-hand side (LHS) and right-hand side [p] = (f + gt + ht2 )p2 /2
Y
(ai + bi t)pi /2 dt (18)
(RHS) of (11) Iµ and Iu respectively, and start with the y i=1,4,5
reduction of Iu :
for one pair of complex roots or
du
Z
Iu = su p . (16) Z 2
xY
U (u)
[p] = (fi + gi t + hi t2 )pi /2 (a5 + b5 t)p5 /2 dt (19)
y i=1
2
Except in the special case with a = l, q = 0, U (u) is
either a quartic or cubic and its roots are denoted ui with for two. In using this form, it is assumed that each power
i = 1 − 3, 4, and ordered increasingly. If real, u1 < 0 and pi of an irreducible quadratic is written twice in the vec-
in the quartic case, u4 > 1 or u4 < 0. They are of no tor [p]. In other words, when one pair of roots is com-
physical significance. When all roots are real, the allowed plex, p2 = p3 . When all roots are complex, p2 = p3 and
regions for the integrand are u > u3 and u < u2 so that U p1 = p4 .
is positive. Thus the roots are the turning points for null To ensure that x > y in cases where a turning point
geodesics starting outside u2 and inside u3 respectively may be present, integrals are written in pieces involving
in both the cubic and quartic cases. There can be no the relevant turning point, u∗ , and the number of turning
more than one turning point, since the allowed region points along the portion of the geodesic being followed,
is bounded on one side either by infinity or the event Nu (either 0 or 1):
horizon. When one or both pairs of roots are complex, !
there is no turning point in u. u∗ u∗
du du
Z Z
Upon encountering a turning point, the sign of u is Iu = su √ − (−1)Nu √ . (20)
reversed, so that the total integral is the sum of the inte- u0 U uf U
gral from u0 to the turning point and that from uf to the The Carlson papers reduce all elliptic forms to a set
turning point. The idea is to ensure that the integrals of four fundamental integrals, known as the R-functions
in u and µ monotonically increase along a geodesic. In (Press et al. 1992), which replace Legendre’s integrals of
a sense this allows the independent variable to take the the first, second and third kind. They are all integrals
place of the affine parameter, which cannot be used since from 0 to ∞ and hence don’t require a limit of integration
it is a function of u and µ. to be a turning point, greatly simplifying complex root
Carlson (1988, 1989) contain formulas for evaluation cases where no physical turning point is present. This is
of integrals of the form one of many advantages of Carlson’s approach. As is the
case for Legendre’s formulation, any elliptic integral can
Z 5
xY be reduced to a sum of Carlson’s R-functions. Where
[p] = (ai + bi t)pi /2 dt; (17) Legendre integrals are used in this paper, they are cal-
y i=1 culated in terms of the R-functions using the formulas
in Press et al. (1992). The integrals encountered in this
with all quantities real, x > y, and ai + bi t > 0 for paper are always of the form p = [−1, −1, −1, −1, p5] for
y < t < x. The form of a given integral is described quartic cases and p = [−1, −1, −1, p5] for cubic cases.
by the vector [p], which contains the powers, pi , of the Thus the form of coordinate integrals in the following
factored roots. Cases with one or two pairs of complex will be specified by p5 alone.
roots are handled in Carlson (1991, 1992), where they To maintain as much generality as possible, all inte-
are written in terms of real quantities as grals are written as above in terms of their roots. In cubic
4 Dexter and Agol
p p
cases the roots are found from solving the cubic equation, ξ= f + gx + hx2 , η = f + gy + hy 2 , (24)
while for quartic cases they are found numerically using q
the routine zroots.f from Press et al. (1992). Finally, cij = 2f bi bj − g(ai bj + aj bi ) + 2hai aj , (25)
instead of writing out the explicit formulas from Carl- (X1 Y4 + Y1 X4 ) p
son’s papers and going through the algebra separately in M= (ξ + η)2 − h(x − y)2 , (26)
each case, we have written routines for each case. This is x−y
much simpler and of more general utility, since numerous L2± = M 2 + c214 ± c11 c44 . (27)
integrals must be done to calculate the coordinates of a
Then,
point along a geodesic.
The integral Iu has p5 = 0 and is given by Carlson 4
(1989) Eq. (2.12) for real roots for cubic cases. Quar- Iu = p RF (M 2 , L2− , L2+ ). (28)
tic cases are found in Carlson (1988) Eq. (2.13) for real |e|
roots and Carlson (1992) Eq. (2.36) for all complex roots. RF is computed using the routine from Press et al.
The quartic and cubic cases with a single pair of complex (1992). Equations for Carlson elliptic integrals with
roots are given by Carlson (1989) Eq. (3.8). The nec- p5 6= 0 can similarly be found in the Carlson papers
essary arguments to the Carlson routines are listed by listed above.
case in Table 1, along with case definitions, appropriate
domains of u, and the corresponding cases in Appendix 3.2. Inversion of Iµ
A of RB94. Next, the Iµ integral needs to be inverted to solve for
As can be seen from Table 1, writing formulas in terms µf . As with U (u), the roots of the biquadratic M (µ),
of the roots of U has the advantage of unifying many M± , determine the physical turning points in µ. When
disparate cases from previous work. Equal roots cases, M− > 0, there are four real roots and the orbit cannot
which describe orbits approaching the unstable circular cross the equatorial plane. The physical turning points
photon orbits, cannot strictly speaking be treated iden- correspond to the two roots with
tically to other real roots cases as shown in the table. p the same sign as µ0
and are denoted µ± = sign(µ0 ) M± . When M− < 0,
Here, integration to the turning point diverges. The code p
flags for these cases and integrates them directly from the physical turning points are µ± = ± M+ and are
u0 to uf , and the arguments listed in the table are still symmetric about the equatorial plane. We can calculate
valid. In practice, however, except for the well known the number of times the geodesic has crossed a µ turning
Schwarzschild unstable circular orbits with q 2 + l2 = 27, point from the magnitude of the Iu integral.
Rµ This
R µ is done
equal roots cases are almost impossible to trigger. This by noting that the maximum value of µf+ is µ−+ and its
is because the Carlson routines as written maintain ac- minimum
√ value is zero. In this derivation the integrand
curacy until |u2 − u3 | . 10−12 , which is usually more dµ/ M , common to all integrals, is omitted. Then, for
precise than the determination of the imaginary parts of sµ = 1,
the roots.
For one pair of complex roots, the arguments f , g Z µ+ Z µ+ Z µ+ Z µ+
and h are found by setting U (u) = qs (u4 − u)(u − +(N − 1) ≤ Iu ≤ +N , (29)
u1 )(f + gu + hu2 ), where qs = sign(q 2 ), and match- µ0 µ− µ0 µ−
ing powers of u. When all roots are complex, setting where N is the number of turning points reached in µ,
U (u) = (f1 +g1 u+h1 u2 )(f2 +g2 u+h2 u2 ) yields five non- and µ± are the upper and lower turning points in µ.
linear equations for our six unknown coefficients. The The integrals are written in these pieces so that they
degree of freedom is used to simplify the equations, and are always positive, as required for use with Carlson’s
a sixth degree polynomial is solved numerically for h1 : integrals. This condition can be written more concisely
" as
2 #
c √ c d c Rµ '
h61 − √ h51 −h41 + h31 −h21 − √ h1 +1 = 0,
&
e 2 − Iu − µ0+
e e e e N= R µ+ , (30)
(21) µ−
where where ⌈ ⌉ is the ceiling function. If sµ = −1, then the
first turning point reached is µ− . The condition can then
c = a2 − l2 − q 2 , d = 2[(a − l)2 + q 2 ], e = −a2 q 2 . (22) be written
The only pair of real solutions to this equation corre- "Z # "Z #
spond to the values of h1 , h2 . µ− Z µ− µ− Z µ−
As a full example of one of these reductions, consider − +(N − 1) ≤ Iu ≤ − +N .
case 5 from Table 1 with u0 < uf (su = 1). This is µ0 µ+ µ0 µ+
the Kerr case with no physical turning points. From 18, Rµ Rµ Rµ (31)
we see that b1 = 1, b4 = −qs , a1 = −u1 , a4 = qs u4 , Using µ0− = µ0+ − µ−+ , we can rewrite this in terms of
x = uf , y = u0 . The sign qs is used to keep each factor the same integrals used above:
positive. Matching the powers of U (u) as described above
gives f = −qs /(u1 u4 e), g = (u4 + u1 )/(u1 u4 )f , h = 1. Z µ+ Z µ+ Z µ+ Z µ−
Following Carlson (1991), we define − +N ≤ Iu ≤ − +(N + 1) . (32)
µ0 µ− µ0 µ+
p p
Xi = ai + bi x, Yi = ai + bi y, (23) Finally,
Analytic Kerr Photon Orbits 5
$ Rµ % 3.2.2. M− < 0
Iu + µ0+
N= R µ+ , (33) When M− < 0, y < 0 in (38) so that (39) is no longer
µ−
valid. Since the integrand is an even function of µ, we
can write
and ⌊ ⌋ is the floor function. To write out the general so- Z µ+
lution for Iu = Iµ for arbitrary number of turning points 1 dµ
and sµ , we include coefficients for the various pieces of I= q , (41)
|a| −µf (µ2 − µ2 )(µ2 − M )
the Iµ integral: + −
1
Z µf
dµ 3.2.4. a = 0
I= . (37) Finally, when a = 0 (the Schwarzschild case) the µf
|a| µ−
p
(M+ − µ2 )(µ2 − M− )
integral is again elementary. The solution for µf is then,
Carlson (2005) contains a table for inverting integrals
of the form
" r !#
1 d −1 µ0
Z x µf = µ− cos Iu − α1 cos − α3 π .
dt α2 2 µ+
I= , (38)
(44)
p
y (a1 + b1 t2 )(a2 + b2 t2 )
where all quantities are real, x > y, 0 ≤ y < x and either 3.3. t and φ coordinate integrals
y = 0, x = ∞ or one limit is a root of the integrand. The Given the solution for µf , equations for the coordinates
latter case applies here. t and φ can be reduced to elliptic integrals as well. Each
coordinate is expressed as a sum of integrals over u and
3.2.1. M− > 0 µ. As is done above, the u terms are reduced to Carlson’s
When M− > 0, all requirements are met as written, formulation, and the µ terms to Legendre’s.
and The µ integral term in (14), which we’ll denote Tµ , can
be written as a single Legendre integral of the 2nd kind.
µ2− For example, the µ0 term in the M− < 0 case is reduced
µf = µ− nd (J, k), J = µ+ |a|I, k 2 = 1 − , (39) as follows: Z
µ2+ µ+
µ2 dµ
Tµ = |a|
where nd (J, k) = 1/dn(J, k) and dn is a Jacobi-Elliptic
q
µ0 (µ2+ − µ2 )(µ2 − M− )
function. The µ integral terms in I are calculated as
Z x
Z µf 1 − t2
dµ 1 = |a|µ+ dt q
p = F (x, k) (40) 0 (1 − t2 )(1 − t2 − M−
)
µ0 M (µ) A µ2 +
2 M−
where F (x, k) is Legendre’s integral
q of the first kind Z x 1−t − µ2+
M+ −µ20 =A dt q + a2 M− Iu
(Abramowitz & Stegun 1965), x = M+ −M− , A = |a|µ+ 0 (1 − t2 )(1 − t2 − M−
)
µ2+
and k is the same as above. The integral between turning
points is the complete elliptic integral K(k). = AE(x, k) + a2 M− Iu , (45)
6 Dexter and Agol
where E(x, k) is the Legendre integral of the second kind The first term is from Tu and the second term is Tµ .
with arguments x andpk defined in the previous section. Component integrals are calculated the same way as
The substitution t = 1 − µ0 /µ+ is made between lines Iu or Iµ respectively. That is, µ component integrals are
one and two, and M− /µ2+ is added and subtracted from calculated in pieces using the appropriate coefficients as
the numerator between lines two and three. In the M− > described above while u component integrals are calcu-
0 case, Tµ is given by the first term of the above formula, lated with reference to the physical turning point, if one
with the arguments A, k, x for that case given with the exists. These are all the integrals required to compute
solution for µf in Subsection 3.2.1. null geodesics in Kerr spacetime. These equations for the
The µ term in the φ component formula (15) can be re- φ, t coordinates are written in Boyer-Lindquist coordi-
duced to a Legendre integral of the 3rd kind in analogous nates. For certain applications, Kerr-Schild coordinates
fashion. For the M− < 0 case we proceed as follows: are used instead. We note here for completeness the ana-
lytic transformations between our Boyer-Lindquist coor-
µ+ dinates and these Kerr-Schild coordinates (t̃,ũ,µ̃,φ̃) (Font
l 1 dµ
Z
Φµ = −lIu + et al. 1999),
2
p
|a| µ0 1−µ (µ+ − µ2 )(µ2 − M− )
2
= −lIu + √ !
Z x 1 − u[1 + 1 − a2 ]
l 1 dt t̃ = t + log ∆ − ur log √ , (50)
1 − u[1 − 1 − a2 ]
|a|µ+ 0 1 − µ2+ + µ+ 2 t2 (1 − t2 )((1 −
q
M−
µ2+
) − t2 ) √ !
1 − u[1 + 1 − a2 ]
l φ̃ = φ − a ur log √ , (51)
= −lIu + Π(n; x, k) (46) 1 − u[1 − 1 − a2 ]
A(1 − M+ )
ũ = u, (52)
where Π(n; x, k) is the Legendre integral of the 3rd kind µ̃ = µ. (53)
µ2+
and n = 1−µ2+
. The formula for the M− > 0 case is the
The transformations are valid outside the event horizon,
M+ −M−
same, with n = 1−M+ and the other arguments defined where ∆ and the numerator of the other log terms are
in Subsection 3.2.1 above. Note that we are using the positive.
sign convention for n from Press et al. (1992), which is
opposite that in Abramowitz & Stegun (1965). 4. SOLUTION FOR UF
Tu , the u integral term in (14), is expanded with partial For some applications, it is preferable to use µ as the
fractions, and after a little algebra is written independent variable and solve for uf given u0 . In par-
ticular, consider geodesics connecting an observer at in-
finity with a thin, equatorial accretion disk. The initial
a2
Z
1 1 du
Tu = su ur 2a(a − l) + + 3 √ polar angle is the inclination of the observer. The final
u+ u+ (u/u+ − 1) U polar angle is π/2 (µf = 0), and we solve for the ra-
2 dial coordinate where the ray intersects the disk. This
Z
a 1 1 du
− 2a(a − l) + + 3 √ method, however, is of less general utility than that de-
u− u− (u/u− − 1) U
Z scribed above. Even in simple geometries, the number
1 1 du 1 du
Z
√ √ of turning points in µ along a geodesic is not known in
+ − + , (47)
u2− u2+ u U ur u2 U advance as it must be to use µ as the independent vari-
√ able. One way around this is to calculate all geodesics
where ur ≡ uu++−uu−
−
= −(2 1 − a2 )−1 is negative. Three connecting the observer with the disk for a fixed num-
of the terms have p5 = −2 and one has p5 = −4. When ber of µ turning points (Cunningham & Bardeen 1973;
a limit of integration is at infinity (u = 0), this integral Viergutz 1993).
blows up, as it should. In practice, the code picks a non- The approach in solving for uf is the same as in solv-
infinite starting radius large enough that the geodesic ing for µf . The integral Iµ is computed as a Legendre
trajectories from infinity to the starting radius differ neg- integral of the first kind. Given the number of turning
ligibly from their flat space counterparts. points, Iµ is computed in pieces as shown above using
Then, the coefficients α1,2,3 .
After finding Iµ , we invert Iu . This inversion
Z ranges from relatively straightforward to algebraically
l 1 du formidable. As examples, we discuss cubic and quar-
Φu = su u r + 2(a − l) √ −
u+ (u/u+ − 1) U tic real roots cases in detail. Table 2 gives the solution
l
Z
1 du
for uf in all cases. This problem was first addressed by
+ 2(a − l) √ ,(48) Agol (1997) and the solutions here are from its Table 5.2
u− (u/u− − 1) U
with some modification.
where both integrals are already calculated as part of Tu . For our first example, consider the first two cases of
Finally, the dimensionless affine parameter can also be Table 1 where there are three real roots. The integral to
calculated along the path from (10) without any addi- invert is
tional integrals:
!
u+ u+
du du
Z 2 Z Z
du µ dµ
Z
λ′ = su √ + a2 sµ √ . (49) Iµ = su p ± p , (54)
u2 U M u0 U (u) uf U (u)
Analytic Kerr Photon Orbits 7
TABLE 2
Solution for uf
a c
uf J m1 c1 c2 c3
√
u32 u31 d
1 u1 + u21 cd2 J c1 [Iµ − Iu (u0 , u2 )] u31
... ...
√ 2
u32 u31 d
2 u1 + u31 dc2 J c1 [Iµ + Iu (u3 , u0 )] u31 2
... ...
c2 +u1 −(c2 −u1 )cnJ √
1
+ 6u8c
1 +c3 a+l
p
3 1+cnJ
c1 [Iµ + Iu (u1 , u0 )] 2
2dc2 u1 (3u1 + c3 ) a−l
2
4 ... ... ... ... ... ...
b
u4 c5 +qs u1 c4 −(qs u4 c5 −u1 c4 )cnJ )2 −(u4 −u1 )2 √
5 (c4 −qs c5 )cnJ +qs c4 +c5
c1 [Iµ + Iu (ub , u0 )] qs (c4 +qs c54c ec4 c5 ... ...
4 c5 r
”2 √
n(1+c2 4n2 −(c4 −c5 )2 d
“
2 )scJ c4 −c5 e
6 c3 + 1−c2 scJ
su c1 [Iµ + Iu (c3 , u0 )] c4 +c5 2
(c4 + c5 ) (c4 +c5)2 −4n2
m + c2 n
√
u2 −c2 u3 sn2 J u41 u32 ec3 u21
7 1−c2 sn2 J
c1 [Iµ − Iu (u0 , u2 )] u42 u31
u42 u31
√2 u31
u3 −c2 u2 sn2 J u41 u32 ec3 u43
8 1−c2 sn2 J
c1 [Iµ + Iu (u3 , u0 )] u42 u31 2 u42
u42 u31
a snJ = sn(J, m ), cnJ = cn(J, m ), scJ = sn(J, m )/cn(J, m ) and m = 1 − k2 is used instead of k. u
1 1 1 1 1 xy ≡ ux − uy .
b q = sign(q 2 ). If q = 1 then u = u , u = u . Otherwise, u = u , u = u .
s s a 4 b 1 a 1 b 4
c I (y, x) = s R x √du .
u u y
U (u)
d Complex roots are written as m ± in, p ± ir and are ordered so that m > p and n > 0.
TABLE 3
Auxillary Constants used in table 2
c4 c5
p p
5 2 2 2 2
p (m − u4 ) + n p (m − u1 ) + n
6 (m − p)2 + (n + r)2 (m − p)2 + (n − r)2
Fig. 8.— The spectrum of synchrotron radiation from optically Fig. 9.— Spectrum of synchrotron radiation from spherical accre-
thin spherical accretion onto a stellar mass black hole. The solid tion onto a stellar mass black hole. The solid line is the ray tracing
line is the ray tracing result, and the plotted points are the analytic result including absorption. The spectrum is heavily attenuated at
results. The two curves agree to within 5% at low frequencies, ν0 . 1011 Hz, and in this region follows the optically thick approx-
where the radiation originates at larger radii and the bending of imation of thermal emission from the τ = 1 surface. The spectrum
light should be unimportant. agrees well with the emission only model for ν0 & 1012 Hz
Z ν 3
0
Iν0 = dIν . (72)
ray ν
If absorption can be neglected, dIν = jν dl where
dl = −pα uα dλ is the proper length differential measured
along the ray, pα is the photon four-momentum, uα is the
four-velocity of the emitting particle and λ is an affine
parameter.
The observed intensity is then
Z λ
Iν0 = jν g 2 dλ (73)
λ0
ν0 ≃ 1010 Hz to ν0 ≃ 1012 , the innermost optically thin transfer parts are about equally expensive in creating
radius is changing, and the luminosity begins to turn Figs. 10 and geodesic speed is relatively unimportant in
over. Starting at ν0 ≃ 1012 Hz, the gas is optically thin to the calculations leading to Figs. 5-9. In the latter cases,
the synchrotron radiation, and the spectrum reduces to this is because the same geodesics can be re-used at many
that of emission only (labeled ‘Emission’ in Fig. 9). This time steps, frequencies or both.
result agrees reasonably well with the assertion made The trend from these toy problems is that the sim-
by Shapiro (1973b) that absorption is negligible when pler cases benefit most from rapid geodesic calculation.
ν & 1011 Hz. However, there is reason to expect that for more realistic
Also of interest is the black hole shadow produced calculations rapid geodesic construction will again be im-
by various accretion models (Falcke et al. 2000). Fig. portant. Most accretion flows transition from optically
10 shows the shadow of the spherically accreting thin to thick. To accurately compute radiative transfer
Schwarzschild black hole as a 2-d contour plot and a 1-d from such flows, it is often necessary to take small steps
profile. The shadow is produced at α2 + β 2 = 27, and in the vicinity where the optical depth is about unity.
is caused by the difference in proper length of geodesics This requires calculating extra geodesic trajectories in
which intersect the horizon and return to infinity, as well this region. Since the region where the optical depth
as the blueshift of radiation from infalling gas behind the changes rapidly depends on frequency, and for a time-
black hole relative to the red shift of that nearest the ob- dependent accretion model on time as well, new geodesics
server. The asymmetry in Fig. 2 is not seen here due to must be computed at each time step and frequency, and
the spherical symmetry of the Schwarzschild metric. hence they cannot be re-used as is the case for the time-
independent, optically thin models considered in almost
8. FUTURE WORK all our examples.
The code presented here is the first to calculate all co- The precision of our code is also extremely high over
ordinates of Kerr null geodesics semi-analytically. This a broad range of geodesic parameters. This is currently
work’s natural extension is to timelike geodesics, which less important in radiative transfer applications where
involves many more cases, but only straightforward gen- the dynamical models are uncertain, but it is important
eralizations of the formulas given here (RB94, Appendix in caustic calculations such as those in RB94 and Bozza
A). The main challenge is that for bound orbits it is dif- (2008). Finally, our code can compute arbitrary sections
ficult to specify the number of radial turning points in of geodesics in any direction. This flexibility allows extra
advance. Ideally the affine parameter could be used as points to be calculated in regions where the optical depth
an independent variable to indicate how far along the is changing rapidly or to check convergence on the fly. It
geodesic to trace. However, it is a function of u and µ may also be useful in a future method for computing
which cannot be inverted. Compton scattering, in which rays are traced outwards
from each point on the geodesic to calculate the scattered
8.1. Advantages of Analyticity intensity into that point.
Unlike previous analytic work, our code makes no as-
The main advantages of using a semi-analytic code sumption of time-independence or axisymmetry in the
such as that presented here for tracing geodesics are accretion flow and is therefore well suited to the geome-
speed, accuracy and flexibility. The speed increase from tries used in 3D GRMHD simulations. Computationally
our code depends greatly on the application considered. expensive observables such as polarization and variability
For ray tracing applications, a lower bound is a factor of will be much more tractable given the speed and flexibil-
5 in the case where all coordinates are being calculated, ity of this code.
and the entire ray is being traced. The maximum speed
increase is probably a factor between 100-500 in the case
where the code is solving for geodesic coordinates at a J.D. thanks Jeremy Schnittman for help with the
specific point. geodesic hot spot model, and the referee, Avery Brod-
The importance of speed in tracing geodesics depends erick, whose comments improved this paper and led
on the computational expense of their construction rela- to substantial rewriting of the code. This work was
tive to that of the rest of the desired calculation. For the partially supported by NASA grants 05-ATP05-96 and
simple radiative transfer applications considered here, NNX08AX59H, and a graduate fellowship from the Kavli
time spent computing geodesics dominates in creating Institute of Theoretical Physics at the University of Cal-
Figs. 2,3,4. The construction of geodesics and radiative ifornia, Santa Barbara under NSF grant PHY05-51164.
REFERENCES
Abramowitz, M., & Stegun, I. A. 1965, Handbook of mathematical Bromley, B. C., Melia, F., & Liu, S. 2001, ApJ, 555, L83
functions with formulas, graphs, and mathematical tables (Dover Byrd, P. F., & Friedman, M. D. 1971, Handbook of elliptic integrals
Books on Advanced Mathematics, New York: Dover) for engineers and scientists (Second edition, Springer, New York)
Agol, E. 1997, PhD thesis, University of California, Santa Barbara Cadez, A., Fanton, C., & Calvani, M. 1998, New Astronomy, 3, 647
Bardeen, J. M. 1973, in Black holes (Les astres occlus), 215–239 Carlson, B. C. 1988, Mathematics of Computation, 51, 267
Beckwith, K., & Done, C. 2005, MNRAS, 359, 1217 —. 1989, Math. Comp., 53, 327
Beloborodov, A. M. 2002, ApJ, 566, L85 —. 1991, Math. Comp., 56, 267
Bozza, V. 2002, Phys. Rev. D, 66, 103001 —. 1992, Mathematics of Computation, 59, 165
—. 2008, ArXiv e-prints, astro-ph/0806.4102 —. 2005, J. Comput. Appl. Math., 174, 355
Braje, T. M., Romani, R. W., & Rauch, K. P. 2000, ApJ, 531, 447 Carter, B. 1968, Physical Review, 174, 1559
Broderick, A., & Blandford, R. 2003, MNRAS, 342, 1280 Chandrasekhar, S. 1983, The mathematical theory of black holes
—. 2004, MNRAS, 349, 994 (Oxford/New York, Clarendon Press/Oxford University Press)
Broderick, A. E. 2006, MNRAS, 366, L10 Cunningham, C. T. 1975, ApJ, 202, 788
Broderick, A. E., & Loeb, A. 2006, ApJ, 636, L109 Cunningham, J. M., & Bardeen, C. T. 1973, ApJ, 183, 237
Bromley, B. C., Chen, K., & Miller, W. A. 1997, ApJ, 475, 57
Analytic Kerr Photon Orbits 15
Erdélyi, A., Magnus, W., Oberhettinger, F., & Tricomi, F., eds. Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery,
1981, Higher Transcendental Functions, Vol. II (Malabar, U.S.A.: B. P. 1992, Numerical recipes in FORTRAN. The art of scientific
Robert E. Krieger Publishing Company) computing (Cambridge: University Press, —c1992, 2nd ed.)
Falcke, H., Melia, F., & Agol, E. 2000, ApJ, 528, L13 Rauch, K. P., & Blandford, R. D. 1994, ApJ, 421, 46
Fanton, C., Calvani, M., de Felice, F., & Cadez, A. 1997, PASJ, Reid, M. J., Broderick, A. E., Loeb, A., Honma, M., & Brunthaler,
49, 159 A. 2008, ArXiv e-prints, astro-ph/0801.4505
Font, J. A., Ibáñez, J. M., & Papadopoulos, P. 1999, MNRAS, 305, Schnittman, J. D. 2006, ArXiv Astrophysics e-prints, astro-
920 ph/0601406
Fuerst, S. V., & Wu, K. 2004, A&A, 424, 733 Schnittman, J. D., & Bertschinger, E. 2004a, ApJ, 606, 1098
Hartle, J. B. 2003, Gravity : an introduction to Einstein’s general —. 2004b, ApJ, 606, 1098
relativity (San Francisco, CA, USA: Addison Wesley) Schnittman, J. D., Krolik, J. H., & Hawley, J. F. 2006, ApJ, 651,
Jaroszynski, M., & Kurpiewski, A. 1997, A&A, 326, 419 1031
Krolik, J. H. 1998, Active Galactic Nuclei: From the Central Shakura, N. I., & Sunyaev, R. A. 1973, in IAU Symposium, Vol. 55,
Black Hole to the Galactic Environment (Princeton: Princeton X- and Gamma-Ray Astronomy, ed. H. Bradt & R. Giacconi,
University Press) 155–+
Li, L.-X., Zimmerman, E. R., Narayan, R., & McClintock, J. E. Shapiro, S. L. 1973a, ApJ, 180, 531
2005, ApJS, 157, 335 —. 1973b, ApJ, 185, 69
Luminet, J.-P. 1979, A&A, 75, 228 Shapiro, S. L., & Teukolsky, S. A. 1983, Black holes, white dwarfs,
Mahadevan, R., Narayan, R., & Yi, I. 1996, ApJ, 465, 327 and neutron stars: The physics of compact objects (New York,
Michel, F. C. 1972, Ap&SS, 15, 153 Wiley-Interscience, 663 p.)
Misner, C. W., Thorne, K. S., & Wheeler, J. A. 1973, Gravitation Viergutz, S. U. 1993, A&A, 272, 355
(San Francisco: W.H. Freeman and Co.) Wu, S.-M., & Wang, T.-G. 2007, MNRAS, 378, 841
Noble, S. C., Leung, P. K., Gammie, C. F., & Book, L. G. 2007, Zeldovich, Y. B., & Novikov, I. D. 1971, Relativistic astrophysics.
Class. and Quant. Gravity, 24, 259 Vol.1: Stars and relativity (Chicago: University of Chicago Press)
Pacholczyk, A. G. 1970, Radio astrophysics. Nonthermal processes
in galactic and extragalactic sources (San Francisco: Freeman)
Page, D. N., & Thorne, K. S. 1974, ApJ, 191, 499