Chapter 5: Ray Tracing in Wormhole Geometries
In this chapter we will discuss the existence of wormholes in our universe. The first wormhole discussed will be the Ellis wormhole, discovered by Homer Ellis, [6] in 1973. After the line metric and embedded diagram has been explained for this one parameter wormhole, we will move onto the three parameter wormhole that was produced by the DN team for the movie Interstellar, [14]. This new line metric will be examined so that equations of motion to ray trace in this wormhole geometry can be derived, to then produce a map from locations on a camera to a point on a celestial sphere. This will then be used in an algorithm to produce the wormhole images. Majority of the work in this chapter has been based on the work by the DN team’s paper, [7]. Where other sources have been used, they will be stated explicitly.
5.1 Introduction to Wormholes
A wormhole, also known as an Einstein–Rosen bridge, is a structure in spacetime that connects two parts of a universe together via a tunnel. This is seen in Figure 5.1 taken from Kip Thorne’s book, [8], Chapter 14, which shows two locations in the universe, and , which are connected by the red dashed line in the real universe and by the blue dashed line through the wormhole. This implies that there is a shorter route from to then the actually distance between them in the universe.

This curved structure connecting the two parts of the universe in Figure 5.1 is known as an embedded diagram of a wormhole. An embedded diagram expresses the shape of a four dimensional wormhole into a three dimensional curved manifold. This is because at each circle on this manifold’s surface there exists a sphere containing a circle as its cross section area, which represents the three dimensional space in the universe, hence one spatial dimension has been removed from the diagram. The diameter of these spheres’ on Figure 5.1 starting from location shrink in size when passing along the blue dashed line into the wormhole’s tunnel, until they reach the middle of the tunnel, which is where the sphere’s possess the smallest diameter. The diameter begins to grow in size when traveling through the bottom of the wormhole until they reach .
Wormholes in our real universe have not been proven to exist. They are very likely to be forbidden by the laws of classical physics because of the presence of negative energy density inside them and the possibility of backward time travel. This negative mass has not been proven anywhere in the universe and hence if any photon or object was to enter the wormhole, it would collapse on them and the tunnel would pinch off. If this negative mass was possible, we would be dealing with a stable "traversable" wormhole that can stay open, and not pinch off. These are they type of wormholes we will be considering for the rest of the report. The first type of wormhole discussed will be the simplest one parameter wormhole, that does not have much freedom in controlling its shape.
5.2 The Ellis Wormhole
The Ellis wormhole is a simple wormhole that only possesses one parameter that affects its structure. Its metric was derived by Homer Ellis in 1973. The work below has been based on his work in [6]. This type of wormhole is known as a "drain hole" because it contains a vector field that is a velocity field for an ether draining through the hole. The line metric of this geometry is
The function in the line metric is now defined as
with being the spherical coordinates as usual. The constant is related to the wormhole’s throat radius. This line metric in equation is of the same form as the Schwarzschild line metric found in the previous chapters, meaning that this type of wormhole, itself is also spherically symmetric making the metric similar to that of a Schwarzschild black hole because it contains the same term. The function here is the radius of the sphere at a point in space, but is determined by the above equation and depends on the coordinate . The presence of the negative sign in proves that in this geometry with fixed coordinates, time increases in a time-like direction in an object’s proper time. The term is another spatial coordinate that is an object’s proper radial distance that is independent of the other coordinates, due to the absence of cross coordinate terms like or .
In Figure 5.2 an "embedding diagram" of the Ellis wormhole is shown. This shows the wormhole’s throat radius , the coordinates and the radius . The one spatial dimension that has been removed from this diagram is the coordinate , in the line metric equation, that makes each circle on the manifold surface into a sphere. When in equation r(l), where is expressed as a function of , the value of and when or then . This explains the curvature in the embedded diagram when moving further away from the centre of the wormhole, as increases then so does .

The shape of the Ellis wormhole cannot be altered as it only depends on one parameter, . However, adding extra parameters to wormholes can then affect their shape, which is what is introduced in the next section.
5.3 The Three-Parameter Wormhole
Wormholes with more parameters are more desirable as there is more flexibility for altering the shape of them and hence the images produced. In the movie Interstellar, [14], directed by Christopher Nolan, the desired wormhole needed extra parameters to achieve the preferred images that appear when falling through a wormhole. So his team introduced the following parameters:
Firstly, a parameter measuring the length, , of half of the wormhole’s interior, which is also the wormhole’s throat. This then turns out to produce a wormhole with very sharp transitions from the interior of the wormhole to the exterior. The line metric remains the same but the function of then becomes
The embedded diagram for this two parameter wormhole appears as a cylinder, of length and radius , for the wormhole’s interior, and a flat three dimensional space on either side of the cylinder that excludes the cross sectional circle of the wormhole’s interior of radius as seen in Figure 5.3. These extremely sharp transitions would produce less accurate, bizarre images as no gravitational lensing would take place because the spacetime is flat on either side of the wormholes interior, which is why another parameter related to the curvature is added.

