Let the upper limit move
G(x)=∫0x(−2t+4)dt
Keep the lower endpoint fixed at zero and change only the upper endpoint.
xG(x)00132433405−5
Use signed triangles and trapezoids to build the values. At x=3 the positive contribution 4 has lost only 1, so G(3)=3.
G(−1)=−∫−10(−2t+4)dt=−5
The area from −1 to 0 is a trapezoid with width 1 and parallel sides 6 and 4, so its area is 5. Reversing the limits changes the sign. The upper endpoint may be smaller than the lower endpoint.
G(x)=−x2+4x=4−(x−2)2
These values lie on a downward-opening parabola. Its maximum is 4 at x=2.
G′(x)=−2x+4,G′′(x)=−2
G rises where the line is positive and falls where it is negative. The decreasing line makes G concave down throughout.