Perpetual motion is motion of bodies that continues indefinitely. A perpetual motion machine is a hypothetical machine that can do work indefinitely without an energy source.This kind of machine is impossible, as it would violate the first or second law of1) Heat carried away by flue gases2) Heat carried away by ash3) Moisture present in fuel and steam formed by combustion of hydrogen in fuel