yes this is solved by the distributive property of multiplication.
[tex] {(a + b)}^{2} = (a + b)(a + b)[/tex]
[tex] = {a}^{2} + ab + {b}^{2} + ab[/tex]
[tex] {a}^{2} + 2ab + {b}^{2} [/tex]
therefore
[tex] {(a + b)}^{2} = {a}^{2} + {b}^{2} + 2ab[/tex]