Let f:(−∞,∞)→[2,∞) be a function defined by f(x)=√x2−2a+a2,a∈R, then the value of a for which f is onto