This note is supplementary to a previous one entitled "Sunrise Direction". The same model of Earth with respect to the Sun is used to predict the length of day, on any given day in the year, and anywhere on Earth.
We have three coordinate reference frames to relate, the first one (Frame 1) is the reference frame that has its center at the center of Earth, with the z-axis set perpendicular to the orbital plane (the plane in which the Earth orbits the Sun). Also, the x-axis is selected to point towards the center of the Sun.
The second reference frame (Frame 2) is attached to Earth, centered at the Earth center, with its z-axis along the axis of Earth rotation. The x-axis orientation, results naturally when we look at this frame as being the result of two consecutive geometric rotations, the first is about the z-axis (of the orbital plane). And the second is about the y-axis of the frame resulting from the first rotation.
Finally, the third frame (Frame 3), is the frame attached to a moving point on the surface of Earth, with its three axes pointing towards the standard directions of local East, local North, and local Vertical.
Thus, let r1=[x1,y1,z1]T be the coordinate vector in the orbital plane, and r′=[x′,y′,z′]T be the corresponding coordinate vector in the frame resulting from the first rotation, and let r2=[x2,y2,z2]T be the corresponding coordinate vector in Frame 2. We can relate these three vectors as follows
r1=R′r′
where R′ is the rotation matrix about the z-axis by an angle ϕ, and is given by
R′=⎣⎡cosϕsinϕ0−sinϕcosϕ0001⎦⎤
In addition,
r′=Ryr2
where Ry is the rotation matrix about the y-axis by an angle θ, and is given by
Next, we consider Frame 3. We note that the unit vectors pointing East and North and Vertically Up, at a given point that has a latitude of (90∘−θL) is given by
vEast=[−sinϕt,cosϕt,0]T
And
vNorth=[−cosθLcosϕt,−cosθLsinϕt,sinθL]T
And
vVertical=[sinθLcosϕt,sinθLsinϕt,cosθL]T
Where ϕt is the rotation angle counterclockwise from the x-axis of the Earth reference frame.
Together, these three vectors form an orthornormal basis for the reference frame we name Frame 3, and can written with respect to frame 2 as
Now, at sunrise , the z-component of this vector is zero, because the Sun will be coming from the horizon. So we need to solve for
ϕt that will result in zero z-component of u3. To that end, let
a=cosϕcosθsinθL
b=−sinϕsinθL
c=cosϕsinθcosθL
then
u3z=acosϕt+bsinϕt+c=0
Define ψ to be the angle with cosψ=a/a2+b2 and sinψ=b/a2+b2, then
a2+b2cos(ϕt−ψ)+c=0
This raised-cosine crosses from negative to positive at
ϕt=ψ−cos−1(−c/a2+b2)
This corresponds to sunrise, and it crosses from positive to negative at
ϕt=ψ+cos−1(−c/a2+b2)
And this corresponds to sunset.
Therefore, the angle swing between sunrise and sunset is given by
Δϕt=2cos−1(−c/a2+b2)
Since ϕt changes linearly with time, and since it covers 2π in T=23.934471 hours (this is called a stellar day), it follows that the length of the day is given by
DayLength=T(Δϕt/(2π))
Using the expressions for a,b,c , and simplifying, results in
As an example, to compute the day length, in Ottawa, on December 13th, compute angle ϕ from the number of days that have passed since June 21st, and this number is 175 days. Hence
ϕ=−(175/365.25)∗360∘=−172.48∘
And since Ottawa has a latitude of 45.42∘ North of the Equator, then
θL=90∘−45.42∘=44.58∘
In addition,
θ=23.44∘
Substituting these values in the above equation, and performing the numeric calculations, results in
DayLength=(T/π)cos−1(0.435486)=8.53447Hours
That is, 8 Hours, and 32 Minutes.
The actual Sunrise in Ottawa was at 7:34 am and Sunset is at 4:20 pm, making the day length = 16:20 - 7:34 = 15:80 - 7:34 = 8:46 , i.e. 8 Hours and 46 minutes.
The difference (about 14 minutes, i.e. 2.7% error) is due to factors we've ignored like refractions of the sun rays in the atmosphere, and also that our calculation assumes a fixed angle ϕ.
This discussion board is a place to discuss our Daily Challenges and the math and science
related to those challenges. Explanations are more than just a solution — they should
explain the steps and thinking strategies that you used to obtain the solution. Comments
should further the discussion of math and science.
When posting on Brilliant:
Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.
Markdown
Appears as
*italics* or _italics_
italics
**bold** or __bold__
bold
- bulleted - list
bulleted
list
1. numbered 2. list
numbered
list
Note: you must add a full line of space before and after lists for them to show up correctly
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
There are no comments in this discussion.