find the derivative of the function y=log absolut power 2-x

y = log |2-x|

y' = 1/|2-x| (-1) = 1/(x-2)