The correct option is C f(x) has local minima at x=1
Let f(x)=ax3+bx2+cx+d
f(2)=18⇒8a+4b+2c+d=18⋯(1)
f(1)=−1⇒a+b+c+d=−1⋯(2)
f(x) has local maxima at x=−1,
f′(−1)=0⇒3a−2b+c=0⋯(3)
f′(x) has local minima at x=0,
f′′(0)=0⇒b=0⋯(4)
Solving (1),(2),(3) and (4), we get
f(x)=14(19x3−57x+34)
or f(0)=172
f′(x)=574(x2−1)>0 ∀ x>1
f′(x)=0⇒x=1,−1
f′′(−1)<0,f′′(1)>0
Thus, x=−1 is a point of local maximum and x=1 is a point of local minimum.
So a=1,
(a,f(a))=(1,f(1))=(1,−1)
The distance between (−1,2) and (1,f(1)), i.e., (1,−1) is
=√22+32=√13≠2√5