If the function f(x)=cos2x+cos2(π3+x)−cos x cos(π3+x) is constant (independent of x), then the value of this constant is
The maximum value of the function f(x)=−|x+1|+3 is