Notice that the graph given in red color is the graph of the function:
Notice also that the graph in blue is the graph of the function:
The points of intersection of these graphs will be the points where the functions have equal values.
Hence, the required equation can be derived by equating the functions:
Hence, the correct option is B.
The answer is option B: cos x=1.