How to Solve Log Functions Step by Step

Formulas & functions · Updated November 22, 2026

To solve a logarithmic equation, first make sure every log argument is positive, then isolate or combine logarithms, rewrite the equation in exponential form when useful, solve for the variable, and check each candidate in the original equation. These steps help you find valid solutions without accepting values that make a logarithm undefined. “Solving a log function” usually means solving an equation that contains a logarithmic function, such as finding the x-value where its output equals a given number.

What You’ll Need

  • Paper or a way to write down algebra steps, so you can keep track of restrictions and candidate answers.
  • A calculator for checking arithmetic or approximating answers when an equation does not have a simple exact solution. You can solve many standard examples without one.
  • Familiarity with exponents, factoring, and basic equation solving. Remember that logarithms and exponents are inverse operations.

Step-by-Step

  1. Identify the equation and the logarithm’s base.

    Write down what you are solving for: usually an equation such as log_2(x - 1) = 3 or log_2(x - 1) + log_2(x - 3) = 3. In log_b(A), b is the base and A is the argument. A logarithm asks, “To what power must I raise b to get A?” If no base is shown, the convention depends on the class or context: log(x) often means base 10, while ln(x) means base e. Use the convention specified in the problem.

  2. Set the domain restrictions before doing algebra.

    For a real logarithm, its argument must be greater than zero. For example, in log_2(x - 1), require x - 1 > 0, so x > 1. If an equation has several logs, write a separate inequality for every argument and combine the restrictions. For log_2(x - 1) + log_2(x - 3), both arguments must be positive, so the domain is x > 3. If the base itself is a variable, it must also be positive and cannot equal 1.

  3. Isolate a logarithm when possible.

    If an equation has one log and other terms outside it, use ordinary algebra to put the log by itself. For instance, from 2log_3(x) + 1 = 5, subtract 1 and divide by 2 to get log_3(x) = 2. This form is ready to convert to exponential form. Do not divide or take a logarithm of both sides without checking that the operation is valid and that you have not lost a domain condition.

  4. Use logarithm rules to combine or expand logs carefully.

    When logarithms have the same base, addition can become multiplication inside one log: log_b(A) + log_b(B) = log_b(AB). Subtraction becomes division: log_b(A) - log_b(B) = log_b(A/B). A coefficient can become an exponent: klog_b(A) = log_b(A^k). These rules require positive arguments for the original logarithms. For example, log_2(x - 1) + log_2(x - 3) = 3 becomes log_2((x - 1)(x - 3)) = 3. Keep the original domain restrictions, even after combining the logs.

  5. Convert between logarithmic and exponential form.

    The equivalence log_b(A) = c means b^c = A, provided b > 0, b != 1, and A > 0. Apply it directly once a log is isolated. For example, log_3(2x + 1) = 2 becomes 3^2 = 2x + 1. Then solve: 9 = 2x + 1, so x = 4. Check the argument: 2(4) + 1 = 9, which is positive, so the answer is valid.

  6. Solve the resulting algebraic equation.

    After converting or combining, use the appropriate algebra: simplify, factor, use the quadratic formula, or isolate the variable. For the earlier example, log_2(x - 1) + log_2(x - 3) = 3 becomes log_2((x - 1)(x - 3)) = 3, then (x - 1)(x - 3) = 2^3 = 8. Expand and simplify to get x^2 - 4x - 5 = 0, which factors as (x - 5)(x + 1) = 0. The algebra produces candidates x = 5 and x = -1; neither is accepted until you check the domain.

  7. Check every candidate in the original equation.

    Substitute each value into the original logarithmic expression, not just the transformed equation. In the example, the domain was x > 3, so x = -1 is invalid: it makes both arguments negative. The value x = 5 makes the arguments 4 and 2, and log_2(4) + log_2(2) = 2 + 1 = 3. Therefore the only solution is x = 5. This check is essential because algebraic transformations can produce extraneous candidates.

  8. Report the answer in the form the problem asks for.

    For an equation, give the valid x-values and, where useful, state that no other candidates satisfy the domain. For a graphing or intersection question, describe the x-coordinate or coordinates where the graphs meet. If the task is to find a zero of a function, set the function equal to zero first. For example, the zero of f(x) = log_2(x - 1) - 3 comes from solving log_2(x - 1) = 3, giving x = 9. If an exact solution is not available, give an appropriately rounded numerical value and state how it was obtained.

