The Code


The Code

Similar Content

Browse content similar to The Code. Check below for episodes and series from the same categories and more!

Transcript


LineFromTo

As a mathematician, I see the world differently.

0:00:190:00:22

POOL BALLS CLICK

0:00:220:00:24

Numbers, shapes, and patterns are everywhere.

0:00:240:00:29

Together, they make up a hidden mathematical world,

0:00:290:00:31

a code that has the power to reveal the inner workings

0:00:310:00:35

of life, the universe, and everything.

0:00:350:00:39

Here in California, beekeeper Steve Godlin is taking me

0:00:520:00:56

to see one of the greatest mysteries in nature.

0:00:560:01:00

That's one of the wonders of the natural world.

0:01:060:01:09

It's beautiful!

0:01:090:01:10

-This almost looks man-made, manufactured.

-Yeah.

0:01:120:01:15

It doesn't look like something from the natural world.

0:01:150:01:18

The precision, the fine straight lines they've created.

0:01:180:01:23

The bees' honeycomb is a marvel of natural engineering.

0:01:230:01:26

It's a place to raise their young, and to store their food,

0:01:260:01:30

and it's all made from wax,

0:01:300:01:33

a substance that takes a huge amount of energy

0:01:330:01:35

for them to produce.

0:01:350:01:38

Every cell is identical.

0:01:400:01:42

Six walls, all the same length,

0:01:420:01:46

meeting at exactly 120 degrees.

0:01:460:01:50

The cross section is a perfect six-sided polygon,

0:01:500:01:54

the hexagon.

0:01:540:01:56

With a myriad of natural shapes to choose from,

0:01:570:02:00

why have the bees selected

0:02:000:02:02

this complex geometric structure?

0:02:020:02:05

The answer comes from the bees' need to economise.

0:02:070:02:12

The problem they have to solve is how to create their comb,

0:02:200:02:24

using as little precious wax as possible.

0:02:240:02:26

If they want to produce a network of regular shapes,

0:02:280:02:31

which fit together neatly,

0:02:310:02:34

them you really only have three options.

0:02:340:02:36

You can do equilateral triangles,

0:02:360:02:39

or you could do squares,

0:02:390:02:41

or you can do the bees' hexagons.

0:02:410:02:43

But why, of those three, does the bee choose the hexagons?

0:02:430:02:48

It turns out that the triangles actually use much more wax

0:02:480:02:53

than any of the other shapes.

0:02:530:02:55

Squares are a little better.

0:02:550:02:57

But it's the hexagons that use the least amount of wax.

0:02:570:03:00

It took human mathematicians until 1999 to prove the hexagonal array

0:03:000:03:07

was the most efficient possible solution to this problem.

0:03:070:03:10

Yet, with a little help from evolution,

0:03:120:03:15

the bees worked it out for themselves millions of years ago.

0:03:150:03:19

Perfect hexagons!

0:03:190:03:22

It's easy to see why the hexagon is important to the bees.

0:03:220:03:25

But how on earth do these hard-working creatures,

0:03:250:03:28

with a brain smaller than a sesame seed,

0:03:280:03:30

create the shapes with such precision?

0:03:300:03:34

For that, we need to have a look

0:03:340:03:37

at some of the laziest structures around.

0:03:370:03:40

The soap bubble reveals something fundamental about nature.

0:03:480:03:51

It's lazy. It tries to find the most efficient shape,

0:03:510:03:54

the one using the least energy,

0:03:540:03:56

the least amount of space.

0:03:560:03:58

The sphere is one surface, no corners, infinitely symmetrical.

0:04:000:04:04

When bubbles are on their own, they always try to be spheres,

0:04:100:04:13

but when you start packing them together, their geometry changes.

0:04:130:04:19

The bubbles are incredibly dynamic.

0:04:230:04:26

They're always trying to assume the most efficient shape.

0:04:260:04:31

The one that uses the least energy.

0:04:310:04:34

But if we make each of the bubbles the same size,

0:04:340:04:39

a rather magical shape starts to appear.

0:04:390:04:41

The hexagon.

0:04:510:04:52

This leaves the bees with a very simple way to build their honeycomb.

0:04:530:04:59

