We have,
{a}_{ij}={\begin{matrix}1 & , & \mathrm{if}i=j \\ -x & , & \mathrm{if}|i-j|=1 \\ 2x+1 & , & \mathrm{otherwise}\end{matrix}
Then,
A=[1−x2x+1−x1−x2x+1−x1]
⇒∣A∣=(1−x2)+x(−x+2x2+x)+(2x+1)(x2−2x−1)
⇒∣A∣=1−x2+2x3+(2x3−4x2−2x)+(x2−2x−1)
⇒∣A∣=f(x)=4x3−4x2−4x
⇒f′(x)=4(3x2−2x−1)
For maxima or minima, f′(x)=0
⇒3x2−2x−1=0
⇒x=1,3−1
Now,
f′′(x)=4(6x−2)
f′′(1)=4(6⋅1−2)=16>0( point of minima)
f′′(−31)=4(6⋅(−31)−2)=−16<0 ( point of maxima)
Hence, required sum is
f(1)+f(−31)
=−4+2720=−2788