$\color{white}{\require{cancel}{placeholder}}$
So recently, I decided to do some fairly basic trigonometry for fun to see what I was able to remember. I decided to give myself a challenge and attempted to solve $27=\frac{1}{6^x}$ for $x$ to $3$ decimal places. While I was able to solve the equation, I'm not sure that I was right with the answer that I achieved.
Here's how I got my answer:
Set up the equation:
\begin{align} 27 = \frac{1}{6^x} \end{align}
Multiply both sides by $6^x$:
\begin{align} 27(6^x) = \frac{1}{\cancel{6^x}}(\cancel{6^x})\iff 27(6^x) = 1 \end{align}
Divide both sides by $27$:
\begin{align} \frac{\cancel{27}(6^x)}{\cancel{27}}=\frac{1}{27} & \iff 6^x = \frac{1}{27} \end{align}
Rewrite the equation in logarithmic form: $a^b=x \implies \log_ax=b$
\begin{align} \log_6\frac{1}{27}=x \iff \log_627^{-1}=x \iff -\log_627=x \end{align}
Simplifying the logarithm, we get $x \approx -1.839$.
This is my question:
Was I correct with the solution that I achieved, and if not, how would I achieve the correct answer?
Your solution is correct, but you don't need the various passages you show, before taking the logarithm of both sides of the equation. Therefore I suggest the simpler $$ \log(27)=\log\left(\frac{1}{6^x}\right) \tag1 $$ Which turns into $$ \log(27)=0-x\cdot \log(6) \tag2 $$ And solving for $x$ $$ x=-\frac{\log(27)}{\log(6)}\approx-1.839 \tag3 $$ By the way, the logarithm can be taken with any base: $e, 10, 6, 2$ and the result is still the same.
Alternatively, if you want to do something elegant that simplifies away the powers of three, you could rewrite passage (3) as $$ x=-\frac{\log(3^3)}{\log(3\cdot2)} =-\frac{3\cdot \log(3)}{\log(3)+\log(2)}=-\frac{3}{1+\frac{\log(2)}{\log(3)}}\tag4 $$