5. Multiply

 

(a+b)(a^2-a+b^2)

 

Multiply each term in the first polynomial by each term in the

other polynomial.

 

a^3-a^2b+a^2b+ab^2-ab^2+b^3

 

and the answer is

 

a^3+b^3