We're looking for a model of the form
![y=a\cos(b(x-c))+d](https://img.qammunity.org/2020/formulas/mathematics/middle-school/p9yekmbm1p09id34xaob4kvyxb1wyo6qby.png)
is the amplitude, equal to half the difference between the maximum and minimum hours of daylight:
![a=\frac{15.3-9.1}2=3.1](https://img.qammunity.org/2020/formulas/mathematics/middle-school/t3uw3dx3kwi5v03fdp2yurbp1gnc8091fm.png)
determines the period of the cosine function. The period itself is
, which we want equal to 365, so that
![365=\frac{2\pi}b\implies b=(2\pi)/(365)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/d2covyoo2pzxxrkf2x0d6pbyfa9p652dzv.png)
(so that the value in the second box should be 365)
determines the horizontal shift of the cosine function. We'll come back to this in a moment.
represents the vertical shift of the function. The standard function is bounded between -1 and 1:
![-1\le\cos x\le1](https://img.qammunity.org/2020/formulas/mathematics/middle-school/9c72d20q9wkmho2f2srxnpnxmv19bcv7f5.png)
Our new function has an amplitude of 3.1, so that
![-3.1\le3.1\cos x\le3.1](https://img.qammunity.org/2020/formulas/mathematics/middle-school/61auixvz4aoh7fcdqhc8qiumt97839215x.png)
We want the range of values to fall between 15.3 and 9.1, so we want to pick
such that
![\begin{cases}-3.1+d=9.1\\3.1+d=15.3\end{cases}\implies d=12.2](https://img.qammunity.org/2020/formulas/mathematics/middle-school/xp2wf82mrep57gf7a94if7vpooye0jarz9.png)
So the current model is
![y=3.1\cos\left((2\pi)/(365)x\right)+12.2](https://img.qammunity.org/2020/formulas/mathematics/middle-school/awudi0jx6wmqnte6yjdmw4pyaqh6z19fie.png)
represents the horizontal shift of the function.
represents the first day of the year, which according to the current model tells us we should expect
hours of daylight on the first day of the year. But this conflicts with the data. We want this maximum to occur on the 172nd day of the year, so we shift the model by this amount, and the model is
![y=\boxed{3.1}\cos\left(\frac{2\pi}{\boxed{365}}}(x-\boxed{172})\right)+\boxed{12.2}](https://img.qammunity.org/2020/formulas/mathematics/middle-school/zbbmab55qk9yppamyyy4te6tedrgihhu0g.png)