The idea of this system was developed in 1637 in two writings by Descartes . The idea of this system was developed in 1637 in two writings by Descartes and independently by Pierre de Fermat , although Fermat used three dimensions , and did not publish the discovery .