# In a certain town, the longest day of the year, which is in june, lasts fourteen hours. the shortest day of the year, which is in december, lasts ten hours. twice per year, in march and september, the day is the same length as the night, or twelve hours. length of day varies sinusoidally through the year. write an equation for h(m, the length of the day in hours, as a function of the cosine of m, the number of months since january.

From the information given we can create a few data points: (6,14), (3,12), (9,12) and (12,10). Where the x values are the months and the y values are the number of hours where is "day" The answer will be in the form: [latex]y=A*cos(Bx+C)+D[/latex] To get A, we have to find the range and then divided by 2. Therefore we have [latex]14-10=4*(1/2)=2[/latex] **Since we are using cos we need to start and end at the same point and such, A is negative. Therefore [latex]A=-2[/latex] D is 12 since is the middle value between 10 and 14. C is zero. To obtain the value of B we have: [latex] \frac{2 \pi }{B}=12[/latex] When solved we have that [latex]B= \frac{ \pi }{6} [/latex] Therefore the final equation is: [latex]y=-2cos(m* \frac{ \pi }{6})+12 [/latex]