if for all x is not equal to 1, 3x^2 + kx+2/x+1=3x+2 , then find k

we want x+1 to be a factor of 3x^2+kx+2 and the quotient to be 3x+2

That means that 3x^2+kx+2 = (x+1)(3x+2)
So, 3x^2+kx+2 = 3x^2+5x+2
Looks like k=5

The condition should be all x ≠ -1 since the (x+1)=0 and it cannot be the divisor.

Either that or the divisor is (x-1).