Solution:
Key idea: By the fundamental theorem of calculus, ∫abf(x)dx=F(b)−F(a), where F is any antiderivative of f. For ∣x+3∣ we would first split the interval where x+3 changes sign, at x=−3.
Step 1 — Find an antiderivative.
We integrate x+3 term by term.
F(x)=2x2+3x
Step 2 — Find F at the two limits.
We put the upper limit 3 and the lower limit −6 into F.
F(3)=29+9
F(3)=227
F(−6)=236−18
F(−6)=0
Step 3 — Subtract.
The value of the integral is F(3)−F(−6).
∫−63(x+3)dx=227−0
∫−63(x+3)dx=227
Note: The paper prints (x+3) without modulus bars. Since this alternative carries 4 marks and the limits lie on both sides of x=−3, it may have been meant as ∫−63∣x+3∣dx. That version is worked out in Step 4.
Step 4 — Evaluate the modulus version.
For −6≤x≤−3 we have x+3≤0, so ∣x+3∣=−(x+3).
For −3≤x≤3 we have x+3≥0, so ∣x+3∣=x+3.
So we split the integral at the point x=−3.
∫−63∣x+3∣dx=−∫−6−3(x+3)dx+∫−33(x+3)dx
We need F(−3) for both parts.
F(−3)=29−9
F(−3)=−29
The first part therefore gives the following.
−∫−6−3(x+3)dx=−(−29−0)
−∫−6−3(x+3)dx=29
The second part uses F(3)=227.
∫−33(x+3)dx=227+29
∫−33(x+3)dx=18
Adding the two parts gives the modulus version.
∫−63∣x+3∣dx=29+18
∫−63∣x+3∣dx=245
Watch out: Without the modulus, the part of the line below the x-axis (from −6 to −3) counts as negative and cancels some of the positive part. With the modulus, both parts count as positive.
Therefore, ∫−63(x+3)dx=227 as printed (with ∣x+3∣ the value would be 245).