Contact FutureLearn for Support
Skip main navigation
We use cookies to give you a better experience, if that’s ok you can close this message and carry on browsing. For more info read our cookies policy.
We use cookies to give you a better experience. Carry on browsing if you're happy with this, or read our cookies policy for more information.
Pierre Fermat, a great French mathematician
Pierre de Fermat

Fermat and Diophantine equations

We have seen that linear equations like correspond to lines, and second degree equations like correspond to conic sections. In the 17th century, mathematicians asked: what do third degree equations look like? These equations arose with Fermat’s work on a famous problem from number theory and were also studied by Descartes and Newton.

In this step, we will

  • learn about squares, cubes, and Fermat’s last theorem

  • get some experience for what general cubic curves look like

  • see that the special case of a cubic function is quite a lot simpler.

Squares and cubes

Squares are natural numbers of the form where is an integer. They are

Recall that a Pythagorean triple occurs when two squares sum to a third square, such as the famous relation

But there are many other examples, such as or . In fact there are an unbounded number of Pythagorean triples — a beautiful fact that was already known to Euclid around 300 BC, and probably to the Babylonians 1500 years earlier!

Q1 (E): What are some other Pythagorean triples that you can find just in the list of squares we have given up to ?

Cubes are the natural numbers of the form where is an integer. They are

They grow much more quickly than the squares. A natural question is: can we find a “Pythagorean triple” of cubes where two of them add up to the third?

We can restate this famous question in the form: can we find solutions to the equation

with natural numbers ? And it might be useful to remind you that rational numbers are just another word for fractions, but possibly positive or negative, or zero.

Sums of cubes, and Fermat’s last theorem

In fact there are no such triples of numbers! This was stated by Fermat (1601 - 1665) as a challenge to his fellow mathematicians, and proved by Leonhard Euler in 1770. This kind of polynomial equation, where we are looking for natural number solutions, is called a Diophantine equation, after the mathematician Diophantus of Alexandria who lived in the fourth century, roughly 310 to 390 AD. It was a favourite topic for Fermat.

Remarkably though, we can find four cubes that have the sum property:

Fermat’s question extends to a much more ambitious claim: that in fact for any natural number strictly greater than , there are no natural number solutions to the equation

So the quadratic situation when is very different from all higher cases. This problem — called Fermat’s last theorem because Fermat famously claimed he had a proof but did not write it down — was one of the most famous unsolved problems in mathematics until 1994, when it was settled by Andrew Wiles and Richard Taylor. Perhaps ironically, cubic curves played a big role in this work.

Cubic curves and number theory

Cubic curves have some remarkable features, with deep and somewhat mysterious number theoretical properties. One of the first studied was the Fermat curve , which is a cubic analog of the unit circle , although it looks quite different.

Q2 (E): Find some points on the Fermat curve .

This curve is intimately connected with Fermat’s question about sums of cubes.

Q3 (C): What is the connection between Fermat’s number theory problem and the cubic curve ?

Graph of x^3+y^3=1 together with x^2+y^2=1

Descartes and Newton

Fermat was not the only 17th century mathematician who became interested in cubic curves. Descartes studied what is now called the Folium of Descartes, the curve with equation

Graph of y^3+x^3+3xy=0, which has a single loop in it, crossing over itself at the origin

Isaac Newton tried to organise cubics like the ancient Greek classification of conics into ellipses, parabolas and hyperbolas. He found 72 kinds of cubic curves, and he actually left out a few which were found some years later by other researchers.

Here you can have a look at Newton’s work: although it helps if you can read Latin, which was the common scientific language of the 17th century!

Newton’s list of cubics

Some examples of cubic curves

Let’s have a look at some cubic curves. Here is the graph of

Graph of y^2=x^3, which increases for x>0 and is symmetric about the x-axis

which is rather remarkably different from a conic — for example it has a pointy part where two different curves meet together: this is called a cusp. But if we change the equation somewhat, we get quite different possibilities:

Graph of y^2=x^3-x, which is made of 2 curves - a small circle straddling the negative x-axis and a curve that increases for x>0 and is symmetric about the x-axis

And here is a more random cubic

Graph of x^3-x^2y+y^2-4x=5, made of 2 strange curves

where things appear even stranger. If you have GeoGebra or Desmos, you might like to play around with inputting some random cubic polynomials, and seeing what the graphs look like.

Cubic functions are much simpler!

However once we adopt a function point of view, and require our curve to have the form for a cubic polynomial , the possibilities become very much simpler. The simplest such cubic function is

Graph of y=x^3, which intersects the origin and has negative values for x<0 and positive values for x>0.

Here is a more general cubic

Graph of y=x^3-x^2-2x+3, which smoothly rises, falls, and rises again, intersecting the y-axis at y=3

Notice that it exhibits an up, down, then up shape as we view it left to right. If the sign of the leading coefficent is changed, then we would see down, up, then down instead. The pure power is something of an exception – its graph just goes up!


A1. Let us know in the comments what you found.

A2. Quickly plugging the values into the equation shows and lie on the curve. In fact these are the only rational points on the curve!

A3. If are natural numbers greater than zero satisfing , then

which means that and are rational numbers such that the point lies on the curve . So this gives a connection between natural number triples satisfying the Diophantine equation and rational points on the cubic Fermat curve.

Share this article:

This article is from the free online course:

Maths for Humans: Inverse Relations and Power Laws

UNSW Sydney