basic formula

so we got

we are multiplying each terms with others; x with two other terms in other perentecies and than 2 with other terms in other perentecies same as x(x-2)=x^2-2x and ading other term -2(x-2)=-2x+4

hope this is understandable