解:原式=x2+2xy+y2-y2-3y2
=(x2+2xy+y2)-4y2
=(x+y)2-(2y)2
=(x+y+2y)(x+y-2y)
=(x+3y)(x-y)
像这种通过增减项把多项式转化成完全平方形式的方法称为配方法.