Let $\mathbb{Q}$ denote the set of rational numbers. Find all functions from $\mathbb{Q}$ to $\mathbb{Q}$ which satisfy
- $f(1)=2$; and
- $f(xy)=f(x)f(y)-f(x+y)+1$.
I know that $f(x)=x+1$ satisfies the equation but I don't know how to prove if this is the only such function. This question was in the 'Induction' section of my textbook.
Any hints?