KiNGGeexD said:
So from left to right I get
20J
-10J
20J
10J
So that gives me 40J?
I didn't get those values. Let's try again.
Remember that for the region under the ##x##-axis, regardless of the values of ##x##, you get the negative work done, using the area of the triangle:
##A = -\dfrac{1}{2}|b||h|##
where the brackets indicate the absolute value of any number.
Then, for the region above the ##x##-axis, (also regardless of the values of ##x##) you use the area of the trapezoid, which states
##A = \dfrac{1}{2}|h||b_1 + b_2|##
where ##b_1## and ##b_2## are arbitrary bases of the trapezoid and ##h## is the height of the trapezoid.
You can also compute the area of the bigger region by triangle and square area formulas as you attempted. That is: determine the area of two triangles and the area of the square.
So in summary, you should get the following equation (ignoring the signs of ##x## values)
##\text{Total work done} = \text{Area between x = -4 and x = -2} + \text{Area between x = -2 and x = 4}##
where ##\text{Area between x = -4 and x = -2}## is negative while other area is positive.
Notes: Be careful about how you compute the first value. The shape is a triangle, not a square! Also be very careful about the signs of the first two values. If a region occurs under ##x##-axis, then the area is negative; otherwise, it's positive.