Pierre de Fermat (17 August 1601 or 1607/8 – 12 January 1665) is a French lawyer at the Parlement of Toulouse, France, and an amateur mathematician who is given credit for early developments that led to infinitesimal calculus.
In particular, he is recognized for his discovery of an original method of finding the greatest and the smallest ordinates of curved lines, which is analogous to that of the then unknown differential calculus, as well as his research into the theory of numbers.
He makes notable contributions to analytic geometry, probability, and optics.
He is best known for Fermat's Last Theorem, which he describes in a note at the margin of a copy of Diophantus' Arithmetica.