Secondly, a parameter known as the "lensing width" is added to the wormhole, which smooths the transitions from the interior, to the exterior, , of the wormhole. This transition gives rise to gravitational lensing around the wormhole’s edges, causing multiple deformed images of stars to appear in the wormhole’s image. The transition of the wormhole was chosen to be similar to that of the horizon of the non-spinning Schwarzschild black hole covered in chapters two and three. The wormhole’s metric then becomes
Here has been replaced and now takes the form
To express as a function of the Interstellar team chose a simple analytical function similar to that of the Schwarzschild case with
and
Where the function is defined as
To measure the amount of curvature we need to take into account the height of the embedded surface from the wormhole’s central mid plane, which slices through the interior cylinder. This change in height will be denoted as , and together the displacement becomes . Comparing this to the spatial metric of the two dimensional surface in the wormhole’s embedded diagram, that is , then proves that . Expressing this function of the height, , in terms of the distance, , through the wormhole gets
Substituting the functions of from the equations above into the above equation, and coding this together with the line metric produces the embedded diagram of this three parameter wormhole shown in Figure 5.4. Here the lensing width parameter measuring the curvature is denoted by and is related to a mass by
So is actually a measure of the lateral distance in the embedding space, where the wormhole’s surface changes from being vertical at the interior to an angle of degrees on the exterior. The edges of the wormhole’s interior, at , is known as the wormhole’s mouth, which separates the interior from the exterior, which contains spheres of radius . The shape of the wormhole’s embedded diagram in Figure 5.4 actually only depends on the two ratios, the first being the mass-to-radius, , and the second being the length-to-diameter , .

Now that we have an understanding of the different types of wormhole’s line metrics and embedded diagrams, we can start looking at how the code produces these embedded diagrams.
5.4 Producing the Embedded Diagrams
This data has been written based on the work of Jason B,[11].
To program the wormhole’s embedded diagram, the functions, and , of will be used. The function of and come from expressions in equations above to give
The expression for is given by differentiating equations for above with respect to to get Substituting this expression for into the function for taken from equation of z(l) produces The code uses these functions to produce the embedded diagram using polar coordinates that are translated into cartesian coordinates with , which is representing both sides of the wormhole because takes both positive and negative values for . It then produces the plot after entering the wormhole’s parameters .
Now that the code has been explained to display the shape of wormholes by plotting their embedded diagrams, we will start explaining how these images of wormholes are produced.
5.5 Images of Wormholes
To produce images of wormholes’ a camera is placed at a desired position, either in the interior of the wormhole or exterior, and then absorbs light from different directions to produce the image. To simplify our model, it is now assumed that the only source of light is coming from the upper celestial sphere and the lower celestial sphere. These celestial spheres are also assumed to be lying at and respectively on the wormhole. A camera that is located at the black dot in Figure 5.5 can capture light from both null geodesic light rays labelled ray and ray . The light from ray is coming from the upper celestial sphere and for ray from the lower, hence the camera will produce an image of the wormhole that contains distorted images of both celestial spheres.

To depict exactly where this light is coming from on each of these celestial spheres the coordinates of this light will be labelled, when , as on one of the spheres. Light rays will be traced backwards for each direction, , on the camera’s local sky until , where they will end at the location on one of the celestial spheres. To know which celestial sphere the light has travelled from, the sign is analysed. If it is positive, the light has come from the upper celestial sphere and if it is negative, it has come from the lower. As in the previous chapter with ray tracing Schwarzschild black holes, the image of the point emitting light on the celestial sphere will appear from the direction the light ray enters the camera’s local sky, but will appear distorted. Producing a map from is the key to producing images of the wormholes.
To produce pictures of wormholes we need to understand how images of spheres appear in flat two dimensional images. The images of the celestial spheres’ that are attached to the code will be flat photos, which is made possible by a longitude-latitude mapping system. This is the same system that is used when viewing the earth on a map that is a two dimensional photo. It converts the angle, , on a sphere to become the pixel, , on the flat image as shown in Figure 5.6. Here the angles take the values of and .

