Expanding Logarithmic Expressions