Distributing exponents over expressions