The Fourier method for tri-atomic systems in the search for the optimal coordinate system