[Solution from source] Current leading the voltage means the circuit is net capacitive: tan 45° = (X_C − X_L)/R = 1, so X_C = X_L + R. 1/(2πfC) = 2πfL + R gives C = 1/[2πf(2πfL + R)]. The form with (2πfL − R) would come from X_C = X_L − R, which makes the circuit inductive with current lagging. Answer (1).