若x^2+x+a=(x+b)^2,则a=?,b=?怎么算?

来源:学生学帮网 编辑:学帮网 时间:2024/07/07 00:55:01

若x^2+x+a=(x+b)^2,则a=?,b=?怎么算?

x²+x+a=x²+2bx+b²
∴1=2b
a=b²
∴a=1/4
b=1/2