Home › Calculators › Exponential Equation Solver
Exponential Equation Solver
Solve exponential equations free — find x in a^x = b, a^x = x^b and more, with full step-by-step working. Try the Harvard 3^x = x^9 challenge: the surprising answer is x = 27, with a second solution x ≈ 1.1508.
Method: Logarithms for a^x = b; numerical scan and bisection for a^x = x^b; substitution to verify every answer.
MATH TOOL
Exponential Equation Solver Calculator
Choose the calculation you need. Calculations run in your browser.
This tool works in your browser and does not send your calculations anywhere. It is intended for positive bases (a > 0, a ≠ 1) and positive values of b.
AI CITATION QUICK ANSWER
What Is an Exponential Equation Solver?
Quick Answer: An exponential equation solver finds the value of x in equations where the unknown appears in the exponent, such as 2^x = 32 or 3^x = x^9. Calcrio’s free exponential equation solver handles three cases: solving a^x = b with logarithms, solving a^x = x^b numerically, and verifying a proposed solution by substitution — with every step shown.
How to Use the Exponential Equation Solver
The tool has three modes so you can start with the equation you already have.
Solve a^x = b — Find x when the unknown is in the exponent and the other side is a number, for example 2^x = 32.
Solve a^x = x^b — Find x when the unknown appears on both sides, for example 3^x = x^9. The solver finds both real solutions where they exist.
Verify a Solution — Check a proposed value of x by substituting it into both sides of the equation and comparing the results.
- Choose a mode that matches your equation.
- Enter the values of a, b, and (for verification) your proposed x.
- Select Calculate to generate the result.
- Check the result cards for the solution, the worked steps, and the substitution check.
The calculator runs in your browser and is intended for positive bases (a > 0, a ≠ 1) and positive values of b. It is free to use, with no sign-up, and it is useful for homework checks, practice, and verifying manual work.
What Is an Exponential Equation?
An exponential equation is an equation in which the unknown variable appears in the exponent. The most common form is a^x = b, where a is the base, x is the unknown exponent, and b is the result. In a^x = 32, the exponent is what you must find.
Exponential equations are different from power equations. In a power equation such as x^2 = 16, the unknown is the base. In an exponential equation such as 2^x = 16, the unknown is the exponent. The two types need different methods: power equations are solved by taking roots, while exponential equations are solved by taking logarithms.
The Key Idea: Logarithms Undo Exponents
A logarithm is the inverse of an exponent. If 2^x = 32, then x is the logarithm of 32 to base 2, written x = log₂(32). Because 2^5 = 32, log₂(32) = 5. The solver uses the change-of-base formula so any base can be handled with natural logarithms:
x = ln(b) / ln(a)
Worked Examples
| Equation | Method | Solution |
|---|---|---|
| 2^x = 32 | Same base: 32 = 2^5 | x = 5 |
| 5^x = 125 | Same base: 125 = 5^3 | x = 3 |
| 10^x = 1000 | Same base: 1000 = 10^3 | x = 3 |
| 2^x = 3 | Take logs: x = log₂(3) = ln 3 / ln 2 | x ≈ 1.5850 |
| 4^(x+1) = 64 | 64 = 4^3, so x + 1 = 3 | x = 2 |
| e^x = 20 | Take natural logs: x = ln 20 | x ≈ 2.9957 |
| 3^(2x) = 81 | 81 = 3^4, so 2x = 4 | x = 2 |
Example: 2^x = 32, Solved Two Ways
Same-base method. Rewrite both sides with base 2. Since 32 = 2 × 2 × 2 × 2 × 2 = 2^5, the equation becomes 2^x = 2^5. When the bases are equal, the exponents must be equal, so x = 5. Check: 2^5 = 32.
Logarithm method. Take the natural logarithm of both sides: ln(2^x) = ln(32). The power rule for logarithms gives x · ln 2 = ln 32, so x = ln 32 / ln 2 = 3.4657 / 0.6931 = 5. Both methods agree.
Example: 2^x = 3, Where the Answer Is Not a Whole Number
Not every exponential equation has a whole-number answer. Take natural logs of both sides: x · ln 2 = ln 3, so x = ln 3 / ln 2 = 1.0986 / 0.6931 ≈ 1.5850. Check by substitution: 2^1.5850 ≈ 3.0001, which confirms the answer to four decimal places.
How to Solve Exponential Equations Step by Step
Method 1: Rewrite With the Same Base
This is the fastest method when it works. Rewrite both sides of the equation as powers of the same base, then set the exponents equal.
Example: 3^(2x) = 81. Since 81 = 3^4, the equation becomes 3^(2x) = 3^4. The bases are both 3, so 2x = 4 and x = 2. Check: 3^(2 × 2) = 3^4 = 81.
Example: 4^(x+1) = 64. Since 64 = 4^3, the equation becomes 4^(x+1) = 4^3, so x + 1 = 3 and x = 2. Check: 4^(2+1) = 4^3 = 64.
This method only works when both sides can be written as powers of the same base. When they cannot — for example, 2^x = 3 — use logarithms instead.
Method 2: Take Logarithms of Both Sides
This is the general method. It works for every equation of the form a^x = b.
- Take the natural logarithm (ln) of both sides: ln(a^x) = ln(b).
- Use the power rule: ln(a^x) = x · ln(a), so the equation becomes x · ln(a) = ln(b).
- Divide by ln(a): x = ln(b) / ln(a).
Example: e^x = 20. The base is e, so ln(e^x) = x, and the equation becomes x = ln 20 ≈ 2.9957. Check: e^2.9957 ≈ 20.0000.
Example: 10^x = 1000. Using common logarithms (base 10), x = log₁₀(1000) = 3, because 10^3 = 1000.
Method 3: The Harvard Question — Solving 3^x = x^9
The equation 3^x = x^9 is harder, because x appears on both sides: once in the exponent and once as the base. This is the question that went viral as a Harvard-style challenge, and its surprising answer is x = 27.
Step 1: Guess the structure. The numbers 3 and 9 are related: 9 = 3^2. Try a value of x that is a power of 3, so that both sides become powers of 3.
Step 2: Try x = 27. Note that 27 = 3^3. Then the left side is 3^27, and the right side is 27^9 = (3^3)^9 = 3^(3 × 9) = 3^27. Both sides are equal: 3^27 = 27^9 = 7,625,597,484,987. So x = 27 is a solution.
Step 3: Find the second solution. Take natural logs of both sides: x · ln 3 = 9 · ln x. This equation has a second real solution, x ≈ 1.1508. Check: 3^1.1508 ≈ 3.5406 and 1.1508^9 ≈ 3.5400, which agree to three decimal places.
| Solution | Left side: 3^x | Right side: x^9 | Verdict |
|---|---|---|---|
| x = 27 | 3^27 = 7,625,597,484,987 | 27^9 = 7,625,597,484,987 | Exact match |
| x ≈ 1.1508 | 3^1.1508 ≈ 3.5406 | 1.1508^9 ≈ 3.5400 | Match (rounded) |
The solver finds both solutions by scanning for sign changes in the function f(x) = x · ln 3 − 9 · ln x and refining each root by bisection. The full walkthrough is in our guide on how to solve 3^x = x^9.
Method 4: Verify by Substitution
Whatever method you use, always verify the answer by substitution: put the value of x back into the original equation and check that both sides are equal.
Example: For 2^x = 32 with the proposed solution x = 5, the left side is 2^5 = 32 and the right side is 32. Both sides match, so x = 5 is correct. If a proposed value gives different numbers on the two sides, it is not a solution.
Common Mistakes When Solving Exponential Equations
1. Taking the Logarithm of Only One Side
Logarithms must be applied to both sides of the equation. From 2^x = 32, the correct step is ln(2^x) = ln(32), not ln(2^x) = 32.
2. Forgetting the Power Rule for Logarithms
ln(a^x) equals x · ln(a), not (ln a)^x and not x + ln(a). The exponent comes down and multiplies the logarithm of the base.
3. Assuming Every Answer Is a Whole Number
Many exponential equations have non-integer solutions. 2^x = 3 gives x ≈ 1.5850, not 1 or 2. Always allow for a decimal answer, and check it by substitution.
4. Dividing by ln(a) When a = 1
If the base is 1, the equation 1^x = b has no solution unless b = 1, and ln(1) = 0, so division by ln(a) is impossible. The solver requires a > 0 and a ≠ 1.
5. Ignoring the Domain: x > 0 in a^x = x^b
In the equation a^x = x^b, the right side x^b is only defined for positive real x when b is not an integer, and ln(x) requires x > 0. Solutions must be checked against the domain. The second solution of 3^x = x^9, x ≈ 1.1508, is positive, so it is valid.
Benefits and Limitations
Fast — Solve a^x = b instantly with the logarithm formula, instead of guessing powers by hand. Clear — Every step is shown: the log step, the division, and the substitution check. Flexible — Switch among solving a^x = b, solving a^x = x^b, and verifying a proposed solution. Verified — Both sides are computed and compared, so an incorrect answer is caught immediately.
Benefits
- Solves a^x = b exactly, or to four decimal places when the answer is irrational.
- Finds both real solutions of a^x = x^b where they exist, including the non-obvious second solution.
- Shows every worked step, so the result can be followed and checked by hand.
- Verifies any proposed solution by substitution, with both sides shown.
- Free in the browser, on phones, tablets, and desktops.
Limitations
- Requires a positive base (a > 0, a ≠ 1) and a positive value of b.
- The a^x = x^b mode finds real solutions only; complex solutions are not shown.
- Equations with x in two different exponents, such as 2^x + 3^x = 5, are not supported.
- Numerical solutions are accurate to four decimal places, not exact.
AI SEARCH & FEATURED SNIPPET SECTION
Quick Definitions
| Question | Direct Answer |
|---|---|
| What is an exponential equation? | An equation in which the unknown variable appears in the exponent, such as 2^x = 32. |
| How do you solve a^x = b? | Take logarithms: x = ln(b) / ln(a). For example, 2^x = 32 gives x = ln 32 / ln 2 = 5. |
| What is the answer to 3^x = x^9? | x = 27, because 3^27 = 27^9 = 7,625,597,484,987. There is also a second real solution, x ≈ 1.1508. |
| What is a logarithm? | The inverse of an exponent: log₂(32) = 5 because 2^5 = 32. |
| What is the natural logarithm? | The logarithm to base e (≈ 2.71828), written ln. For example, ln 20 ≈ 2.9957. |
| How do you check an exponential equation answer? | Substitute the value of x into both sides and confirm they are equal. |
FAQ
Frequently Asked Questions
What is an exponential equation solver?
An exponential equation solver is a tool that finds the value of x in equations where the unknown is in the exponent, such as 2^x = 32 or 3^x = x^9. Calcrio’s solver is free and shows every step, including the logarithm step and a substitution check.
How do you solve 3^x = x^9?
The main solution is x = 27, because 27 = 3^3, so 27^9 = (3^3)^9 = 3^27, which equals the left side. Both sides equal 7,625,597,484,987. There is also a second real solution, x ≈ 1.1508, found by taking natural logs: x · ln 3 = 9 · ln x.
How do you solve exponential equations with logarithms?
Take the natural logarithm of both sides, use the power rule ln(a^x) = x · ln(a) to bring the exponent down, then divide by ln(a). The formula is x = ln(b) / ln(a). For 2^x = 3, x = ln 3 / ln 2 ≈ 1.5850.
What is the difference between an exponential equation and a power equation?
In an exponential equation such as 2^x = 16, the unknown is the exponent, and it is solved with logarithms. In a power equation such as x^2 = 16, the unknown is the base, and it is solved by taking roots. The two types need different methods.
Can exponential equations have more than one solution?
Yes. The equation 3^x = x^9 has two real solutions: x = 27 and x ≈ 1.1508. Equations of the form a^x = b, however, have exactly one real solution when a > 0, a ≠ 1, and b > 0.
Where are exponential equations used in real life?
They model anything that grows or decays by a constant percentage: compound interest, population growth, radioactive decay, and half-life calculations. For example, $1,000 invested at 5% annual interest grows to 1000 × 1.05^10 = $1,628.89 after 10 years, and 100 g of a substance with a 5-year half-life falls to 25 g after 10 years.
INTERNAL LINKING
Related Math Tools
Factor Calculator — Find factors, factor pairs, prime factorization, GCF, and LCM of any integer.
Average Calculator — Find the average (mean) of any set of numbers instantly.
METHODOLOGY
Exponential Equation Solver Methodology
Solving a^x = b. Take natural logarithms of both sides and apply the power rule:
x · ln(a) = ln(b) → x = ln(b) / ln(a)
When b is an exact power of a, the answer is a whole number (for example, 2^x = 32 gives x = 5). Otherwise the answer is irrational and is reported to four decimal places.
Solving a^x = x^b. Take natural logarithms of both sides:
x · ln(a) = b · ln(x)
This equation has no closed-form solution using elementary functions alone. Its solutions can be written with the Lambert W function: taking logs gives ln x / x = ln a / b, and the two real branches of W give the two real solutions where they exist. The calculator solves it numerically instead: it scans for sign changes in f(x) = x · ln(a) − b · ln(x) over x > 0 and refines each root by bisection to four decimal places. For 3^x = x^9 this finds x = 27 (exact, verified by 3^27 = 27^9 = 7,625,597,484,987) and x ≈ 1.1508.
Verifying a proposed solution. Substitute the proposed x into both sides of the original equation and compare. The two sides are shown with their computed values, so the check is transparent.
These formulas give deterministic mathematical results from the values entered. The page is intended as an educational calculator and verification tool.
REFERENCES
Mathematical References
Find the Value of x in Your Exponential Equation
Enter your equation above to solve for x with full worked steps, or verify a solution you already have.
