TeX source:
\begin{gathered} \log \left(x^{2}\right)-\log (x+5)^{4}+\log \left((3 x+5)^{x^{-1}}\right) \\ =\log \left(x^{2}\right)+\log \left((3 x+5)^{x^{-1}}\right)-\log (x+5)^{4} \\ =\log \left(x^{2}(3 x+5)^{x^{-1}}\right)-\log (x+5)^{4} \end{gathered}