We have a cubic polynomial p(x) whose derivative will therefore be a quadratic. For any polynomial, local maxima and minima occur where the first derivative is zero. Hence, if x=1 gives a local maximum and x=2 gives a local minimum, we must have
p′(1)=0andp′(2)=0.
Because a quadratic that vanishes at x=1 and x=2 can be written (up to a constant multiple) as k(x−1)(x−2), we may write
p′(x)=k(x−1)(x−2),
where k is a non-zero constant that we will determine shortly.
Now we integrate to recover p(x). Using the formula ∫(x−1)(x−2)dx=∫(x2−3x+2)dx, we obtain
∫(x2−3x+2)dx=x3/3−3x2/2+2x.
Multiplying by the constant k and adding an integration constant C, we get the most general cubic whose derivative is k(x−1)(x−2):
p(x)=k(3x3−23x2+2x)+C.
Next, we use the given extreme values. At the local maximum x=1, the polynomial attains the value 8, so
p(1)=8.
Evaluating p(1) from the expression above, we find
p(1)=k(313−23⋅12+2⋅1)+C=k(31−23+2)+C=k(31−69+612)+C=k(65)+C.
Thus
65k+C=8(Equation 1).
Similarly, at the local minimum x=2, the value is 4, so
p(2)=4.
Compute p(2):
p(2)=k(323−23⋅22+2⋅2)+C=k(38−212+4)+C=k(38−6+4)+C=k(38−318+312)+C=k(32)+C.
Therefore
32k+C=4(Equation 2).
We now solve Equations 1 and 2. Subtracting Equation 2 from Equation 1, we get
(65k−32k)+(C−C)=8−4.
65k−64k=6k=4.
k=24.
Substituting k=24 into Equation 2,
32⋅24+C=4⟹16+C=4⟹C=−12.
Hence, the explicit form of the cubic is
p(x)=24(3x3−23x2+2x)−12.
Finally, we evaluate p(0):
p(0)=24(303−23⋅02+2⋅0)−12=24⋅0−12=−12.
Hence, the correct answer is Option B.