Now that we have an understanding of how light travels from the celestial spheres to a camera’s local sky, we can move onto deriving the geodesic equations that photons moves along in the wormhole’s geometry.
5.6 The Equations of Motion
We need to derive a system of differential equations that trace the paths along which light moves from the camera to the celestial spheres. This can then be used to produce images of the wormholes.
The light travels along null geodesics in the wormhole’s spacetime, hence we need to find solutions to the geodesic equations,
that were derived in a previous equation. Here the affine parameter will be used, which varies along these geodesics. We write these geodesics in the Hamiltonian language form, rather than the Euler-Lagrange form that we used to find the geodesics in Chapter 2. This is a better method as the structure of manifolds for wormholes are explained more precisely in this way, so we use the Hamiltonian formula where our photons coordinates, , possess a generalised momentum, . The inverse of our metric is still denoted by that keeps invariant under the change of coordinate systems. The Hamilton equations with respect to are then
Using the above equations, the Hamiltonian can be proven to be constant along geodesics. Taking the derivative of with respect to yeilds This derivative of the Hamiltonian being equal to zero proves that is it constant and hence solves the geodesic equations. Dividing the momentum coordinates of the Hamiltonian by their corresponding coefficient functions in the line metric equation derives the super Hamiltonian of the wormhole’s metric, which becomes Both and are missing from this equation, so this implies that and are both conserved quantities along a ray. We then denoted by where is a constant related to the photons impact parameter relative to the polar axis of the wormhole. The other conserved quantity satisfies , hence has to be set to so that it is conserved. This causes , which will be implemented later in equations, because Another conserved quantity is the photon’s angular momentum, which is related to the photon’s impact parameter, , to the the wormhole’s centre, because of the spherical geometry. This constant then equates to The following ray equations are derived by solving the Hamilton equations using the wormholes Hamiltonian in equation and the relation between and in above equation which gives
These equations encode the photon’s trajectories along the geodesics as a function of time, with coordinates . Now that these equations have been found we can produce a code that ray traces these photons to produce a map from .
5.7 Mapping a Point on the Camera to the Celestial Spheres
To produce this map from a point on the camera’s local sky to one of the celestial spheres, the following steps are needed.
Firstly, the location of the camera is chosen depending on the desired output, which has coordinates denoted by . This is normally set at to reduce the chance of getting a coordinate singularity at or .
Secondly, we set the origin at our camera’s location and for every point on the camera’s local sky , the following normal vectors are calculated to transform them into Cartesian form by setting
The unit vectors are pointing in the and directions respectively. This minus sign on the component is chosen so that when is positive, the wormhole’s polar axis is parallel to , from the upper celestial sphere. The photons are incoming into the camera from a direction of , because of the backwards ray tracing, so then the vector representing the true direction of photons, , becomes the following:
Using the values in equation above to calculate the photons canonical momenta that are defined by After these values of the momentum have been calculated, then compute the constants photon’s constants of motion, and , that were derived in the last section as
Using these expressions in equations above, integrate the equations of motion in , to produce an array of locations of photons’. Using these results, create arrays of and values, so that an interpolating function in Mathematica that compares these corresponding values and creates a map between then. So that for any value of entered, it calculates the corresponding value.
Using these steps, any point on the camera’s local sky can have a photon path traced backwards to where it came from on one of the celestial spheres. Now that we have this mapping we can start looking into the algorithm used to produce images of these wormholes.
5.8 The Backwards Ray Tracing Algorithm
This data has been written based on the work of Jason B,[11].
The code can then produce images of the three-parameter wormhole. It consists of the following backwards ray tracing algorithm to produce images:
Set the three parameters for the desired wormhole and the position of the camera’s local sky with coordinates , and the images of the celestial spheres are attached.
Produce the mapping of using this camera’s location and the parameters of the wormhole. This mapping has been derived in the previous section. In the code the functions of , the canonical momenta and the constants of motion have been defined. The differential equations of motion, have been solved, that takes the initial values and solves backward in time to ray trace the photons. The actual map is then defined in a function, that ray traces the photons and then stores the values of for the corresponding .
The final function labeled "wormhole" uses an interpolating function to produce the image of the wormhole by using the mapping from for each pixel, , on the camera’s local sky. The colour of the pixel should be taken from the upper celestial sphere if is positive and from the lower if is negative.
Now that we have the equations of motion of photons in a wormhole’s spacetime and the code that uses the algorithm to produces images of them, we can start analysing why they appear as they do.