how to expand an equation