All they need to do is build a cylinder of wax,

0:04:590:05:02

and nature will do the rest.

0:05:020:05:04

It's thought that the wax, warmed by their bodies,

0:05:050:05:09

pulls itself into the most efficient configuration.

0:05:090:05:12

When we see that pattern at the heart of the beehive,

0:05:140:05:20

it is, in fact, echoing some of the fundamental laws of the universe.

0:05:200:05:24

This drive to efficiency can be seen written throughout nature.

0:05:260:05:31

It's this hidden geometric force

0:05:350:05:38

that makes the world the shape it is.

0:05:380:05:40

At the heart of the mathematical world, lie numbers.

0:06:100:06:13

They give us the power to describe, measure,

0:06:130:06:17

and count everything in the universe.

0:06:170:06:19

But, numbers aren't always what they seem.

0:06:240:06:26

Take, for example, negative numbers.

0:06:280:06:31

It's impossible to trade anything, stocks, shares, currency,

0:06:330:06:37

even fish, without negative numbers.

0:06:370:06:40

Most of us are comfortable with them.

0:06:400:06:42

Even though we may not like it,

0:06:420:06:44

we understand what it means to have a negative bank balance.

0:06:440:06:48

But, when you start to think about it,

0:06:480:06:50

there's something deeply strange about negative numbers.

0:06:500:06:53

They don't seem to correspond to anything real at all.

0:06:530:06:58

The deeper we look into the mathematical world of numbers,

0:07:000:07:03

the weirder it becomes.

0:07:030:07:05

It's easy to imagine one fish,

0:07:110:07:13

or two fish,

0:07:130:07:15

or no fish at all.

0:07:150:07:16

It's much harder to imagine what minus one fish looks like.

0:07:160:07:21

Negative numbers are so odd that, if I have minus one fish,

0:07:210:07:24

and you give me a fish,

0:07:240:07:25

all you can be certain of is that I've got no fish at all.

0:07:250:07:30

The strange, and powerful thing about numbers,

0:07:320:07:36

is that they can exist in the mathematical world,

0:07:360:07:38

whether or not they seem to make sense in the real world.

0:07:380:07:42

Some numbers are so strange,

0:07:450:07:47

they seem to defy even the laws of mathematics.

0:07:470:07:51

This is one of the most basic facts of mathematics.

0:07:540:07:58

A positive number, multiplied by another positive number

0:07:580:08:01

is a positive number.

0:08:010:08:03

For example, one

0:08:030:08:05

times one

0:08:050:08:07

is one.

0:08:070:08:08

A negative number, multiplied by another negative number,

0:08:080:08:12

also gives a positive number.

0:08:120:08:14

Whenever the signs are the same, the product is always positive.

0:08:140:08:20

However, in the code,

0:08:200:08:22

there's a special number which breaks this rule.

0:08:220:08:25

When I multiply it by itself, it gives the answer minus one.

0:08:250:08:29

This isn't a number I can calculate.

0:08:290:08:32

I can't show you this number.

0:08:320:08:33

Nevertheless, we've given this number a name. It's called "i",

0:08:330:08:37

and it's part of a whole class of numbers called imaginary numbers.

0:08:370:08:42

Introducing these strange new numbers into mathematics

0:08:420:08:46

required an act of the imagination.

0:08:460:08:48

But, despite their strange properties,

0:08:510:08:54

they turn out to have some very practical applications.

0:08:540:08:57

Air traffic control relies on radar to track planes accurately

0:09:080:09:11

during their passage through the air.

0:09:110:09:15

Complex computation is required to decode these signals,

0:09:150:09:19

and distinguish moving objects, like planes,

0:09:190:09:21

from the stationary background.

0:09:210:09:23

CONTROL TOWER CHATTER

0:09:230:09:25

At the heart of that analysis lies i,

0:09:260:09:30

the number that cannot exist.

0:09:300:09:32

You could do these calculations with ordinary numbers.

0:09:340:09:37

But they're so cumbersome, by the time you've done the calculation,

0:09:370:09:41

the plane's moved to somewhere else.

0:09:410:09:42

Altitude 6,000, on a squawk of 7715.

0:09:420:09:47

