The value of a for which the sum of the squares of the root of the equationx2−(a−2)x−a−1=0 assumes the least value, is