Solution:
Key idea: When f is given by different rules on different parts of the interval, split the integral at the point where the rule changes, using ∫abf(x)dx=∫acf(x)dx+∫cbf(x)dx, and integrate each rule on its own piece.
Step 1 — Part (i): split at x=2.
The rule 4x+3 applies on [1,2] and the rule 3x+5 applies on [2,4]. (Both rules give 11 at x=2, so f is continuous there.)
∫14f(x)dx=∫12(4x+3)dx+∫24(3x+5)dx
Step 2 — Part (i): the first piece.
An antiderivative of 4x+3 is 2x2+3x.
∫12(4x+3)dx=[2x2+3x]12=(8+6)−(2+3)=9
Step 3 — Part (i): the second piece.
An antiderivative of 3x+5 is 23x2+5x.
∫24(3x+5)dx=[23x2+5x]24=(24+20)−(6+10)=28
Step 4 — Part (i): add the pieces.
We add the two results.
∫14f(x)dx=9+28=37
Step 5 — Part (ii): split at x=0.
The rule 1−2x applies for x≤0 and the rule 1+2x for x>0. (The single point x=0 does not affect the value of an integral.)
∫−11f(x)dx=∫−10(1−2x)dx+∫01(1+2x)dx
Step 6 — Part (ii): the first piece.
An antiderivative of 1−2x is x−x2. Its value at x=0 is 0, and at x=−1 it is −2.
∫−10(1−2x)dx=[x−x2]−10=0−(−2)=2
Step 7 — Part (ii): the second piece.
An antiderivative of 1+2x is x+x2.
∫01(1+2x)dx=[x+x2]01=2
Step 8 — Part (ii): add the pieces.
In fact f(x)=1+2∣x∣ here, an even function, so the two pieces are equal.
∫−11f(x)dx=2+2=4
Therefore, (i) 37; (ii) 4.