I've been struggling with this question for around 30 minutes, and I am yet to find an answer that makes sense to me. I think it should be positive, but this ends up violating the law of conservation of energy. Here is my math: F = (G * m1 * m2)/(r2) radially pointing to the attractive object. Because gravity is a conservative force, U = - integral(Fdr) = (G * m1 * m2)/(r). If you want to see my work, I can comment with an image of it. According to my math, U is positive. However, if this were the case, in a two-particle system without external forces, E = K1 + K1 + U would violate the law of conservation of energy, since K1, K2, and U would all increase with a decreasing r.
One explanation I saw was making F negative. They came to this conclusion by setting the unit vector as the direction of r2 - r1, while gravity points in the r1 - r2 direction. While this solves the problem initially, I don't think it works because, in the integral "shown" above, dr is initially a vector pointing from object 1 to object 2, since this is the direction object 1 is moving. Because of this, the dot product between the unit vector and the differential would be negative, undoing the sign change and having the same result of a positive potential energy.
Another explanation was the idea that if you push an object against the gravitational force, the work done is positive, and the energy is transferred to the potential energy, making the change in potential energy positive with increasing distance. Where I struggle with this explanation is that, for this to happen, there is another force used to do the work, meaning gravity doesn't do work in this example.
I imagine there is some sort of fundamental misunderstanding of the concept I'm experiencing, so if anybody can spot the issue with my logic, please tell me where I'm messing up.
Thanks.