Using imaginary numbers makes the calculation so much simpler.

0:09:470:09:50

You can track the planes in real time.

0:09:500:09:53

In fact, without them,

0:09:530:09:54

radar would be next to useless for air traffic control.

0:09:540:09:57

Although i is an imaginary number,

0:10:030:10:05

I trust my life to it, every time I get in an aeroplane.

0:10:050:10:08

As strange as it may seem, that's because even the so-called

0:10:110:10:15

imaginary bits of mathematics can be used to explain, control,

0:10:150:10:19

and accurately predict the real world.

0:10:190:10:22

You might think that catching criminals is all about

0:10:440:10:47

finding physical evidence.

0:10:470:10:49

Fingerprints, DNA.

0:10:490:10:51

But, even when these clues aren't available,

0:10:510:10:56

a mathematical fingerprint is left behind.

0:10:560:10:59

In 1888, the most notorious serial killer of all,

0:11:020:11:06

Jack the Ripper, murdered five women in London's East End.

0:11:060:11:10

He was never caught.

0:11:100:11:12

Kim Rossmo has 20 years' experience as a detective inspector,

0:11:150:11:18

and he specialises in catching serial killers.

0:11:180:11:22

Although very rare, these criminals are notoriously hard to track down,

0:11:250:11:30

because they often murder strangers

0:11:300:11:33

in locations they have no obvious connection to.

0:11:330:11:36

It's very common,

0:11:360:11:37

in the investigation of a serial murder case,

0:11:370:11:39

to have hundreds, thousands, even tens of thousands of suspects.

0:11:390:11:43

It's a needle in a haystack problem.

0:11:430:11:45

But Rossmo is no ordinary cop.

0:11:470:11:50

Because he's a brilliant mathematician,

0:11:500:11:53

and uses numbers to understand the patterns criminals leave behind.

0:11:530:11:58

There's logic in how offenders hunt the victim,

0:11:580:12:01

and where they commit the crime.

0:12:010:12:02

If we can decode that, and if we can understand that pattern,

0:12:020:12:06

we can use that information to help us focus a criminal investigation.

0:12:060:12:09

To this day, no-one has been able to identify

0:12:090:12:13

just who Jack the Ripper was, or where he lived.

0:12:130:12:17

But, based purely on the locations the murders took place,

0:12:170:12:22

Rossmo thinks he COULD have tracked him down.

0:12:220:12:24

Because he's noticed patterns in criminal behaviour

0:12:240:12:28

that are as distinctive as a fingerprint.

0:12:280:12:31

And he turned them into a mathematical formula,

0:12:310:12:34

based on probability.

0:12:340:12:36

This formula calculates the likelihood

0:12:390:12:43

that a criminal lives at a specific location,

0:12:430:12:45

based solely on where the crimes took place.

0:12:450:12:49

The first half models what's known as "the least effort principle".

0:12:520:12:57

Inherently, we're all lazy,

0:12:570:12:58

and criminals just as much as anyone else.

0:12:580:13:01

They want to accomplish their goals closer to home,

0:13:010:13:04

rather than further away.

0:13:040:13:05

The probability gradually decreases

0:13:050:13:08

the further you get from the crimes.

0:13:080:13:10

The second half of the equation

0:13:130:13:15

describes something called "the buffer zone".

0:13:150:13:18

Criminals avoid committing crimes too close to home,

0:13:180:13:22

for fear of drawing attention to themselves.

0:13:220:13:24

It's the interaction of these two behaviours

0:13:270:13:30

that allows Rossmo to calculate the most probable location

0:13:300:13:33

of the criminal's home.

0:13:330:13:35

So, naturally, I was very interested in what would happen

0:13:360:13:40

if I entered the locations of the five linked crimes

0:13:400:13:43

into the equation.

0:13:430:13:46

With a computer programme based on his formula, Rossmo is creating

0:13:470:13:51

a geographic profile to show the hotspots where the Ripper

0:13:510:13:55

was most likely to have lived.

0:13:550:13:57

It was this geographic profile that led us here,

0:14:040:14:08

to Flower & Dean Street.

0:14:080:14:10

Flower & Dean Street should have been the epicentre of their search.

