Let r1,r2,…,rn be real numbers. Given n reals a1,a2,…,an that are not all equal to 0, suppose that inequality
r1(x1−a1)+r2(x2−a2)+⋯+rn(xn−an)≤x12+x22+⋯+xn2−a12+a22+⋯+an2
holds for arbitrary reals x1,x2,…,xn. Find the values of r1,r2,…,rn.