Im having a hard time finding the intervals where the function: f(x)= x^2-4x+7cos(x)f[x_] := x^2 - 4x + 7 Cos[x]
is increasing and decreasing using mathematica. I tried using FindRootFindRoot
but it's not too accurate because the curve has inflection points beyond just the zeroes.
I did this so far, which is wrong. I'm trying to find where it increases and decreases on the interval from [-4,4]$[-4,4]$