Please help and show each step and explain its concept and reasons. Thanks so much.
更新1:
answer comes out to be (a+b)(a^2-ab+b^2+1) idk how it gets to that though please explain.