keepcalculator

06 Numbers and Powers

Log Condense and Expand Calculator With Solutions

Card No. 06·0235 · Updated · Standard formula, shown below

The calculator on this card is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

A log condense and expand calculator rewrites logarithmic expressions between expanded form and a single logarithm, showing the rule and steps used. Enter a valid expression and choose whether to expand or condense it; the result is algebraic, so it may include conditions on variables rather than one numerical answer.

Formula

This calculator applies logarithm identities. For expansion, a logarithm of a product becomes a sum, a logarithm of a quotient becomes a difference, and an exponent becomes a coefficient:

  • Product rule: logb(MN) = logb(M) + logb(N).
  • Quotient rule: logb(M/N) = logb(M) − logb(N).
  • Power rule: logb(Mp) = p logb(M).

Condensing uses the same identities in reverse. Here, b is the logarithm’s base (dimensionless), M and N are its arguments (dimensionless positive quantities), and p is an exponent (dimensionless). The calculator example uses common logarithms, where the base is 10; the same transformations work with any fixed base greater than zero and not equal to 1. The expression is an input, not a numeric variable with units, so this page’s specification block is illustrative rather than a general-purpose parser interface.

Worked Example

Using the default expression, 2 log(x) + log(y), and the default Expand operation:

  1. Apply the power rule in reverse to the first term: 2 log(x) = log(x2).
  2. Apply the product rule to add the two logarithms: log(x2) + log(y) = log(x2y).
  3. The condensed result is log(x2y).

This equality is valid for real logarithms when x > 0 and y > 0. The input form is chosen to demonstrate condensing; selecting Expand on an already expanded expression does not change its structure.

What Expanding and Condensing Mean

Expanding exposes multiplication, division, and powers inside a logarithm as separate logarithmic terms. It is useful when solving logarithmic equations, simplifying expressions, or differentiating a form where the logarithm rules make the structure clearer. Condensing combines terms into one logarithm, which is often useful before applying a one-to-one property or presenting a compact final expression.

For example, 3 log2(a) − log2(b) expands as written and condenses to log2(a3/b). The coefficient becomes an exponent, and subtraction becomes division. The base must match across terms to combine them this way; log2(a) + log5(b) cannot be condensed into one ordinary logarithm by the product rule.

How to Use the Calculator

  • Enter the complete expression, including parentheses where grouping matters.
  • Keep the logarithm base visible or state it consistently. If no base is written in a school exercise, check the convention being used: log often means base 10, while ln means base e.
  • Select Expand to distribute products, quotients, and powers, or Condense to combine terms.
  • Check the displayed result against the original expression’s domain and preserve restrictions on variables.

A symbolic result is not the same as a decimal evaluation. To calculate a number, values for the variables are also needed; to rewrite a symbolic expression, those values are not needed. A calculator that only accepts numbers may evaluate logarithms but cannot necessarily manipulate arbitrary algebraic expressions.

Domain Conditions and Common Mistakes

For real logarithms, every argument must be positive. Thus log(x) requires x > 0. This matters especially when a variable is raised to a power or appears in a denominator. For instance, log(x2) is defined for nonzero real x, while 2 log(x) requires x > 0. Those expressions are not equivalent over all real x: for x < 0, the first is defined but the second is not. Expanding can therefore change the apparent domain unless the original restrictions are retained.

  • Do not split a sum inside a log: log(M + N) is not log(M) + log(N).
  • Do not combine unlike bases: the product and quotient rules require the same base.
  • Watch minus signs: log(M) − log(N) becomes log(M/N), not log(M − N).
  • Keep parentheses: a coefficient applies to the whole logarithm, so 2 log(xy) expands to 2 log(x) + 2 log(y).
  • Do not discard restrictions: a transformed expression may look defined for values excluded by the original form.

Rounding is usually irrelevant in a symbolic transformation, but it matters if you substitute numbers and evaluate. Rounding intermediate logarithms can create small discrepancies, so keep full calculator precision until the final step. Logarithms themselves are dimensionless; do not take the logarithm of a physical measurement with units without first expressing it as a dimensionless ratio to a reference quantity.

Choosing a Form and Checking the Result

Choose the form that suits the next algebraic step. Expansion can help when a product or power needs to be separated; condensation can help when an equation has several logarithms of the same base. Neither form is automatically simpler in every problem. A long product may be clearer as several terms, while a sum of many log terms may be shorter as one quotient or product.

To check a transformation, choose permitted positive values for the arguments and compare numerical evaluations on both sides. This is a useful error check, not a proof: numerical agreement at a few values cannot establish an identity. A symbolic check should follow each rule and confirm that the domains agree or that the required restrictions have been stated. When solving an equation, also substitute any candidate solutions into the original equation, because algebraic transformations can introduce values outside the original domain.

Frequently Asked Questions

How do you condense logarithms?
Use the power rule to move coefficients into exponents, the product rule to combine addition, and the quotient rule to combine subtraction. The logarithms must have the same base, and their arguments must satisfy the real-logarithm domain conditions.

How do you expand log(x squared)?
By the power rule, log(x2) = 2 log(|x|) for real x ≠ 0. It is commonly written as 2 log(x) only when the problem assumes x > 0. The absolute value distinction preserves the correct domain.

Can log(a + b) be expanded?
No standard logarithm identity splits a sum inside the argument. In general, log(a + b) is not equal to log(a) + log(b). The product rule applies to multiplication, not addition.

Can logarithms with different bases be combined?
Not directly with the product or quotient rules. First, if appropriate, use the change-of-base formula logb(x) = ln(x)/ln(b); then treat the resulting expression carefully. Different bases do not become one common logarithm merely by joining their arguments.

Why does condensing sometimes change the answer’s domain?
Log rules are identities only where the original logarithms are defined. A compact expression can appear to allow extra values, so retain the original restrictions and check proposed solutions in the starting equation.

Related

Formula used
in expr | Expression | - | 2*log(x) + log(y) | -
sel action | Operation | Expand=1, Condense=2
out result | Result | - | log(x^2*y) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →