Remember that putting a negative sign in front of a function means the same thing as multiplying that function by -1.
Let g(x) = -x2. Then we could think of this function as
g(x) = (-1)(x2),
therefore
g'(x) = (-1)(x2)' = (-1)(2x) =...