0:14:100:14:15

Do you think if you'd been alive at the end of the 19th century,

0:14:160:14:20

and you'd had this equation, this guy might have been found?

0:14:200:14:24

Knowing what we know today of serial killers,

0:14:240:14:26

and with modern forensic techniques such as DNA,

0:14:260:14:29

I'm pretty sure Jack the Ripper WOULD have been caught,

0:14:290:14:32

if he was committing his crimes today.

0:14:320:14:35

We may never know the truth about Jack the Ripper,

0:14:350:14:39

but Rossmo's technique of geographic profiling

0:14:390:14:41

has been used time and time again to help police all over the world

0:14:410:14:45

narrow their search, from an entire city, to just a handful of streets.

0:14:450:14:50

And at its heart lies pure mathematics.

0:14:540:14:57

With the world's fish stocks under pressure, it's vital for us

0:15:170:15:21

to find out as much about their populations as we possibly can.

0:15:210:15:24

But with so many fish out there, it seems an impossible task.

0:15:250:15:29

Yet using mathematics, I can discover things

0:15:300:15:33

about the inhabitants of our oceans without even getting my feet wet.

0:15:330:15:38

I started fishing in Brighton in 1972.

0:15:440:15:47

Been a fisherman for 40 years, catching Dover sole.

0:15:470:15:51

That's the main target species for the English Channel.

0:15:530:15:57

Each time he goes out fishing,

0:15:570:15:59

Sam Brenchley catches Dover sole of all different shapes and sizes.

0:15:590:16:04

And by tapping into the power of mathematics, I can predict

0:16:060:16:09

a weight for the largest fish Sam has caught in his entire career.

0:16:090:16:14

All I need to do is get my hands on today's catch.

0:16:140:16:18

That's 180 grams.

0:16:260:16:28

'Even though I've only got a handful of fish,

0:16:280:16:31

'their weights will give me all the information

0:16:310:16:34

'I need for my prediction.'

0:16:340:16:37

She's back! Now using these numbers, I can calculate

0:16:370:16:41

that the largest one should be about 1.3 kg, which is roughly 3 lbs.

0:16:410:16:48

'I've not weighed a single fish anywhere near that size

0:16:480:16:53

'so let's see if I'm right.'

0:16:530:16:55

What's the largest Dover sole you've caught in your career?

0:16:550:16:59

We call them doormats, the large ones.

0:16:590:17:02

And...you maybe get four or five a season.

0:17:020:17:05

The largest I would say is 3 to 3.5 lbs.

0:17:050:17:09

It's always nice to catch big stuff, you know? Well, I think it is anyway.

0:17:090:17:14

So without ever getting my hands on one of these giant doormats,

0:17:200:17:24

just how did I work it out?

0:17:240:17:26

Now, the reason this compilation is possible is because the distribution

0:17:270:17:32

of the weights of fish, in fact the distribution of lots of things

0:17:320:17:35

like the height of people in the UK or IQ, is given by this formula.

0:17:350:17:41

This is the normal distribution equation

0:17:420:17:46

and it's one of the most important bits of mathematics

0:17:460:17:49

for understanding variation in the natural world.

0:17:490:17:52

And it describes the shape of a graph that pops up time

0:17:520:17:56

and time again throughout nature, the bell curve.

0:17:560:18:00

The area under the curve represents all the fish Sam's ever caught.

0:18:010:18:05

Most of them will be an average size.

0:18:070:18:10

The small tiddlers and large doormats are much less likely.

0:18:100:18:14

To put values to this graph, I just need two bits of information,

0:18:160:18:20

the mean shows me where the centre of the bell curve lies

0:18:200:18:24

and a standard deviation shows me the range of the weights.

0:18:240:18:28

I approximated both of these just by weighing Sam's catch.

0:18:280:18:33

Together, they allowed me to estimate values for all

0:18:330:18:36

the fish he's ever caught, from the smallest to the largest.

0:18:360:18:40

Knowing the weight of Sam's largest fish might not seem important.

0:18:440:18:48

But this technique allows us to discover things about all manner

0:18:480:18:52

of populations by measuring just a small sample.

0:18:520:18:56

And from biology to medicine and even engineering,

