Let p(x)=ax3+bx2+cx+d
p(−1)=10⇒−a+b−c+d=10
p(1)=−6⇒a+b+c+d=−6
p(x) has max. at x=−1⇒p′(−1)=0
⇒3a−2b+c=0
Solving (1),(2),(3) and (4), we get
From (4),b=−3a
from (3),3a+6a+c=0⇒c=−9a
from (2)a−3a−9a+d=−6⇒d=11a−6
from (1),−a−3a+9a+11a−6=10
⇒16a=16⇒a=1
⇒b=−3,c=−9,d=5
⇒wp(x)=x3−3x2−9x+5
p′(x)=0⇒3x2−6x−9=0
⇒3(x+1)(x−3)=0
⇒x=−1 is a point of maxima (given)
and x=3 is a point of minima
[∵ maxima and minima occur alternatively]
∴ point of local maxima is (−1,10) and local minima is (3,−22)
And the distance between them is
=√[3−(−1)]2+(−22−10)2
=√16+1024
=√1040=4√65