Let f(x)=ax3+bx2+cx+d
Then, f(2)=18⇒8a+4b+2c+d=18 ....(1) f(1)=−1⇒a+b+c+d=−1 ....(2) f(x) has local max. at x=−1 ⇒3a−2b+c=0f′(x)x=0⇒b=0 ......(4)
Solving (1), (2), (3) and (4), we get f(x)=41(19x3−57x+34)⇒f(0)=217
Also f′(x)=457(x2−1)0,∀x>1
Also f′(x)=0⇒x=1,−1 f"(−1)<0,f"(1)>0⇒x=−1 is a point of local max.
and x = 1 is a point of local min. Distance between (- 1, 2) and (1, f (1)), i.e. (1, -1) is 13=25