Detail cost function, equation of motion.