0:18:580:19:01

the bell curve gives us

0:19:010:19:03

the power to make predictions about our world and everything in it.

0:19:030:19:07

Right now, across the planet, people are unconsciously building

0:19:240:19:28

one of the largest databases in the world.

0:19:280:19:31

Every time we go online,

0:19:310:19:33

whether it's to check an e-mail or find something out,

0:19:330:19:37

we're all adding to an already overwhelming mass of information.

0:19:370:19:42

A random jumble of data about our inner thoughts, interests

0:19:420:19:45

and future plans.

0:19:450:19:47

Yet when we start to look closely at all this complexity,

0:19:500:19:54

surprising patterns begin to emerge...

0:19:540:19:57

..patterns that can reveal things about our future

0:19:580:20:01

and even save lives.

0:20:010:20:03

With over 91 million web searches a day,

0:20:060:20:08

Google have access to a constantly updating stream of information.

0:20:080:20:12

Our random search entries might seem useless at first

0:20:140:20:18

but they found ways to tap into this data.

0:20:180:20:21

Think of all the things people might search for on a daily basis.

0:20:210:20:25

Think of the things that YOU might search for on a daily basis.

0:20:250:20:29

You, I've searched for a couple of cities in Mexico

0:20:290:20:32

and films in Hackney today.

0:20:320:20:34

Lots of people may be searching for a similar thing,

0:20:340:20:38

movies and Hackney for example.

0:20:380:20:40

And you can see if you look at that query over the past three years,

0:20:400:20:43

what would the pattern of searches for that term look like?

0:20:430:20:48

Their researchers had a hunch

0:20:490:20:51

that if they could decode people's searches,

0:20:510:20:53

they'd be able to make predictions about the real world.

0:20:530:20:58

And they decided to test their theory

0:20:580:21:00

with the global killer influenza,

0:21:000:21:03

a virus that's responsible for hundreds of thousands

0:21:030:21:06

of deaths every year.

0:21:060:21:08

So, flu has a nice, seasonal pattern

0:21:100:21:12

and because it has that pattern every year, over many years,

0:21:120:21:17

we're able to take that trend and say

0:21:170:21:21

which search queries match that pattern.

0:21:210:21:25

Although flu tends to come back year after year,

0:21:250:21:28

it's very hard to predict exactly when and where it's going to strike.

0:21:280:21:32

If we knew, hospitals, doctors

0:21:320:21:35

and health organisations across the world could better prepare.

0:21:350:21:40

So the team analysed the pattern of every search term

0:21:410:21:45

in their database from the last five years,

0:21:450:21:47

looking for those that appeared more frequently during flu outbreaks.

0:21:470:21:51

And unsurprisingly, when people had flu,

0:21:510:21:54

there was an increase in flu-related searches.

0:21:540:21:57

So people were searching for things like symptoms

0:21:570:22:01

or medications or sore throat.

0:22:010:22:04

There are other things like complications.

0:22:040:22:07

But what no-one expected was that this correlation would be so exact.

0:22:100:22:15

Flu-related terms rose and fell perfectly in line

0:22:150:22:19

with real-life flu outbreaks.

0:22:190:22:21

There's an accurate data of flu activity based

0:22:210:22:24

on lots of people searching for these terms.

0:22:240:22:27

We were amazed by this finding.

0:22:270:22:30

This allowed them to build a model based solely on search terms

0:22:300:22:34

that could reliably detect and predict

0:22:340:22:37

the presence of flu epidemics in real time.

0:22:370:22:39

Google flu trends can spot an outbreak of flu before people

0:22:430:22:46

have even gone to the doctor.

0:22:460:22:50

Just 20 years ago, these kinds of predictions were unthinkable.

0:22:500:22:54

The data just didn't exist.

0:22:540:22:56

But flu trends proves that the vast quantity of seemingly random data

0:22:580:23:01

created by our increasingly connected lives isn't useless.

0:23:010:23:06

Using mathematics, we can make sense of it

0:23:060:23:09

and create tools with the power to save lives.

0:23:090:23:12

Mathematics reveals itself in some spectacular ways,

0:23:340:23:38

from the bees' honeycomb

