Solve by Factoring cos(x)^2+2cos(x)+1=0