Problem

Source: Netherlands Team Selection Test 2016 Day 1-Problem 4

Tags: algebra, functional equation, AZE BMO TST



Find all funtions $f:\mathbb R\to\mathbb R$ such that: $$f(xy-1)+f(x)f(y)=2xy-1$$for all $x,y\in \mathbb{R}$.