I have been looking online and at previous posts for a way of calculating the internal energy of a gas or the work done on gas due to a changing volume. The problem that I keep encountering is that the temperature is always said to be isothermic whereas in my model the volume will change causing the temperature and pressure to change as well, hence is it non-isothermic.
I have tried using the fact that $W = -pdV$ or $dU = (\frac{\partial U}{\partial T})_V\,dT + (\frac{\partial U}{\partial V})_T\,dV$ but both seem to only work with isothermic conditions.
If anyone knows of any way of accurately calculating the internal energy under these conditions that would be very helpful.
Thanks.