Prof Robin Johnson demonstrates the general method of expanding a set of brackets.
Expansion of Brackets from Newcastle University Maths on Vimeo.