How Mathematics Improves The World | Predicting the Tide Before the Sea Reaches the Harbour Wall
The sea rises.
Then falls.
Tomorrow it rises again, but not at exactly the same clock time.
Next week the range is larger.
Later it becomes smaller.
One harbour may have two obvious high tides each day.
Another may have one dominant high tide.
A third may have two tides of very different heights.
The Moon seems to be responsible.
The Sun matters too.
So do the shapes of oceans, continental shelves, estuaries and harbours.
The result looks messy.
Mathematics discovers that much of the mess is a sum of regular cycles.
Separate those cycles.
Measure each one’s amplitude and phase at the harbour.
Then add them back together.
A future tide table appears.
Quick Read
Tides are driven mainly by the changing gravitational relationships among Earth, the Moon and the Sun. Those relationships contain many astronomical cycles. NOAA describes these cycles as tidal harmonic constituents. Each constituent behaves mathematically like a cosine wave with a known astronomical frequency but a location-specific amplitude and phase.
At a tide station, long records of observed water level are analysed to estimate those local harmonic constants. NOAA notes that 37 constituents commonly capture the largest tidal effects for routine prediction, with at least about 30 days of data needed to observe most major lunar and solar cycles and roughly a year needed to observe the full set directly. Long records improve the estimates.
Prediction then becomes superposition. The future water level is calculated by summing the cosine contributions of the constituents plus the station’s reference mean level. The largest familiar terms include M2, the principal lunar semidiurnal constituent with a period of about 12 hours 25 minutes, and S2, the principal solar semidiurnal constituent with a 12-hour period. Their interference produces spring–neap variation.
But a tide prediction is not a complete coastal water-level forecast. Wind, atmospheric pressure, waves, river flow and storm surge can push observed water far above or below the astronomical prediction. Sea-level rise also changes the baseline on which future tides act. Mathematics therefore separates predictable astronomical tide from meteorological and long-term components instead of pretending one tide table explains the entire sea.
One-sentence answer: Mathematics improves the world by decomposing complicated coastal water-level cycles into measurable harmonic components, making the astronomical part of future tides predictable enough for navigation, harbour operations, coastal planning and flood preparedness.
The Moon Does Not Pull One Tide
Textbooks often begin with one tidal bulge facing the Moon and another on the opposite side of Earth.
Useful first model.
Real oceans are bounded by continents.
Water has inertia.
Ocean basins resonate.
Coastlines funnel flow.
Shallow water creates friction and nonlinear distortion.
The astronomical forcing is global.
The response is local.
That is why the same Moon produces very different tidal ranges in different harbours.
Astronomical Cycles Become Frequencies
Earth rotates.
The Moon orbits Earth.
Earth orbits the Sun.
The Moon’s orbit is tilted and elliptical.
The orientation of orbital planes changes slowly.
Each motion produces periodic gravitational forcing.
Harmonic analysis converts these astronomical periods into frequencies:
ω = 2π/T
where T is period.
Each known frequency is a candidate constituent in the tidal signal.
M2: The Principal Lunar Semidiurnal Constituent
Earth rotates once in roughly 24 hours.
The Moon moves eastward in its orbit during that rotation.
A location on Earth therefore needs roughly another 50 minutes to face the Moon again.
The lunar day is about 24 hours 50 minutes.
The dominant semidiurnal lunar constituent M2 produces two cycles during that lunar day.
Period: roughly 12 hours 25 minutes.
NOAA identifies M2 as the largest lunar constituent in many locations.
S2: The Principal Solar Semidiurnal Constituent
The solar day is 24 hours.
The principal solar semidiurnal constituent S2 therefore repeats twice daily.
Period: 12 hours.
M2 and S2 are close in frequency but not identical.
That small difference creates a slow beat pattern when they are added.
This is the mathematical skeleton of the spring–neap cycle.
Beats: Two Similar Frequencies Create a Slower Envelope
Add two cosine waves:
cos(ω1t)+cos(ω2t)=2cos((ω1−ω2)t/2)cos((ω1+ω2)t/2)
The fast oscillation is modulated by a slower envelope.
When M2 and S2 reinforce, tidal range grows.
When they oppose, tidal range shrinks.
Spring tides occur near new and full Moon when major lunar and solar effects reinforce strongly.
Neap tides occur near quarter Moons when they partially cancel.
The sea’s fortnightly rhythm is interference.
Amplitude: How Strong Is This Constituent Here?
Each constituent has a local amplitude H.
At one harbour, M2 may dominate dramatically.
At another, diurnal constituents may be stronger.
Amplitude depends on how the ocean basin and coastline respond to that forcing frequency.
This is similar to pushing a swing.
Push at the right rhythm and response becomes large.
Ocean basins have resonant behaviour too.
Phase: When Does the Local Tide Respond?
A constituent’s astronomical forcing has a known phase.
The harbour response can lag.
Phase K records where the local cosine sits relative to the astronomical reference.
Two stations can have the same constituent frequency and different amplitude and phase.
This is why one universal tide curve cannot be copied from city to city.
Frequency comes from astronomy.
Amplitude and phase come from local ocean response.
The Harmonic Prediction Equation
NOAA presents tide prediction as a sum of constituent cosine terms around a mean level.
In simplified notation:
h(t)=H0+Σ Akcos(ωkt+φk)
H0 is a reference mean water level.
Ak is constituent amplitude.
ωk is known astronomical angular frequency.
φk is local phase including astronomical and station terms.
Thirty-seven simple waves can produce a tide curve that looks irregular to the eye.
Harmonic Analysis: Work Backwards From the Observed Sea
Prediction requires harmonic constants.
How do we get them?
Measure water level through time.
The constituent frequencies are known from astronomy.
Fit unknown sine and cosine coefficients.
A convenient linear form is:
h(t)=H0+Σ[akcos(ωkt)+bksin(ωkt)]
Now a and b can be estimated by least squares.
Convert them back into amplitude and phase.
Signal decomposition becomes a prediction engine.
Why a Month of Data Is Not the Same as a Year
To separate two frequencies, the observation record must be long enough for their phase relationship to change visibly.
NOAA notes that at least about 30 days is used to observe most major lunar and solar cycles.
A year is needed to directly observe all of the commonly used 37 constituents.
Longer records reduce uncertainty and better separate nearby frequencies.
Observation length is frequency resolution.
Fourier Thinking: Complicated Motion Can Be a Sum of Simple Waves
The tidal method belongs to a much larger mathematical family.
Sound can be decomposed into frequencies.
Images into spatial frequencies.
Vibrations into modes.
Tides into astronomical constituents.
The repeated trick is:
choose a basis of simple patterns, express the complicated signal as their weighted sum, then reason in the simpler coordinates.
Mathematics improves understanding by changing representation.
Diurnal Constituents: Some Tides Repeat Roughly Daily
Not every tidal constituent is semidiurnal.
K1 and O1 are important diurnal constituents in many locations.
Their periods are around one day.
Where diurnal constituents are strong relative to M2 and S2, tides can be mixed or predominantly diurnal.
The local pattern is the vector sum of many constituent families.
Shallow-Water Constituents: The Coast Creates New Frequencies
In deep water, tidal response can be close to linear.
In shallow estuaries and rivers, friction and changing depth distort the wave.
Nonlinear interactions create overtides and compound constituents such as M4 or MS4.
These frequencies are combinations or multiples of astronomical frequencies.
The coast acts like a nonlinear signal processor.
A pure sine input leaves with extra harmonics.
Tidal Asymmetry: Flood Can Be Faster Than Ebb
In some estuaries, incoming tide rises rapidly and outgoing tide falls slowly.
Elsewhere the reverse occurs.
Interactions between M2 and shallow-water constituents such as M4 change waveform shape.
This asymmetry matters for sediment transport.
A flood-dominant estuary can carry sediment landward.
An ebb-dominant system may export more.
Harmonic phase relationships become geomorphology.
Tidal Datums: Height Relative to What?
A predicted tide height of 1.2 metres is meaningless without a vertical reference.
Chart datum?
Mean sea level?
Mean lower low water?
Different applications use different tidal datums.
Navigation charts often reference a low-water datum so charted depths are conservative under ordinary tidal conditions.
Coastal flood studies may use other geodetic references.
Measurement needs an origin.
Timing Matters to Ships
A deep-draft ship approaching a shallow channel may need additional water depth.
High tide creates under-keel clearance.
But tidal current matters too.
The safest passage window may depend on:
- water level;
- current speed;
- ship draft;
- wave conditions;
- squat;
- traffic.
Tide prediction becomes part of harbour scheduling.
Tidal Currents Are Related but Not Identical to Tidal Heights
High water does not necessarily coincide with zero current.
In a harbour entrance, maximum flood current can occur before high water.
Slack water can lag the turning of sea level.
Current prediction therefore has its own harmonic constants and local dynamics.
Height and flow are connected through continuity and basin geometry, but one curve cannot substitute automatically for the other.
Tide Versus Surge
A tide table predicts astronomical water level.
A storm can push actual water much higher.
Wind piles water against the coast.
Low atmospheric pressure raises sea surface locally.
Waves add setup and run-up.
River discharge may raise an estuary.
The observed water level can be written conceptually as:
observed level = astronomical tide + meteorological residual + waves + river effects + longer-term sea-level state
The decomposition protects us from blaming the Moon for the storm.
Inverse Barometer Effect
Atmospheric pressure presses on the sea.
Lower pressure allows sea level to rise.
A useful rough rule is about one centimetre of sea-level change per one hectopascal pressure anomaly, though local dynamics modify the response.
A deep low-pressure system can therefore add significant water before wind-driven surge is included.
Tidal prediction needs meteorology beside it during storms.
Residual Analysis: What Did the Tide Model Fail to Explain?
Subtract predicted astronomical tide from observed water level.
The residual contains:
- storm surge;
- wind setup;
- pressure effects;
- river effects;
- measurement noise;
- model error.
Plot residual against wind and pressure.
Build operational forecast models.
Harmonic analysis removes the predictable background so unusual coastal behaviour becomes easier to see.
Sea-Level Rise Changes the Baseline, Not the Astronomical Frequencies
The Moon’s orbital periods do not change because climate warms.
The baseline sea level rises.
A high tide that once stopped below a seawall may cross it decades later even if the tidal constituent amplitudes were unchanged.
Coastal flood frequency can therefore increase rapidly as mean sea level approaches fixed infrastructure thresholds.
Additive baseline shifts create nonlinear changes in impact frequency because thresholds are crossed more often.
High-Tide Flooding: Ordinary Tides Can Become Extraordinary Impacts
A storm is not required for coastal flooding.
At vulnerable locations, spring tides combined with elevated mean sea level, modest winds or seasonal ocean conditions can exceed local flood thresholds.
NOAA now publishes high-tide flooding outlooks alongside tide and sea-level information.
The same harmonic tide that once mattered mainly to sailors becomes urban infrastructure data.
Uncertainty: Astronomical Tide Is Predictable, Coastal Water Level Is Not Perfectly Predictable
Astronomical constituent frequencies are known with extraordinary precision.
Local harmonic constants are estimated from data.
Meteorological forcing is uncertain.
Bathymetry changes.
Dredging changes channels.
Sea level changes.
Prediction therefore has layers of confidence.
Tomorrow’s astronomical high tide can be predicted accurately.
Tomorrow’s total storm water level may have much larger uncertainty.
Gauge Networks: Prediction Needs Reality to Keep Checking It
Tide gauges continuously observe actual water level.
Compare observation with prediction.
Persistent offset can indicate datum or sensor issues.
Long-term trend reveals sea-level change.
Short-term residual reveals weather-driven anomalies.
The harmonic model predicts.
The gauge answers.
Prediction remains useful because it stays connected to measurement.
Missing Data: A Broken Gauge Does Not Erase the Tide
Water-level records contain gaps.
Nearby stations, harmonic models and statistical interpolation can sometimes estimate missing periods.
But filled data should be flagged.
An estimate is not an observation.
Data lineage matters in coastal science because trends of millimetres per year can be affected by subtle processing choices.
Forecasting Ports: Water Level Becomes an Appointment
A ship needs enough depth at 14:30.
A fishing vessel wants slack current at the harbour mouth.
A dredging operation needs a water-level window.
A coastal construction team needs low tide.
Mathematics turns the sea into a schedule.
The sea remains physical and dangerous.
The timetable makes its predictable part operationally useful.
Tides and Renewable Energy
Tidal-stream turbines depend on current speed.
Power available from flow scales roughly with velocity cubed:
P ∝ ρAv³
A 20% increase in current speed can therefore create much larger power change.
Harmonic current prediction helps estimate energy yield and maintenance windows.
The same lunar regularity that once grounded ships can generate predictable renewable electricity.
Ecology: Organisms Use the Tide as a Clock
Mangroves flood and drain.
Mudflats emerge.
Shorebirds feed.
Crabs leave burrows.
Fish enter estuaries.
Intertidal ecosystems live inside a periodic boundary condition.
Ecological fieldwork uses tide predictions to plan sampling and interpret exposure duration.
Mathematics makes environmental time visible.
A Classroom Thought Experiment: Add Two Tides
Plot:
y1=cos(2πt/12.42)
and:
y2=0.5cos(2πt/12)
Then plot y1+y2 over two weeks.
Students see large ranges when peaks align and smaller ranges when peaks oppose.
Spring and neap tides appear from addition alone.
A Second Thought Experiment: Same Frequency, Different Harbour
Give Harbour A:
2cos(ωt)
Harbour B:
0.5cos(ωt−90°)
Same astronomical constituent.
Different amplitude and phase.
Ask which harbour has greater range and which peaks later.
Students discover why tide tables are local.
Primary Mathematics: Tides Begin With Cycles
Primary students can understand:
- time;
- periodic patterns;
- graphs;
- height;
- addition;
- averages.
Record water height every hour.
Find highs and lows.
Measure time between peaks.
The tide becomes a pattern before it becomes trigonometry.
Secondary Mathematics: The Sea Becomes Trigonometry
Secondary students add:
- sine and cosine;
- amplitude;
- period;
- phase shift;
- superposition;
- least squares;
- residuals.
A tide table becomes a sum of trigonometric functions.
Spring–neap variation becomes interference.
Observed minus predicted becomes a residual.
The harbour becomes signal processing.
Advanced Mathematics: Coastal Water Level as a Multi-Scale Signal
Modern tide and water-level analysis draws on:
- harmonic analysis;
- Fourier methods;
- least squares;
- spectral analysis;
- fluid dynamics;
- time-series modelling;
- extreme-value statistics;
- data assimilation.
Astronomy supplies frequencies.
Observations supply amplitudes and phases.
Meteorology explains residuals.
Long records reveal changing baselines.
Why This Improves the World
1. It makes harbour depth predictable
Ships can plan safer windows around expected tidal height and current.
2. It separates predictable tide from dangerous anomalies
Subtracting astronomical tide helps reveal storm surge and other unusual water-level behaviour.
3. It supports coastal construction and maintenance
Low-water and slack-water windows can be planned years ahead.
4. It improves flood preparedness
High astronomical tides can be combined with surge forecasts and sea-level trends to identify dangerous water-level windows.
5. It supports tidal-energy planning
Predictable tidal currents help estimate generation and maintenance schedules.
6. It turns a complicated signal into understandable components
Harmonic analysis provides a reusable mathematical language for many cyclic systems beyond the ocean.
What Mathematics Does Not Do
A tide table does not predict storm surge by itself.
It does not make local bathymetry permanent.
It does not guarantee a harbour’s currents turn exactly at high or low water.
It does not eliminate gauge error.
It does not make sea-level rise irrelevant.
It does not replace navigational judgement or official harbour guidance.
And a precise astronomical prediction should never be mistaken for a precise prediction of total coastal flooding during severe weather.
Frequently Asked Questions
Why are tides later each day?
The Moon moves eastward in its orbit while Earth rotates. A location on Earth needs roughly another 50 minutes to realign with the Moon, so lunar-dominated tides occur later from one day to the next.
What is a harmonic constituent?
It is a periodic component of the tidal signal associated with a particular astronomical or shallow-water frequency, represented by a local amplitude and phase.
What are M2 and S2?
M2 is the principal lunar semidiurnal constituent, with period about 12 hours 25 minutes. S2 is the principal solar semidiurnal constituent, with a 12-hour period.
What causes spring and neap tides?
Major lunar and solar tidal constituents alternately reinforce and partially cancel as their phases change, creating a roughly fortnightly modulation of tidal range.
Why can actual water differ from the tide table?
Wind, atmospheric pressure, waves, river flow, ocean circulation and other meteorological or hydrodynamic effects alter observed water level beyond the astronomical tide.
Sources and Further Reading
- NOAA Tides & Currents, About Harmonic Constituents, explaining the astronomical cycles, 37 commonly used constituents, cosine representation and prediction formula.
- NOAA Tides & Currents harmonic-constant station pages, providing constituent amplitude, phase and speed derived from observed records.
Continue Through eduKateSG
Continue with How Mathematics Works. This article connects to Making Digital Pictures Smaller Without Losing What Matters, where transforms again rewrite complicated data as simpler frequency components, and to Predicting a Flood Before the River Reaches the Street, where water-level prediction must combine deterministic cycles with uncertain weather and flow.
Final Thought: The Tide Looks Like the Sea Remembering the Moon
The Moon moves.
Earth turns.
The Sun shifts relative to both.
Thirty-seven important cycles overlap.
The harbour bends them.
Shallow water distorts them.
A gauge records the result.
Mathematics separates the waves.
Measures their strength.
Measures their delay.
Then adds them forward into tomorrow.
And before the sea reaches the harbour wall, someone already knows approximately when it will be highest.
That is Mathematics turning celestial rhythm into local time.