In my book, the first law of thermodynamics is written as: $$\delta Q=dU+\delta W$$
Now it's strictly written why we have different notations for heat and work and internal energy. It's written that internal energy is a perfect differential while work and heat are not because $U$ is a function of the system's state, which I can grasp. If anyone can help me understand this better, it would be good.