Split the domain at −3, 1, 2 and 6:
| x | D(x) |
|---|
| −4≤x<−3 | 6−4x |
| −3≤x<1 | 12−2x |
| 1≤x≤2 | 10 |
| 2<x≤6 | 2x+6 |
| 6<x≤7 | 4x−6 |
(i) D(0)=3+1+2+6=12.
(ii) D decreases on [−4,1], is constant on [1,2], and increases on [2,7]. So the least value is 10, attained at every x∈[1,2], not at a single point. For example D(1.5)=4.5+0.5+0.5+4.5=10.
(iii) The largest value is at an end of the domain: D(−4)=1+5+6+10=22 and D(7)=10+6+5+1=22. Each piece is a straight segment and the pieces join up, so D takes every value from 10 to 22. The range of D is [10,22].
D(x)=14: on [−3,1), 12−2x=14 gives x=−1; on (2,6], 2x+6=14 gives x=4. The other pieces give 6−4x=14, so x=−2, not in [−4,−3), and 4x−6=14, so x=5, not in (6,7]. So D(x)=14 exactly at x=−1 and x=4.