Functions in real life: Shark Attack

Playing with Mathematics

Can you guess the functions used to create the movement?