simplify derivative