a+b=2(k-1)
ab=k+1
所以y=a²+b²
=(a+b)²-2ab
=4k²-8k+4-2k-2
=4k²-10k+2
=4(k-5/4)²-17/4
△>=0
4(k-1)²-4(k+1)>=0
k²-3k=k(k-3)>=0
k=3
所以k=3,y最小是8
所以y≥8
a+b=2(k-1)
ab=k+1
所以y=a²+b²
=(a+b)²-2ab
=4k²-8k+4-2k-2
=4k²-10k+2
=4(k-5/4)²-17/4
△>=0
4(k-1)²-4(k+1)>=0
k²-3k=k(k-3)>=0
k=3
所以k=3,y最小是8
所以y≥8