I can't come up with this function for hours: I just started to learn quadratic functions so there must be an obvious solution for this which I clearly missed.....