Problem

Source: IMO 1980 Great Britain #4

Tags: function, algebra unsolved, algebra



The function f is defined on the set $\mathbb{Q}$ of all rational numbers and has values in $\mathbb{Q}$. It satisfies the conditions $f(1)=2$ and $f(xy)=f(x)f(y)-f(x+y)+1$ for all $x,y \in \mathbb{Q}$. Determine f (with proof)