Trying to solve $\frac{f(x) f(y) - f(xy)}{3} = x + y + 2$ for $f(x)$

Let $f : \mathbb{R} \to \mathbb{R}$ be a function such that $$\frac{f(x) f(y) - f(xy)}{3} = x + y + 2$$ for all $x,y \in \mathbb{R}$. Find $f(x)$.

I started by multiplying both sides by $3$, which gets $$f(x)f(y)-f(xy)=3x+3y+6.$$

I tried to find something by substituting $y=0$, so $$f(x)f(0)-f(0)=3x+6.$$

However, I don't see anything useful. How would I continue on this problem.


Setting $x=y=0$ in the functional equation yields $$f(0)^2-f(0)-6=0 \implies f(0)=3 \text{ or } f(0)=-2$$ Set $y=0$ to obtain $$f(0)(f(x)-1)=3x+6$$ Now $f$ can be determined by substituting the values obtained for $f(0)$. Substituting back into the original functional equation tells us that only one of them is valid.

Finally, we have a unique solution for $f$: $$f(x) = x+3$$