Expanding a logarithmic expression - Problem type 2