Combine the fractions on the left over the common denominator ab, then take the reciprocal of both sides.
f1=aba+b,f=a+bab
Taking this reciprocal requires a+b=0. The original requires a=0, b=0, and f=0. With the stated assumptions, a+bab is nonzero.