The capillary action lets a liquid rise in a narrow tube to a certain height. In this, the liquid gains some potential energy. According to the Conservation of Energy, the energy must come from somewhere. So where does the energy come from?
One possible solution that I thought was that the molecules of the capillary exert forces on the liquid molecules. These forces are responsible for potential energy being stored in the liquid molecules. The molecules could consume this potential energy and rise in the tube. But I don't know whether this is correct or not. Could anyone tell me if this is correct or some other solution exists?