Can two shaded patches cancel out just because their curves cross?
Two curves cross, and you shade a patch on each side of the crossing. Both patches clearly take up space. So how could an integral make one patch cancel part of the other?
You can check an antiderivative by differentiating it. For a power, add one to the exponent and divide by the new exponent. The reciprocal needs a natural logarithm instead. Sine integrates to negative cosine, and cosine integrates to sine. In both cases, divide by the coefficient of x to undo the chain rule.
Sketch y equals x and y equals x squared. Where they meet, x squared equals x. Move both terms to one side and factor: x times x minus one, in brackets, equals zero. The crossings are at zero and one. Between them, the strip runs from the parabola up to the line.
Look halfway between the crossings, where x is one half. The line has height one half and the parabola has height one quarter. What is the vertical distance between them? Pick an answer.
Use zero and one as the limits, because those are the x-coordinates of the crossings. Integrate x minus x squared term by term. Substitute one and subtract the value at zero. One half minus one third gives one sixth of a square unit.
Now use the line y equals two x with the same parabola. They meet at x equals zero and two, and the line is higher between them. What area do you get when you integrate the difference? Pick an answer.
Sketch y equals two to the power x and the horizontal line y equals two. They meet at one, because two to the power one is two. Shade between the graphs from zero to two. The horizontal line is higher in the left patch, and the exponential is higher in the right.
On the left, use two minus two to the power x. On the right, reverse the subtraction. For an exponential, divide by the natural log of its base to undo the chain rule. Here the base is two. Evaluate both pieces and add. The twos cancel, leaving one over natural log two square units.
Suppose you keep the same subtraction across a crossing and get minus two for one piece and three for the other. Adding gives a signed total of one. The patches have areas two and three, so together they cover five square units.
Find the average value of two x minus x squared on the interval from zero to two. Divide the definite integral by the interval width. You already found the integral, four thirds. Divide by two to get two thirds. For an average, keep the signs if the graph goes below the axis.