Reply to comment

Decoding Da Vinci: Finance, functions and art

Fibonacci

Fibonacci (ca 1170 – ca 1250).

Dan Brown in his book, The Da Vinci Code, talks about the "divine proportion", an irrational number given the Greek symbol $\phi $, as having a "fundamental role in nature". Brown’s ideas are not completely without foundation. The proportion crops up in the mathematics used to describe the formation of natural structures like snail’s shells and plants, and even in Alan Turing’s work on animal coats.

But Dan Brown does not talk about mathematics, he talks about a number, $\phi =1.618...$. What is so special about this number?

From rabbits to ratios

The divine proportion appears in Fibonacci's 1202 book on financial mathematics, the Liber Abaci. The Liber is a series of increasingly difficult problems (with solutions) that generations of apprentice merchants used to learn their trade in the middle ages. It was the textbook that taught Copernicus, who wrote about money before he wrote about planets, and Simon Stevin (1548 – 1620), who made mathematics useful and helped free the Netherlands from Spain.

One of the simpler problems Fibonacci used was on the business of breeding rabbits. Given that one pair of rabbits produces one other pair of rabbits a month, how many rabbits will there be after a year, assuming that we start with one pair?

The model Fibonacci is using is that a pair of rabbits take a month to become mature. They then mate and the rabbit pregnancy lasts a month. So:

At the start (month zero): There is one pair of immature rabbits.

First month: The pair mature and mate.

Second month: A new pair is born to the original pair, so there are two pairs.

Third month: The original pair parent a new pair, the second pair reach maturity. In total there are three pairs.

Fourth month: The original and second pair have offspring, the third pair reach maturity. In all there are five pairs.

rabbits

How many will there be in a year?

Carrying on this rule, Fibonacci calculated the number of rabbits at the start of each month as

Month0123456789101112
Pairs1123581321345589144233

This is the famous Fibonacci sequence. Each number in the sequence is calculated by adding together the preceding two numbers, for example the numbers after 233 would be 144 + 233 = 377 and then 233 + 377 = 610. What medieval merchants realised is that as you move along the sequence, the ratio of successive numbers approaches a number which had already been known to the ancient Greeks: the golden ratio.

The golden ratio first appears in proposition 30 of book VI of Euclid's Elements. Written around 300BC the Elements is the oldest maths text book and it is also the most influential one ever produced.

In book VI Euclid solves the problem of dividing a line up such that the ratio of the longer segment to the whole line is equal to the ratio of the smaller segment to the longer segment. For example, if we have a line of length $a + b$ where the length $a$ is bigger than the length $b$, we want

  \[ \frac{a+b}{a}=\frac{a}{b}. \]    

We use the symbol $\phi $ to define this golden ratio.

It is quite easy to see that the golden ratio is the limit of successive ratios in Fibonacci's sequence (see here).

But Euclid’s golden ratio is also Brown’s divine proportion. To see this, remember we have defined $\displaystyle \phi =\frac{a}{b}$ and so $a =\phi b$. Now substitute this into the original expression

  \[ \frac{\phi b+b}{\phi b}=\frac{\phi b}{b}. \]    

Cancelling the $b’s$ gives

  \[ \frac{\phi + 1}{\phi }=\phi  \]    

or

  \[ \phi ^2-\phi -1=0. \]    

The positive solution to this equation is

  \[ \phi =\frac{1+\sqrt {5}}{2}\approx 1.610339887... . \]    

Euclid would not have, could not have done this calculation, not least because the Greeks did not use decimals. Euclid would have tackled the problem in a different way. The equation

  \[ \phi ^2-\phi -1=0 \]    

can be re-arranged to give

  \[ \phi =1+\frac{1}{\phi }. \]    

Now, the denominator on the right is the same as the left hand side of the equality, so

  \[ \phi =1+\displaystyle \frac{1}{1+\displaystyle \frac{1}{\phi }} \]    

and again, and again, ...

  \[ \phi =1+\frac{1}{1+\displaystyle \frac{1}{1+\displaystyle \frac{1}{1+\displaystyle \frac{1}{\phi }}}}. \]    

Continuing in this way gives you an infinite expression involving only 1’s.

Euclid

The man with the compass in Raphael's painting The school of Athens is believed to represent Euclid.

A number written in this way is called a continued fraction. The Greeks sometimes used continued fractions to write down non-integers. Euclid would have realised that $\phi $ was irrational (or incommensurable as he would have put it) because it never ended. What is more, it is a continued fraction made up only of 1’s.

This is why the Da Vinci Code is so ridiculous. If Robert Langdon, the book’s hero, was such an expert on symbols he would never present $\phi $ as a meaningless decimal, but as a continued fraction made up only of 1s. Why? Because 1 was highly symbolic to Christians as it represented the "one God". This is why the golden ratio is divine, because it is god’s number, not because there is a natural or super-natural significance of the ratio

$\displaystyle \frac{a+b}{a}=\frac{a}{b}.$

Finding the right perspective

There is an important aspect to this criticism of The Da Vinci Code. One of the significant features of mathematicians is their ability to look at things in different ways.

As an example consider any number, for example $\displaystyle 5\frac{93}{240}.$ There are many ways of writing it. Fibonacci would have written it as a composed fraction:

  \[ \frac{9 \; \; \;  7}{12 \; \; \;  20 }5. \]    

This stands for

  \[ \frac{9}{12 \times 20}+\frac{7}{20}+5. \]    

