A lawyer for whom mathematics was an avocation, Pierre de Fermat was instrumental in the origins of calculus. In 1637, both Fermat and René Descartes published explanations of analytic geometry.