Question: what is the relationship between work and potential energy?
Answer: The potential energy U is equal to the work you must do against that force to move an object from the U=0 reference point to the position r. The force you must exert to move it must be equal but oppositely directed, and that is the source of the negative sign.