Since the brown graph is the graph of f+g and the red graph is the
graph of f, the brown graph will be above the red graph as long as
g(x) = 2cos(x) > 0. This occurs whenever x lies in one of the
open intervals

for any integer k.
Note. This comment only applies to the original
functions on this page and not necessarily to any changes which you make.