The condition,
n∑i=1f−1(xi)=n∑i=1xi can be written as;
1nn∑i=1f−1(xi)=1nn∑i=1f−1xi
ie, AM of y-coordinates of f−1=AM of x coordinates of f.
The given two conditions hold if and only if x2+3x−3=x (point where f and f−1 meet).
⇒x2+2x−3=0
So, x=−3,+1
But x≥0⇒x=1 (neglecting x=−3)
Hence, we can write 1nn∑i=1xi=1 which is the required result.