How to multiply rational expressions