The Dynamical Theory of the Tides in a Polar Basin