We know that a point of extreme value of a differentiable function occurs where its first derivative vanishes. Because the given quartic f(x) has extreme values at x=1 and x=2, we must have
f′(1)=0andf′(2)=0.
Therefore (x−1) and (x−2) are factors of f′(x). Since f(x) is of degree 4, its derivative f′(x) is of degree 3, so it can be written as
f′(x)=k(x−1)(x−2)(x−a),
where k=0 is a constant multiplier and a is the third root (still to be determined).
Next, we expand the cubic inside the bracket. First multiply the first two linear factors:
(x−1)(x−2)=x2−3x+2.
Now multiply by the third factor (x−a):
(x2−3x+2)(x−a)=x(x2−3x+2)−a(x2−3x+2)=x3−3x2+2x−ax2+3ax−2a=x3−(a+3)x2+(3a+2)x−2a.
Thus
f′(x)=k[x3−(a+3)x2+(3a+2)x−2a].
To obtain f(x) itself, we integrate term by term. We first recall the basic power‐rule formula
∫xndx=n+1xn+1+C,
where C is the constant of integration. Applying that to each term, we have
f(x)=∫f′(x)dx=k[4x4−3(a+3)x3+2(3a+2)x2−2ax]+C.
The problem now supplies the limit
limx→0(x2f(x)+1)=3.
Rewriting, we need
limx→0x2f(x)=2.
Hence x2f(x) must approach a finite number (namely 2) as x→0, which means no negative powers of x may remain in that quotient. Let us therefore divide our current expression for f(x) by x2 and inspect all terms:
x2f(x)=k[4x2−3(a+3)x+2(3a+2)−x2a]+x2C.
For the limit as x→0 to be finite, the coefficients of the troublesome terms x1 and x21 must be zero. That forces the two independent conditions
−2ak=0andC=0.
Because k=0, the first equation immediately gives a=0. Substituting a=0 and C=0 back, the derivative simplifies neatly to
f′(x)=kx(x−1)(x−2).
Expanding the right-hand side once more:
x(x−1)(x−2)=x(x2−3x+2)=x3−3x2+2x.
Thus
f′(x)=k(x3−3x2+2x).
We integrate again (now the integrand is simpler):
f(x)=k[4x4−x3+x2]+0=k(4x4−x3+x2).
We still need the constant k. Divide by x2 once more:
x2f(x)=k(4x2−x+1).
Now take x→0:
limx→0x2f(x)=k(0−0+1)=k.
But we already required that this limit equal 2, so k=2. Hence the explicit polynomial becomes
f(x)=2(4x4−x3+x2)=2x4−2x3+2x2.
Finally, we evaluate f(−1):
f(−1)=2(−1)4−2(−1)3+2(−1)2=21−2(−1)+2(1)=21+2+2=29.
Hence, the correct answer is Option D.