Correct answer: 1/2
Heat generated in r is P = I² * r. Maximum power transfer to a variable load occurs when the load equals the equivalent resistance of the source network seen from the load terminals. For this circuit the Thevenin resistance across r equals R/2, so r must equal R/2, giving f = 1/2.