How it’s calculated
To solve an equation with x in the exponent, isolate the power, then take a logarithm of both sides. The power rule ln(bʸ) = y·ln b brings the exponent down so you can solve for x.
If both sides can be written as powers of the same base (such as 8 = 2³ and 16 = 2⁴), you can skip the logarithms: equal powers of the same base have equal exponents. With two different bases, take ln of both sides, collect the x terms and divide.
Example: 4e²ˣ + 5 = 12. Subtract 5: 4e²ˣ = 7. Divide by 4: e²ˣ = 1.75. Take ln: 2x = ln 1.75 ≈ 0.5596158. Divide by 2: x = ½·ln(7/4) ≈ 0.2798079.
No solution: a positive base raised to any power is positive, so if (c − d) ÷ a is 0 or negative there is no real solution (for example 3ˣ⁺¹ = −2).
Frequently asked questions
Should I use ln or log to solve an exponential equation?
Either works. log_b(y) = ln y ÷ ln b = log y ÷ log b, so the answer is the same. Use ln when the base is e, because ln(eʸ) = y directly.
Why does 3ˣ = −2 have no solution?
Any positive number raised to a real power is positive, so 3ˣ can never be negative or zero.
How do I solve 8ˣ⁺² = 16ˣ⁺¹?
Write both as powers of 2: 2³⁽ˣ⁺²⁾ = 2⁴⁽ˣ⁺¹⁾. The exponents must be equal, so 3x + 6 = 4x + 4 and x = 2. Choose the two-bases type and enter b = 8, p = 1, q = 2, B = 16, r = 1, s = 1.
How is this different from the exponential growth calculator?
The growth calculator works with a starting amount and a percentage rate. This one solves any equation of the form a·b^(px + q) + d = c, including two different bases, and shows the algebra.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator