Hello, according to thermodynamics the compression of a cylinder can both increase pressure and increase temperature. Unfortunately there is no law that gives us boh presure and temperture change given the change of volume, previous temperature and previous pressure? Usually we do either assume that pressure or temperature remains constant. Suppose the cylinder is isolated. What happens in a real world scenario to the pressure and temperature? How am I able to properly calculate the changes?