There are many reasons why people call math beautiful. To most, this adjective would be the last they would use to describe math: how can something so cold and logical contain beauty? Obviously this is a very subjective topic so all I can do is try and convey why I think it is beautiful.

“Life is not complex. We are complex. Life is simple, and the simple thing is the right thing.”

Oscar Wilde

In many ways, both philosophically and literally, math is a mirror of life. Some of my favourite mathematics comes from seemingly simple problems that hide a lot of complexity. In life, we tend to ignore ‘simple’ questions and move on to ‘harder’ or ‘more practical’ problems. At some stage in your life, you have probably wondered ‘who am I?’ and ‘why am I here?’. Do you spend much time trying to answer these now? Or do you just get on with your life? These questions are extremely simple ones to ask, yet to answer them is extremely difficult. We are often made to feel like these questions are not worth spending time on. Thankfully the situation in mathematics is very different: a lot of beautiful mathematics has come from actually taking the time to answer some ‘simple questions’.

Let’s start with some simple mathematics and see where it leads us. One of the first real bits of mathematics that people learn is Pythagoras’ theorem. This theorem tells us how the sides of a right-angled triangle are related: the square of the hypotenuse is equal to the sum of the squares of the other two sides.

Most people remember the formula . If I give you two of the side lengths, this formula lets you work out the third. Most of the time, picking values for and give you ‘terrible’ numbers for . For example, if , then and is irrational (yuck!). But sometimes things work out much nicer. For example, if and , then ! There are other whole number solutions as well. For example, , and . These nice solutions are called *Pythagorean triples*. A natural question to ask is: how many Pythagorean triples are there? This is a simple question to ask. It turns out that there are infinitely many whole number solutions to . In fact, with a bit of math, we can show that all Pythagorean triples can be written as , , and (up to similarity of triangles) for whole numbers and . For example, if we pick and we get the Pythagorean triple . Picking other values for and gives us other Pythagorean triples and *all* Pythagorean triples can be found this way! This gives us a complete answer to our first ‘simple’ question, but there is a fair bit of math behind the solution to this problem. Having said that, you learn all the tools to answer this question in high-school but it would take some creativity to come up with this yourself!

“Simplicity is the greatest adornment of art.”

Albrecht Durer

We are now going to tweak this question slightly and see what happens. Notice that the two smallest numbers of the Pythagorean triple differ by 1. Our question is: are there other Pythagorean triples with this property and if so, how many? The answer to the first part of this question is yes: the triple is another example. In order to systematically generate more examples, we will use our answer to the first question. We know that the two smallest numbers of a Pythagorean triple have to be of the form and for some numbers and . For these to differ by one means that

Using some high-school algebra, we can write this as . If we let $x=m-n$, then we can write this as . This is a very famous equation called Pell’s equation. It takes a lot more sophistication to solve this equation in whole numbers and it is intimately related to algebraic number theory (something you probably won’t see in high-school). This is a big step up from our previous problem, but it turns out that the solutions to this Pell equation can be found by looking at . The can be written as a continued fraction in the following way:

To get exactly , you must continue the fraction indefinitely. However, chopping off the continued fraction early gives us a fraction which is a good approximation of . Surprisingly, the numerator and denominator of these fractions are solutions to Pell’s equation! For example, if we chop the fraction off after the second 2 we get

and . Using this solution to Pell’s equation, we get the solution , to our original problem. This gives us the Pythagorean triple , , and we can see that the smallest two numbers differ by 1! Using this process, we can generate infinitely many Pythagorean triples with this property.

It’s amazing that such a slight change to the question can produce such a huge change in how we answer it. To fully understand Pell’s equation requires a lot of advanced mathematics and it has surprising links to other areas of math. Despite this, the actual problem itself can be understood by a high-school student. This is our first glimpse at simple problems leading to complex, underlying mathematics.

We are going to make one final tweak to our problem. This last tweak will take us to the cutting edge of mathematics! The solution to our first problem showed us that there were infinitely many whole number solutions to the equation . Our last simple question is: what happens if we change the power from 2 to some other number? For example, are there any whole number solutions to or ? To put it more precisely: are there any whole number solutions to the equation for ? This is one of the most famous questions in mathematics and was originally asked by Pierre de Fermat in 1637. Fermat believed that the answer to this question was that there are *no *solutions to this equation. He also believed that he could prove this and left a message in the margin of one his textbooks claiming he had a proof. The problem has since been known as Fermat’s last theorem.

“Always try the problem that matters most to you.”

Andrew Wiles

It is unlikely that Fermat actually had a valid proof of this theorem: it took 358 years for mathematicians to confirm that Fermat was right in 1995. The proof requires a huge amount of mathematical machinery from many different areas: algebraic number theory, representation theory, group theory, geometry, and analysis. The beauty of this problem however is that it draws on all of these fields. In fact, this problem was the driving force behind the development of algebraic number theory and led to many other interesting discoveries and ideas. One of the main ingredients in the proof of Fermat’s last theorem were elliptic curves. These amazing objects appear in a number of areas of mathematics and are connected to some extremely surprising math (see monster moonshine, for example). It’s mind-boggling that such a simple tweak to Pythagoras’ theorem could lead to some of the most amazing objects in mathematics! It certainly shows the power of pursuing ‘simple’ questions.