(((1 + x))^2) == 1 + 2  x + (x^2)

(((1 + x))^2) === 1 + 2  x + (x^2)

Expand[(((1 + x))^2)] === 1 + 2  x + (x^2)

Expand[(((1 + x))^2) - (1 + 2  x + (x^2))] == 0