$$(a-b)^2=a^2-2ab+b^2$$
Example 1:| $(a-2)^2 = a^2 - 2\cdot a \cdot 2 + 2^2 = a^2 - 4a + 4$ Example 2:| $A (3x-5y)^2 &= (3x)^2 - 2 \cdot 3x \cdot 5y + (5y)^2\\ &= 9x^2 - 30xy + 25y^2 A$