http://www.phy6.org/stargaze/Slagrang.htm
Can someone please tell me how to convert these equations to a different gravity law, such as r^n (n<1) or 10^(3-3*r)+a/r^n? Are they based on v(r)=sqrt(G*M*f(r)*r) and p(r)=2*pi*r/v(r)=2*pi*sqrt(r/(G*M*f(r)))? I've been trying over and over to find the L2 point for 1/r, but my sims have been falling apart (objects either collide or fly apart).

P.S.: I know that for r^0, the Lagrange points are easy to calculate, based on the values of M and m, and that no matter what the law is, the L1 point IS the barycenter if M=m, regardless of their orbital velocity. Also, for r^n with n>1, L1-L3 disappear completely and L4, L5 become unstable.