韦达定理呀,x1+x2=-Q,x1x2=-P
x1^2+x2^2=(x1+x2)^2-2x1x2=Q^2+2P=7
1/x1 +1/x2=(x1+x2)/x1x2=3
∴Q=3P
然后带进去算
-(根号下77)/3 + 7/9
根号下5 - 1