factoring

<p>How do u factor this</p>

<p>x^2 + 2xy + y^2</p>

<p>(x + y) ^2 = x^2 + 2xy + y^2</p>

<p>if you want deeper insight, decompose the middle term.
x^2 + xy + xy + y^2</p>

<p>x(x+y) + y(x+y)
factor out the (x+y) to get:
(x+y)(x+y) which is (x+y)^2</p>