When writing the equations for center of mass we assume as it to be the point where all the forces act and write the corresponding kinematic equations, and in doing so we dont assume any distribution of forces (like constant or linear wrt length or any dimension of the body)
But when we consider the case of a rod lying on a surface with a force acting as F(x) = Kx where x is the distance from one end of the rod, we see that the force is more concentrated above the center of mass and the net force doesnt necessarily pass through the com. I am unable to wrap my head around this difference in result. Need some help understanding where im going wrong in my thinking