David Gavaghan
Computer scientist

David was the first person in his family to go to university. His childhood love of maths led to a career that is changing the way scientists develop new medicines.

I grew up in Blackburn in the north of England. The butcher next door used to give me sums to do for fun, and I got a reputation for being good at maths. It came naturally to me, and I always enjoyed it.

My family gave me lots of encouragement and support. My dad was a turner who made parts for machines. Later on he became a teacher. He would go and learn extra maths so he could help me with school work in my teens.

Maths is the language of science. Everything from mobile phones to aeroplanes is designed and built following rules that can still use maths. Living things are more complicated than phones and planes, but we can still use maths to figure out how they work. I work with scientists and doctors to understand the rules underlying living systems, such as the heart.

If we know these rules, we can programme computer models that predict what will happen when something changes - for example, how a new medicine will affect a persons heartbeat. Medicines with dangerous side effects can be ruled out at an early stage, without ever having to test them on people.

It's a fantastic feeling to predict the results of an experiment, visit the lab and see you got it right. But the most important part of my role is education. I enjoy training the scientists of the future, and showing them what maths can do.


My Football Association Level 1 coaching badge! I enjoy coaching my son’s football team here at the university.


Stick with maths. The stuff you do at primary school is just the building blocks – the really interesting stuff comes later

David Gavaghan, Computer Scientist
David's Journey


Teach a computer to doodle

Time: 30 minutes

You need: Lego bricks, a computer or tablet with an Internet connection

Activity 1. Practise giving instructions.
  • Sit with your back to a partner, so you can’t see each other’s hands. Each person needs an identical set of 10 Lego bricks.
  • Create a model with the bricks. Then give your partner step-by-step instructions to build the SAME model.
  • Compare your creations to find out how good your instructions were!
Activity 2. Invent your own doodles by playing with code.
  • With an adult helper, use the free software at code.org: studio.code.org/s/artist.
  • Drag and drop the blocks to build the code below. It tells the computer how to draw a square.
  • Invent your own doodles by playing with the code. Work together to turn your ideas into simple instructions that a computer can follow.

Enjoyed This? What’s Next…

David Gavaghan, Computer Scientist Activity

Talking points

#1 Keep trying

Reassure your child that they are not supposed to work it out the first time. Coding is a process.

#2 Brainstorm

Work with your child to brainstorm and make suggestions. Teamwork makes it even more fun.

Share your creations and comments

Add new comment

More information?

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Basic HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Formulae heart