How does force change over distance?

We have noticed that the force of a magnet seems to depend on our distance from it.

Galvanometer

Can you think of an experiment which would describe a magnet's force across a distance?

Is the relationship linear?