Given that the function f(x)=(x−p)2+(x−q)2+(x−r)2 has a minimum, find the corresponding values of x