Given: a,b are the roots of the equation,
x2+x+1=0
Now,
sum of roots=−coefficient of xcoefficient of x2
⇒ a+b=−1 …(1)
Product of roots=constant termcoefficient of x2
⇒ ab=1 …(2)
We know
(a+b)2=a2+b2+2ab
From equation (1) and (2), we get
⇒ (−1)2=a2+b2+2
⇒ a2+b2=1−2=−1
Hence, option (C) is correct.