\[(ab + 7)^{2} =\]
\[= \left( \text{ab} \right)^{2} + 2 \cdot 7ab + 7^{2} =\]
\[= a^{2}b^{2} + 14ab + 49.\]