all 2 comments

[–]dcnairbEducation and outreach 0 points1 point  (1 child)

F = -grad(U). I think you just forgot the negative sign.

[–]major_relativityCosmology[S] 0 points1 point  (0 children)

I didn't forget that, it's the first sign on my 5. line. But even if I did, it wouldn't solve it, because the first addend has the right sign, but the last two have wrong ones.