The function `f(x) = x^2 - 1/x` is continuous in the interval [1, 4]. Find the value of x in the given interval for which the function takes the value 6.

A. 1.5

B. 2.5

C. 2.53

D. 2.93