Skip to main content
Solve for n
Tick mark Image
Solve for n (complex solution)
Tick mark Image

Share

2^{n}=126
Use the rules of exponents and logarithms to solve the equation.
\log(2^{n})=\log(126)
Take the logarithm of both sides of the equation.
n\log(2)=\log(126)
The logarithm of a number raised to a power is the power times the logarithm of the number.
n=\frac{\log(126)}{\log(2)}
Divide both sides by \log(2).
n=\log_{2}\left(126\right)
By the change-of-base formula \frac{\log(a)}{\log(b)}=\log_{b}\left(a\right).