Multiply and add like terms:

(w+1)(w+2)\displaystyle {\left({w}+{1}\right)}{\left({w}+{2}\right)}