## The Sunrise Equation

In my quest to watch a sunrise recently, I had to search the web to find out the time before which I needed to get up. Predicting the sunrise is something that I had pondered before. I'm sure numerical simulations are more accurate, but I began deriving a simple formula. Everyone knows the gist of why the Sun rises and sets and why this experience depends on your location on the globe. The answer is that it all depends on the tilt of the Earth's axis.

The Earth's axis of rotation makes a certain angle with the normal to the plane in which it orbits. This angle of inclination is . It is not hard to picture how this affects the seasons and why the tropics are offset from the equator by as well. I found it much harder to visualize the effect that the inclination has on the length of a day and most people I've talked to simply take it on faith that the Arctic and Antarctic circles are at latitude.

So now is our chance to overcome this hurdle. Together, you and I will figure out how to calculate the length of a day as a function of time for all latitudes. Hint: it is not a smooth function!

For convenience, let . If we put the Sun at the origin of our co-ordinate system, we can track the Earth's position using polar co-ordinates . If we assume that Earth undergoes a circular orbit (which is almost true), we can take to be constant and not worry about it. We also know that bound orbits (circular or not) lie in a plane so we might as well use one angle to describe the orbit instead of two. What we always do in celestial mechanics is take and let vary.

We will let be the period of Earth's revolution (1 year). Since the Earth orbits the Sun at a constant velocity, the angle through which it has revolved is given by . Below, the Earth's axis is shown in red and the angle of inclination is labelled . This diagram shows that the angle between the direct ray of sunlight (orange) and the Earth's axis depends on both and . One can imagine that we go "over" by and then "up" by and we need to know what the overall angle is.

If we let the x-axis be horizontal, the z-axis be vertical and the y-axis point out of the page, the third component of a vector pointing along Earth's axis can be . The first two components must then be and so that the foot of the perpendicular will have unit length as we have drawn it. We must therefore find the angle between and a vector pointing from the Earth to the Sun, say . Solving for the absolute angle, , is not too difficult.

Now we need to figure out how the length of a day depends on . In the next diagram, we have chosen an arbitrary latitude above the equator and drawn it as a circle around the Earth. This circle has a radius of and from the centre of this circle, you get to the centre of the Earth by travelling a distance of down the red axis.

Now clearly, the latitude we have drawn has a day that is longer than 12 hours. More than half of the circumference of the circle lies in the blue "lit up" part of the Earth. We quantify the amount by which the day is longer using an "overflow angle" . There is an on both sides, so the length of a day is equal to 24 hours times . Notice that if we had chosen a line of latitude that was a bit farther North but still below the North Pole, it would lie entirely in the blue section, would be equal to and the day would be 24 hours long. We will see that this extreme comes out nicely in the final equation.

To find the length of the bright piece of the circle that is left after it has already gone halfway around, we can consider parallel lines that pass through the endpoints of this arc. The end of this arc can be found if we start at the point on the circle that crosses the blue/gray boundary and draw the perpendicular from that point to the vertical untilted line. The beginning of this arc can be found if we instead draw a line (of length ) from this same point to the centre of the circle and rotate it back through an angle of . The rotated line will then intersect the beginning of the arc. In the triangle above, we can draw a line sticking out of the page at the top-left corner that will intersect the beginning and we can draw a parallel line, also sticking out of the page, at the top-right corner that will intersect the end. It is useful to solve for the length of the line segment joining them, which is . This line segment is straight, so it cannot be the curved arc we are looking for. Rather, it is tangent to the circle in the following way:

Consider the triangle in the upper-right corner having a hypotenuse of . The leg of this triangle on the top has a length of since one of its angles is . But this length is also equal to since the overall shape is a rectangle. We now have . It remains to be seen how and depend on the latitude. These are expressions you might have guessed. Below we denote the latitude by and the radius of the Earth by . It follows immediately that and .

Substituting this into the expression above, we get . A constraint of the problem is now apparent. The sine of a physical angle should be between -1 and 1 right? Going back to the diagram where we calculated in terms of and , it is clear that which means . So if were less than , it couldn't possibly also be greater than . This means that guarantees us an angle that makes sense. Conversely, latitudes on the other side are greater than which means they are above the Arctic circle or below the Antarctic circle. It is these regions that sometimes have 24 hours of light or 24 hours of darkness. The existence of days without sunlight ensures that the tree line also resides at a latitude because most plants above this line are not able to survive throughout the year.

We have not yet put all of our useful information together. We know that , we know that , we know that as a fraction of 24 hours, a day is and we know that is equal to , rounded down if it is above 1 and rounded up if it is below -1. The last step required to find the length is:

It is fun to plot this function and confirm our intuition about sunrises and sunsets. To go from day length to actual sunrise and sunset times, all we have to do is remember that our system of keeping time is setup so that 12:00 noon occurs in the middle of a day. This is valid when you are in the centre of your timezone. Let's say that you are two thirds of the way between the west edge and east edge of your timezone (the real edge, not the bendy edge). This means that the solar noon for your location actually occurs earlier than noon - i.e. 11:50am. If you evaluate the function we just derived and find that , sunrise can be expected 6.5 hours earlier than noon: 5:20 am. This of course becomes 6:20 am if you want it in daylight time.

This approach does a good job of predicting when locations around the globe receive light, but can it tell us anything about temperature? Temperature is harder because it depends heavily on terrestrial factors and only a rough approximation can be calculated geometrically. I wouldn't want to change notation on you in the middle of a post so I guess you'll have to stay tuned and read the next one!

## Post new comment

• Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
• Lines and paragraphs break automatically.