As a continued fraction it is:

  \[ 5+\frac{1}{2+ \displaystyle \frac{1}{1+ \displaystyle \frac{1}{1+ \displaystyle \frac{1}{2+ \displaystyle \frac{1}{1+ \displaystyle \frac{1}{1+\displaystyle \frac{1}{2 }}}}}}}. \]    

In decimal notation, popularised by Stevin, it is

  \[ 5.3875. \]    

The craft of mathematics is essentially one of picking the best method in a particular circumstance. The history of mathematics is dominated by people who have come up with innovative solutions by changing the way problems are looked at. One of the most important examples is Newton’s approach to functions. Newton took his inspiration from decimal numbers. The digits to the right of the decimal point represent multiples of successive powers of $\frac{1}{10}$. What we really mean when we write 5.3875 is

  \[ 5+3\left(\frac{1}{10}\right)+8\left(\frac{1}{10}\right)^2+7\left(\frac{1}{10}\right)^3+5\left(\frac{1}{10}\right)^4+0\left(\frac{1}{10}\right)^5+... \]    

Newton wondered whether a similar approach could be taken with mathematical functions of a variable $x.$ Could they be written in terms of powers of $x$? He realised that a fraction of the form

  \[ \frac{a^2}{b+x} \]    

could we written as

  \[ \frac{a^2}{b+x}=a^2\frac{1}{b}-a^2\frac{x}{b^2}+a^2\frac{x^2}{b^3}-a^2\frac{x^3}{b^4}+a^2\frac{x^4}{b^5}-... \]    

(You can work this out using long division in a similar way as you work out the decimal expansion from a fraction.)

Using an ancient technique for finding square roots, Newton also worked out that

  \[ \sqrt {1+x^2}=1+\frac{x^2}{2}-\frac{x^4}{8}+\frac{x^6}{16}-\frac{x^8}{128}+... \]    

In general, Newton supposed that any function could be written as a power series,

  \[ f(x)=a_0+a_1x+a_2x^2+a_3x^3+... \]    

If the series was finite the function was analogous to a rational number, if it was infinite it was, in a sense, irrational. The branch of mathematics known as functional analysis was born.

The golden ratio and art

rhombicuboctahedron

This is a rhombicuboctahedron, by Leonardo da Vinci, from De divina proportione.

The golden ratio, or divine proportion, is most famous in an artistic context. This association with art comes from Leonardo da Vinci and the Franciscan friar, Lucca Pacioli, who produced a book, De divina proportione ("The divine proportion") together at the end of the fifteenth century. The book was written by Pacioli, the mathematician, and discusses the idea of perspective, the use of mathematics in architecture and the five perfect solids that were central in Greek thought. Leonardo, who had trained as a painter, illustrated the book and after studying mathematics with Pacioli, Leonardo went on to study engineering and anatomy, establishing a reputation today as something of a scientist. The collaboration between one of Europe's most famous artists and a some-time financial mathematician might seem odd, but in fact, it was through art Pacioli learnt his mathematics, which is odder.

Pacioli had been born in the small town of Borgo San Sepulcro, about 80 kilometres east of Florence, in 1446 and was taught the skills to become a merchant in an abaco school, based on the mathematics in the Liber Abaci. When he was around twenty he moved to Venice and worked for a wealthy merchant, certainly as tutor to his sons and possibly as his bookkeeper. In 1470 he moved to Rome and at some point in the next five years he became a Franciscan, which enabled him to work in universities. He started teaching mathematics privately, and then, between 1478–1480, at the University of Perugia. Between 1481 and 1489 he was again an itinerant maths teacher until he returned to San Sepulcro to write his most important book, the abaco textbook, Summa de arithmetica, geometria, proportioni et proportionalita ("Work on arithmetic, geometry and proportion"), which was published in Venice in 1494. In 1497 Pacioli was invited to Milan by its powerful ruler, Duke Lodovico Sforza, and it was Sforza's service that Pacioli met another of the Duke's employees, Leonardo.

Pacioli's home-town of Borgo San Sepulcro is more famous as the home of one of the Renaissance's most important painters, Piero della Francesca, famous for his use of perspective, such as in his painting The flagellation of Christ. Della Francesca had been born into a merchant family and between 1445 and 1460 was working on an altar piece for the church of San Sepulcro, Madonna della Misericordia. It is inconceivable that the young Pacioli did not know della Francesca, but scholars also believe the artist, who in 1470 published Trattato d'Abaco ("Abaco treatise"), had taught the Pacioli financial mathematics. De divina proportione, a collaboration between a financial mathematician and an artist, is sometimes seen as just an Italian translation of Piero's work Libellus de Quinque Corporibus Regularibus ("Short Book on the Five Regular Solids"). Today, we associate the divine proportion with Leonardo, but it probably came to him from Pacioli, who in turn learnt it from the financial mathematician-cum-artist, Piero della Francesca. Truth is sometimes more amazing than fiction.


Further reading


About the author

Tim Johnson was the RCUK Academic Fellow in Financial Mathematics between 2006-2011, during the credit crisis, and is active in promoting the sensible use of mathematics in finance, highlighting the need for more research into mathematics in order to better understand random and complex environments. He is based at Heriot-Watt University and the Maxwell Institute for Mathematical Sciences in Edinburgh. He teaches modern financial mathematics and undertakes research in stochastic optimal control and the rich history of the relationship between finance and science. Prior to becoming an academic, he worked for sixteen years in the oil exploration industry.

You can read more about probability and financial mathematics on Tim's blog Magic, maths and money.

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

To prevent automated spam submissions leave this field empty.
By submitting this form, you accept the Mollom privacy policy.