B(x) = If[2 ≤ x ≤ 16, (-x^(3)) + (15 * x^(2)) + (72 * x) + 650]
B'(x) = If[2 ≤ x ≤ 16, ((-3 * (x + 2)) * (x - 12))]