How tides work. Part Two - Dynamic theory