Hello, when gas compressed it get heated, proper reasons i don't know. If we consider first kinetic energy increases due to external work done but hows that happens? and if we consider heat is first, where from it came? my guess is that when molecules come closer in confined wall( due to low volume), frequency of collision occurs rapidly between confined molecules means they excited and radiate heat energy. Heat energy first?