y = (2-x)/(3x+1),
y' = [(2-x)'(3x+1)-(2-x)(3x+1)']/(3x+1)^2
= [-(3x+1)-3(2-x)]/(3x+1)^2 = -7/(3x+1)^2