The method of expansion is based on the distributive law. It is a reverse process to factorisation. To learn more use the links below.