From figure, stars orbit about a point O inside equilateral triangle,
The distance from the centre of its orbit is given by
r′=r2cos30
From Newton law of universal gravitation,
F1=GM2r2cos30
The net force of gravity on one star due to other two is
f=2f1
=2GM2r2cos30∘
The centripetal force around triangle is
fc=Mv2r′
Here speed of stars is v substitute r2cos30∘ for r′
is above equation
fc=Mv2(r2cos30)=2Mv2cos30L
f=fc (now necessary centripetal force is provided by net force)
2GM2cos30∘r2=2Mv2cos30∘r
2GM2×√32r2=2Mv2√32r
GMr=v2
v=√GMr