Which of the following options correctly represents the differentiation of y with respect to x, where y = (x+1)/(x^3+x-2)?
A) y' = (3x^2 + 1)/(3x^2 + 1)
B) y' = (3x^2 + 1)/(x^3 + x - 2)
C) y' = (x^3 + x - 2)/(3x^2 + 1)
D) y' = (x^3 + x - 2)/(x^3 + x - 2)