0:23:380:23:41

and the hexagonal snowflake

0:23:410:23:43

to these remarkable salt crystals.

0:23:430:23:46

But these are the rare exceptions.

0:23:490:23:52

Most of the natural world is complex and seems random.

0:23:520:23:57

It's hard to believe that we could use mathematics

0:23:570:24:01

to explain all this apparent chaos.

0:24:010:24:03

But even things that look disordered like these trees

0:24:080:24:12

do have a hidden mathematical order.

0:24:120:24:14

Now the reason the tree makes this shape

0:24:170:24:20

is because it wants to maximise the amount of sunlight it gets.

0:24:200:24:23

Very clever but also very simple

0:24:230:24:26

because you just need one rule to create this shape.

0:24:260:24:28

And it's easy to demonstrate this rule using computer graphics.

0:24:300:24:34

Grow a bit, then branch. Grow a bit, then branch.

0:24:360:24:40

Repeat this one rule time and time again and before our eyes,

0:24:410:24:46

a mathematically-perfect tree appears.

0:24:460:24:49

And allow for some natural variations, different seasons,

0:24:520:24:56

the wind and occasional accidents,

0:24:560:24:58

and the result is a very real looking tree.

0:24:580:25:02

You can imagine this rule repeating itself for ever,

0:25:060:25:09

branching into infinity.

0:25:090:25:11

In the 1970s, French mathematician Benoit Mandelbrot

0:25:160:25:20

set about studying these hypnotic computer-generated patterns.

0:25:200:25:23

Just like a tree, they were created from one very simple rule,

0:25:290:25:34

set up to repeat itself time and time again.

0:25:340:25:36

But these shapes go on for ever, creating infinite complexity.

0:25:390:25:43

It's a property known as fractal.

0:25:440:25:47

Mandelbrot believed that fractals could be used to describe

0:25:490:25:52

many of the seemingly random shapes we see in the natural world.

0:25:520:25:56

And the most powerful demonstration of that belief

0:26:000:26:03

comes not from mathematics or nature but from the world of make-believe.

0:26:030:26:08

Over 30 years ago, Loren Carpenter made it two minute film

0:26:110:26:16

that would revolutionise the world of animation.

0:26:160:26:19

This is a little film I made in 1980.

0:26:200:26:23

The landscape is constructed by me, by hand, of about 100 big triangles.

0:26:230:26:28

-That doesn't look very natural.

-No, it's very pyramid-like.

0:26:280:26:31

What we're going to do is take each of these big triangles and break it up into little triangles

0:26:310:26:36

and break those little triangles up into littler triangles.

0:26:360:26:40

Until that gets down to the point where you can't see triangles any more.

0:26:400:26:43

What Loren had realised was that he could use

0:26:430:26:46

the mathematics of fractals to turn just a handful of triangles

0:26:460:26:49

into realistic virtual worlds.

0:26:490:26:52

We went from about 100 triangles to about five million.

0:26:540:26:58

We turned the fractal process loose and instantly it looks natural.

0:27:000:27:05

And here's that fractal quality, this infinite complexity at work.

0:27:050:27:10

That's exactly what I wanted, yeah.

0:27:100:27:13

By today's standards, this animation doesn't look like much

0:27:150:27:18

but in the 1980s, no-one had seen anything like it before.

0:27:180:27:24

Loren Carpenter had used fractals to revolutionise computer graphics.

0:27:240:27:28

It was because of this one short film that Loren went on to co-found

0:27:330:27:36

one of the most successful film studios in the world, Pixar.

0:27:360:27:42

This empire of cars and monsters

0:27:450:27:48

and toys, was built on the power of fractals.

0:27:480:27:51

And fractals are still used at Pixar today.

0:27:570:28:01

They create the surface of rocks, the texture of clouds

0:28:010:28:05

and bring the trees and forests alive.

0:28:050:28:08

The fact that these virtual worlds are so realistic demonstrates

0:28:110:28:15

the power of mathematics to describe the infinite complexity of nature.

0:28:150:28:20

Subtitles by Red Bee Media Ltd

0:28:280:28:30

E-mail [email protected]

0:28:300:28:33

Download Subtitles

SRT

ASS