Mark M. answered 03/26/24
Retired math prof. Calc 1, 2 and AP Calculus tutoring experience.
g(x) = ∫(-3 to x) f(x)dx
g(-6) = ∫(-3 to -6)f(x)dx = -∫(-6 to -3) 0dx = 0
g(-2) = ∫(-3 to -2) f(x)dx = ∫(-3 to -2) 3dx = 3x(-3 to -2) = -6 - (-9) = 3
g(1) = ∫(-3 to 1) f(x)dx = ∫(-3 to 0) 3dx + ∫(0 to 1)(-5)dx = 9 - 5 = 4
g(6) = ∫(-3 to 6) f(x)dx = ∫(-3 to 0) 3dx + ∫(0 to 5) (-5)dx + ∫(5 to 6)0dx = 9 - 25 + 0 = -16
Maximum value of g is g(0) = 9.