Often when we go hiking, we encounter two kinds of paths whenever we have to cover elevation. We either go up via stairs or via walking up a ramp. Sometimes both are available side to side. And it's often got us wondering, what takes more energy?
I know that potential energy depends on the height alone. So, from potential Energy perspective, it's the same whether we ascend the same elevation via stairs or via a ramp.
But what other factors might affect the energy expended? Friction for example? Or energy used by muscles? Is it possible to say with certainty which path would expend less energy or there are too many factors to really compute it. I couldn't really find a solution using Google.