Problem

Source: 2015 Thailand October Camp FE & Geometry Exam p1

Tags: functional equation, function, algebra



Find all functions $f:\mathbb{Q}\to\mathbb{Q}$ such that $$f(xy)+f(x+y)=f(x)f(y)+f(x)+f(y)$$for all $x,y\in\mathbb{Q}$.