multiplying algebraic fractions with exponents