Common Mistakes

Forgetting that the argument must be positive: A result can solve the transformed polynomial but still make an original log undefined. Write the domain restrictions at the start and use them to filter the final candidates.

Applying a log rule to unlike bases: You cannot combine log_2(x) and log_3(x) into one logarithm using the product or quotient rule. Those rules require the same base. If needed, rewrite logs using a change-of-base relationship or use a numerical method, while preserving the domain.

Misusing the product rule: A sum of logs becomes the log of a product, not the log of a sum. In general, log_b(A) + log_b(B) is log_b(AB), not log_b(A + B). Also, log_b(A + B) cannot be split into two logs.

Assuming a power distributes over addition: log_b(A^k) = klog_b(A), but log_b(A + B) does not equal log_b(A) + log_b(B). Keep parentheses clear when expanding or combining.

Keeping every quadratic root: Factoring is only part of the work. A negative root or a root that makes an argument zero may be outside the logarithm’s domain. Verify candidates in the original equation.

Tips

Write a short domain line before manipulating the equation, such as x - 1 > 0, x - 3 > 0; therefore x > 3. This makes rejected roots easy to explain and reduces the chance of overlooking a restriction.

When both sides are logarithms with the same valid base, you can often set their arguments equal because logarithmic functions with a base greater than zero and not equal to 1 are one-to-one. For example, log_5(x + 2) = log_5(3x - 6) gives x + 2 = 3x - 6, so x = 4. Check both arguments: they are positive at 4. Do not use this shortcut for different bases unless you first establish an equivalent form.

For calculator work with a base other than 10 or e, use the change-of-base identity log_b(x) = log(x)/log(b) or ln(x)/ln(b). This is useful for graphing and approximations, but it does not remove the requirement that x be positive. Keep exact forms when the question expects an exact answer.

Use a quick reasonableness check. If b > 1, the function log_b(x) increases as x increases; if 0 < b < 1, it decreases. Also, log_b(1) = 0 and log_b(b) = 1. These facts can help catch an implausible sign or answer before you submit it.

Troubleshooting

You get a negative argument after solving: That candidate is not a real solution. Recheck the original domain inequalities, then discard it. If all candidates fail, the equation has no real solution, even if the transformed algebraic equation has roots.

The equation will not combine into one logarithm: Check whether the bases actually match. If they do not, use change of base to express them consistently, or isolate each log and convert to exponential form if that leads to a manageable equation. Avoid forcing a product or quotient rule where its conditions are not met.

You get a complicated polynomial or repeated variables: First verify that the log rules were applied correctly and that parentheses were retained. Try a substitution such as u = log_b(x) only when the same log expression repeats, and remember you must later return to x and apply the original domain restrictions. Some equations require graphing or numerical approximation rather than elementary factoring.

A calculator gives a different decimal: Check that it is in the intended mode, that parentheses are entered around full arguments, and that you are using the correct base. For instance, log(2x + 1) is not necessarily the same as log(2) * x + 1. Compare the numerical result by substituting it into the original equation, and state the rounding precision.

Frequently Asked Questions

What is the first step when solving a logarithmic equation?

Find the domain by requiring every log argument to be greater than zero. Then isolate a logarithm or combine logs with matching bases. Recording restrictions first helps you reject invalid roots later.

How do I solve a log equation with one logarithm?

Isolate the logarithm, convert log_b(A) = c to A = b^c, solve the resulting equation, and check that the answer makes A positive. For example, log_2(x) = 3 gives x = 8.

Can I combine logarithms with different bases?

Not directly with the product and quotient rules. Those rules require the same base. You may use change of base to rewrite the logarithms, but be careful: the resulting equation may still need numerical or graphical methods.

Why do I have to check my answer in the original equation?

Transformations can create candidates that violate the positive-argument rule. Checking the original expression confirms that each log is defined and that the candidate actually satisfies the stated equation.

What if the equation has no exact algebraic solution?

Use a graphing tool or numerical solver to estimate where the two sides are equal, then substitute the estimate into the original equation to check the residual. Respect the domain and report the requested number of decimal places.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Formulas & functions

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.