The differential form of internal energy is the following $$dE = TdS - PdV + \mu dN$$
But I naively think that this is inconsistent. Because when I do the following calculation I found it different. $$E = W + Q$$ $$dE = dQ + dW$$ $$dE = TdS - PdV - VdP$$
So where does the other term come from? Furthermore how the last term disapear?