Question: why perpetual motion is impossible?
Answer: A perpetual motion machine of the first kind produces work without the input of energy. It thus violates the first law of thermodynamics: the law of conservation of energy. ... This conversion of heat into useful work, without any side effect, is impossible, according to the second law of thermodynamics.