Skip to content

Search topics

Practise for free Sign in

Formula Exponentials and logarithms

Solving aˣ = b with logarithms

When to use it

Exponential equations where the base is not e; take logs of both sides. Numerical check: with x = ln 8 / ln 2 we get 2ˣ = 8. The equation aˣ = b has a real solution only for b > 0: for x = −10 the value 2ˣ is 1/1024, above 0, so aˣ = −4 can never be solved.

Last checked Source: Solve exponential equations Source: Solve exponential equations qualifications.pearson.com (opens in a new tab)

Solving aˣ = b with logarithms for your study of A-level maths: where it comes from and what it covers.

Worked case: Solve 4ˣ = 100.

See also Factor theorem, Difference of two squares, Exponential growth differential equation and Sum and difference of two cubes.

Result: 3.3219

Application 1: Solve 5^x = 40.0, giving x to 3 decimal places. Step 1: Take logs of both sides: x ln 5 = ln 40.0. Step 2: x = ln 40.0 / ln 5. Step 3: x = 2.292. Result: 2.292.

Application 2: Solve e^(2x) − 5e^x + 4 = 0. Step 1: Let u = e^x, so e^(2x) = u². (A hidden quadratic.) Step 2: Solve u² − 5u + 4 = 0, i.e. (u − 1)(u − 4) = 0. (Factorise.) Step 3: e^x = 1 or e^x = 4. (Both are positive, so both are valid.) Step 4: x = ln 1 or x = ln 4 (0.000 or 1.386). (Take natural logs.) Result: x = ln 1 or x = ln 4.

Application 3: Solve 2^(x+1) = 3^x. Step 1: Take logs: (x + 1) ln 2 = x ln 3. (Variables sit in both exponents.) Step 2: Expand and collect x terms: x ln 2 + ln 2 = x ln 3, so ln 2 = x(ln 3 − ln 2). (Group the x terms on one side.) Step 3: x = ln 2 / (ln 3 − ln 2) = 1.710. (Divide.) Result: 1.710.

Points to check

  • Dividing the numbers, solving 2ˣ = 8 as x = 4: The logs are divided, not the numbers: x = ln 8 / ln 2 = 3, not 8/2 = 4.
  • Subtracting the logs, solving 2ˣ = 8 as x = 1.3863: The correct step is a quotient: x = log 8 / log 2 = 3; the difference log 8 − log 2 is 1.3863.
  • Inverting the quotient, solving 2ˣ = 8 as x = ln(2)/ln(8): The number b goes on top: x = log b / log a = 3, not log a / log b = 1/3.
  • Rejecting a root because it makes x negative; e^x = u only needs u > 0.
  • Writing ln(a^(x+1)) as ln a + x without the multiplication by ln a.

Study brief

  • When preparing for the a level maths, you must understand how to work with functions of x. These include exponential and logarithmic functions. Specifically, students should know how to handle the function ax where a is a positive number. In cases where a is greater than 1 or less than 1, the graph of ax will differ in shape. You are also expected to solve equations of the form e raised to the power of ax plus b equals p, or where ln (ax + b) equals q. Such problems involve the inverse function of e raised to the x. To solve these, you can apply the laws of logarithms. One law states that loga x plus loga y equals loga (xy), while another indicates that loga x minus loga y equals loga (x divided by y). Additionally, k loga x is equal to loga x raised to the power k. For further calculations, the change of base formula is available. Using these mathematical principles, equations involving powers and logarithms can be addressed as part of the wider study of algebra and functions.

Practise for free

Test yourself with exam-style questions and see why each answer is right or wrong.

Start practising
Free practice, no card Start without an account Sources checked Every fact names its official source
Works on any device Phone, tablet or desktop
Contact us Questions or a correction