Elementary and Intermediate Algebra: Concepts & Applications (6th Edition)

The expression $x^2+2xy+y^2$ is the expansion of $(x+y)^2$. We open up the brackets during the expansion.