B(x) = If[2 ≤ x ≤ 12, (-x^(3)) + (15 * x^(2)) - (38.25 * x)]
B'(x) = If[2 ≤ x ≤ 12, ((-3 * (x - 1.5)) * (x - 8.5))]