What is a detailed explanation of Kinetic and Potential energy

Kinetic energy is the energy of motion and K.E. = 1/2 mv^2.

Potential energy is the energy a system has as a result of its position (for example, a rock at the top of a ledge).