TeX source:
\lg\left(x^2+6x+9\right)-\log_3(81) = \lg(x+3)