we call it foil when we are contracting, that is, putting stuff in brackets. when removing things from brackets, we call it expanding.

anyway, why did you multiply everything together?

let's do the question your way:

(5x + 7)^2 = (5x + 7)(5x + 7)

now we expand this using the distributive law, that is, we take the first term in the first set of brackets and multiply everything in the second set of brackets, then take the second term in the first set of brackets and multiply everything in the second set of brackets. i will color code things so you can follow. here goes:

(5x + 7)(5x + 7) = (5x)(5x) + (5x)(7) + 7(5x) + 7(7)

.......................= 25x^2 + 35x + 35x + 49

.......................= 25x^2 + 70x + 49

An even easier way to do this when expanding squares (IT DOES NOT WORK FOR OTHER POWERS!!!) is by doing the following.

we sqaure the first term

then multiply the first term by the second term and then by 2

then we square the last term

then we add them together

(5x + 7)^2 = (5x)^2 + 2*(5x)*7 + (7)^2

................= 25x^2 + 70x + 49

please retype this question using brackets7. x^2+x-2 / x^3+x^2 * x / x^2+3x+2