Graph of the function intersects the axis X at f = 0
so we need to solve the equation:
$$- \cos^{2}{\left(x \right)} + 2 \cos{\left(x \right)} = 0$$
Solve this equationThe points of intersection with the axis X:
Analytical solution$$x_{1} = \frac{\pi}{2}$$
$$x_{2} = \frac{3 \pi}{2}$$
Numerical solution$$x_{1} = 48.6946861306418$$
$$x_{2} = 92.6769832808989$$
$$x_{3} = 86.3937979737193$$
$$x_{4} = -7.85398163397448$$
$$x_{5} = -86.3937979737193$$
$$x_{6} = 1.5707963267949$$
$$x_{7} = -64.4026493985908$$
$$x_{8} = -58.1194640914112$$
$$x_{9} = -83.2522053201295$$
$$x_{10} = -54.9778714378214$$
$$x_{11} = 54.9778714378214$$
$$x_{12} = 89.5353906273091$$
$$x_{13} = -20.4203522483337$$
$$x_{14} = 32.9867228626928$$
$$x_{15} = -17.2787595947439$$
$$x_{16} = 23.5619449019235$$
$$x_{17} = -45.553093477052$$
$$x_{18} = 64.4026493985908$$
$$x_{19} = 45.553093477052$$
$$x_{20} = 83.2522053201295$$
$$x_{21} = -196.349540849362$$
$$x_{22} = -29.845130209103$$
$$x_{23} = -51.8362787842316$$
$$x_{24} = 80.1106126665397$$
$$x_{25} = -39.2699081698724$$
$$x_{26} = -92.6769832808989$$
$$x_{27} = 4.71238898038469$$
$$x_{28} = 70.6858347057703$$
$$x_{29} = 36.1283155162826$$
$$x_{30} = -70.6858347057703$$
$$x_{31} = -48.6946861306418$$
$$x_{32} = 42.4115008234622$$
$$x_{33} = -42.4115008234622$$
$$x_{34} = -67.5442420521806$$
$$x_{35} = 10.9955742875643$$
$$x_{36} = 98.9601685880785$$
$$x_{37} = -23.5619449019235$$
$$x_{38} = 20.4203522483337$$
$$x_{39} = -61.261056745001$$
$$x_{40} = -1405.86271248143$$
$$x_{41} = -10.9955742875643$$
$$x_{42} = -95.8185759344887$$
$$x_{43} = -36.1283155162826$$
$$x_{44} = 61.261056745001$$
$$x_{45} = 17.2787595947439$$
$$x_{46} = 73.8274273593601$$
$$x_{47} = 14.1371669411541$$
$$x_{48} = -26.7035375555132$$
$$x_{49} = 51.8362787842316$$
$$x_{50} = -89.5353906273091$$
$$x_{51} = 39.2699081698724$$
$$x_{52} = 120.951317163207$$
$$x_{53} = -32.9867228626928$$
$$x_{54} = -14.1371669411541$$
$$x_{55} = -4.71238898038469$$
$$x_{56} = -378.56191475757$$
$$x_{57} = -76.9690200129499$$
$$x_{58} = 95.8185759344887$$
$$x_{59} = 76.9690200129499$$
$$x_{60} = 58.1194640914112$$
$$x_{61} = -80.1106126665397$$
$$x_{62} = -73.8274273593601$$
$$x_{63} = 7.85398163397448$$
$$x_{64} = -1.5707963267949$$
$$x_{65} = 29.845130209103$$
$$x_{66} = 67.5442420521806$$
$$x_{67} = 26.7035375555132$$
$$x_{68} = -98.9601685880785$$