thermodynamics: first law of thermodynamics and constraints on inexact differentials My background is in statistics, so physics is rather new to me. But I was reading Reichl's book on Statistical Mechanics and had a question about the first law. 
So the basic idea is that the internal energy is:
$$
\mathrm{d} U=\delta Q+\delta W
$$
where $Q,W$ are inexact differentials because they are path dependent. So I can see how this language of "inexact" can be confusing, for how can two inexact quantities equal an exact quantity. But it seems that other folks have answered this in part. 
But my question is what constraint does this equation put on the possible functions that define $Q, W$. So imagine that Q and W were exact differentials, then the first law would already impose constraints on those two functions because they have to sum to the change in internal energy $U$. So what further constraint is imposed on the form of these two function if they are inexact, as opposed to exact? Hopefully the question make sense. Just trying to tease out the impact of their inexactness. 
I might be way off in my intuition, so please correct me if I am off. 
 A: So what further constraint is imposed on the form of these two function if they are inexact, as opposed to exact? Hopefully the question make sense. Just trying to tease out the impact of their inexactness.
Work and heat are inexact differentials because integration has to account for the path taken. There are an infinite number of possible heat and work paths between two states and only one difference in internal energy between the points. For example, I might get between two points by a constant pressure path followed by a constant volume path. Or I might start with a constant volume path followed by a constant pressure path. Both get me where I want to go, but the values for heat and work will be different because the integrals of the paths will be different. So the constraint is you need to define the specific path(s) going between the two points to determine the heat and work involved.
Once the particular heat and work paths are specified they can be integrated and thus become exact differentials.
Hope this helps.
