The inequality is given by x2−3(a+1)x+a2+a−1≤0.
Let the roots of the corresponding quadratic equation x2−3(a+1)x+a2+a−1=0 be x1 and x2.
The solution set for the quadratic expression being less than or equal to zero is the closed interval [x1,x2].
The length of this interval is given as 4, which means:
∣x2−x1∣=4
Using the relation for the difference of roots of a quadratic equation, ∣x2−x1∣=∣A∣D, where D is the discriminant:
D=4⟹D=16
Let us calculate the discriminant D of the quadratic expression:
D=[−3(a+1)]2−4(1)(a2+a−1)
D=9(a2+2a+1)−4a2−4a+4
D=9a2+18a+9−4a2−4a+4
D=5a2+14a+13
Equating the discriminant to 16:
5a2+14a+13=16
5a2+14a−3=0
Solving this quadratic equation for a by factoring:
5a2+15a−a−3=0
5a(a+3)−1(a+3)=0
(5a−1)(a+3)=0
This gives two possible values for a:
a1=51,a2=−3
We need to find the sum of the squares of these different values of a:
a12+a22=(51)2+(−3)2=251+9=251+225=25226
The correct option is C.