**Modelling tides: What is the effect of a full moon?**

Let’s have a look at the effect of the moon on the tides in Phuket. The Phuket tide table above shows the height of the tide (meters) on given days in March, with the hours along the top. So if we choose March 1st (full moon) we get the following graph:

**Phuket tide at full moon:**

If I use the standard sine regression on Desmos I get the following:

This doesn’t look a very useful graph – but the R squared value is very close to one – so what’s gone wrong? Well, Desmos has done what we asked it to do – found a sine curve that goes through the points, it’s just that it’s chosen a b value of close to 120 – meaning that the curve has a very small period. So to prevent Desmos doing this, we need to fix the period first. If we are in radians the we use the formula period = 2pi / b. Therefore looking at the original graph we can see that this period is around 12. Therefore we have:

period = 2pi/b

12 = 2pi/b

b = 2pi/12 or pi/6.

Plotting this new graph gives something that looks a lot nicer:

**Phuket tide at new moon:**

**Analysis:**

Both graphs show a very close fit to the original data – though both under-value the tide at 2300. We can see that the full moon has indeed had an effect on the amplitude of the sine curves – with the amplitude of 1.21m for the full moon and only 1.03m for the new moon.

**Further study:**

We could then see if this relationship holds throughout the year – is there a general formula to explain the moons effect on the amplitude? We could also see how we have to modify the sine wave to capture the tidal height over an entire week or month. Can we capture it with a single equation (perhaps a damped sine wave?) or is it only possible as a piecewise function? We could also use some calculus to find the maximum and minimum points.

There is a very nice pdf which goes into more detail on the maths behind modeling tides here. There we go – a nice simple investigation which can be expanded in a number of directions.