Determine the amount of work done on an ideal gas as it is heated in an enclosed thermally insulated cylinder topped with a free
ly moving piston. The cylinder contains of n moles of the gas and the temperature is raised from T1 to T2. The piston has a mass m and a cross sectional area A.
When two magnets are brought together, the opposite poles will attract one another, but the like poles will repel one another. This is similar to electric charges. Like charges repel, and unlike charges attract.