Exponential equations by taking logarithms: equivalent transformations
Solve exponential equations with several bases by taking logarithms only of positive quantities and preserving exponent-domain restrictions.
Content updated: October 22, 2026
When several bases do not readily reduce to a common base, logarithms turn exponents into coefficients. Taking logarithms is an equivalent transformation only when both sides are positive and the same valid base is used.
Objectives: use logarithms to solve equations with several bases; retain exponent conditions; factor accurately and check solutions.
Prerequisites: the logarithm definition and rules, and quadratic equations.
On this page: Idea · Method · Examples · Practice · Further learning
1. When may logarithms be taken?
For $b>0$, $b\ne1$, and $U(x),V(x)>0$, injectivity of the logarithm makes $U=V$ equivalent to $\log_b U=\log_b V$. This also holds for $0<b<1$, since a decreasing logarithm is still one-to-one.
Positive-base powers are positive wherever their exponents are defined. If an equation includes a difference or a polynomial side, first check signs. For example, $2^x=-3$ has no solution because the left side is positive and the right side negative; do not write $\log_2(-3)$.
2. Choosing a base and handling the exponents
Choose an existing base or use ln. For $a,c>0$, the equality $a^{u(x)}=c^{v(x)}$ becomes $u(x)\ln a=v(x)\ln c$. Do not split the logarithm of a sum into a sum of logarithms. For a product of positive powers, the product rule is what allows a sum.
If an exponent is a fraction, record the values making its denominator 0 before taking logarithms. Retain these excluded values when clearing denominators. If the logarithmic equation has a factor containing $x$, solve the product equation rather than dividing by $x$ and losing the solution 0.
Logarithmic coefficients can be simplified before calculating a discriminant. A temporary symbol for a fixed value, such as $L=\log_3 2$, can reveal factors, but the final answer must refer to the defined value.
3. Worked examples
Example 1. A quadratic exponent
Solve $2^{x^2}=3^x$ on $\mathbb R$. Both sides are positive; base-2 logarithms yield $x^2=x\log_2 3$. Rearranging, $x(x-\log_2 3)=0$, so $x=0$ or $x=\log_2 3$. Do not divide by $x$: 0 is a genuine solution, since both sides then equal 1.
Example 2. An exponent with x in a denominator
Solve $3^x8^{x/(x+2)}=6$. Require $x\ne-2$; both sides are positive on this domain. Set $L=\log_3 2>0$. Taking base-3 logarithms gives
Multiply by the nonzero denominator and rearrange:
Thus $x=1$ or $x=-2-2L=-2-2\log_3 2$. The second is less than $-2$, since $L>0$, so neither is excluded. The preceding steps are equivalent on this domain, ensuring that both satisfy the original equation. Substitution of $x=1$ gives $3\cdot8^{1/3}=6$; the other solution is confirmed by the logarithmic relation just solved.
Example 3. A nonpositive right side
The equation $5^{2x-1}=0$ has no solution, since a positive power cannot be 0. Taking the logarithm of 0 is not a valid method. If the right side is a parameter $c$, only the branch $c>0$ permits $2x-1=\log_5 c$.
4. Practice exercises
- Solve $2^x=5^{x-1}$.
- Solve $2^{x^2}=4^x$.
- Solve $3^{1/(x-1)}=9$.
Show hints and answers
- Taking ln gives $x\ln2=(x-1)\ln5$, so $x=\ln5/(\ln5-\ln2)=\ln5/\ln(5/2)$. The denominator is not 0 because 5/2 differs from 1.
- A common base gives $x^2=2x$, so $x=0$ or 2.
- Require $x\ne1$. Taking base-3 logarithms gives $1/(x-1)=2$, so $x=3/2$, which satisfies the condition.
5. Common mistakes
Do not split the logarithm of a sum. Do not take logarithms of a nonpositive side or mix bases within one calculation. After clearing a denominator containing x, exclude the correct forbidden values; do not lose the solution 0 by dividing by x.
Leave a Reply