If x + 1/x = 3, then find the value of x^2 + 1/x^2.