In yesterday’s blog, I discussed how mathematicians and physicists measure angles in radians rather than the more familiar degrees. I finished the blog by mentioning a problem to do with water level in a harbour. Let me state the problem in more detail, and then show how we go about solving it.
The tide is high
Suppose the height in metres of the water in a harbour can be described by the equation
where is the time in hours. We will assume that the time corresponds to midnight. We want to find the following
- The maximum height of the water
- The minimum height of the water
- The time when the first maximum water height occurs
- The time when the first minimum water height occurs
- If a boat needs 2 metres of water to be able to use the harbour, how many hours a day can it use the harbour?
As I showed yesterday, the period of this up and down motion of the water level is given by , so in this example above the period is . In reality, of course, if the up and down motion of the level of water is due to the tides, then the period has to be 12 hours, as there are two high and two low tides each day. But, let’s assume, just for variety, that the period can differ from 12 hours, so in this example it will be 8 hours.
Notice that the equation describing the level of the water is a combination of sines and cosines. How do we go about solving this?
Combining sines and cosines
The trick to being able to solve this equation is to use the compound angle formula. A few pages of algebra will show that
We will use that to rewrite our formula for the water level. We can write
Multiplying all the terms by we get
and, re-ordering this we get
By writing it in this order we can see that in our original equation and . If we square these two equations, and remember that for any value of , then and , so adding these we get , so .
In order to calculate the phase angle we not that . So . (This is about ).
So, now we have an equation for which is entirely in terms of , we have
The maximum and minimum heights of water in the harbour
Sine is a function which varies between +1 and -1, so the maximum value of . This means the maximum height of the water in the harbour will be .
The minimum height will be when , and so the minimum height will be .
At what time does the water level first reach its maximum value?
We have shown that the maximum value happens when . Let us call a new angle . We know that . But . This leads to after midnight.
At what time does the water level first reach its minimum value?
This happens when . The first time this happens is when . This leads to after midnight. Note, this is half a period (4 hours) after the maximum, as one would expect.
How many hours each day can we use the harbour?
If we can only use the harbour when the water level is above 2 metres, we need to find the time when the water level first drops below 2 metres (remember it goes down as low as 1 metre). At midnight, the water level is .
We need to find . Re-arranging, this is .
This value is shown by the horizontal dashed blue line on the zoomed-in sine functions plotted above. This gives a value of . But, this answer is no good for us, as it gives a negative time, as shown by the first red dot to the left of the y-axis. We have to find the next solution, which will be when at a time 1 period later, so . So , the 3rd red dot on the plot. This value leads to .
If we compare this time to the time of the first minimum, , we can see that is is after it. What has gone wrong? What we have found is the time when the water level comes back up to 2m after being as low as 1 metre when the time was . The difference between . From the symmetry of the sine function, the water will drop below the 2 metre level at the same time difference before the minimum, i.e. at a time of . This is the 2nd red dot on the plot. So, the time the water is below 2 metres during each cycle is the time between the 2nd and 3rd red dots, i.e. the part shaded in yellow. That is
Because the period of our sine function is 8 hours, there are full cycles in each 24 hour day. During each cycle the water level is below 2 metres for , the total number of hours each day for which we cannot use the harbour is .
We were asked for the number of hours each day we can use the harbour, so this will be each day.