Derivate some math expressions