Mechanical power transmission involves the transfer of energy to do work. Mechanical advantage is the ratio between the output and input forces or distances. A compound machine combines two or more simple machines. Mechanical energy is the sum of potential and kinetic energy in an object used to do work. Potential energy depends on mass and height, while kinetic energy depends on mass and speed. Work results from a force causing displacement or hindering motion, and power is the rate at which work is performed such as transmitting electrical energy through wires to power a motor.