Mark M. answered 12/07/22
Retired math prof. Calc 1, 2 and AP Calculus tutoring experience.
g(x) = ∫(from 0 to x) f(t)dt
By the Fundamental Theorem of Calculus, g'(x) = f(x)
So, g'(x) = 0 when x = 0, 2, 4, 6, 8, 10.
When x = 2, g'(x) changes sign from + to - (local max)
When x = 4, g'(x) changes sign from - to + (local min)
When x = 6, g'(x) changes sign from + to - (local max)
When x = 8, g'(x) changes sign from - to + (local min)

