Properties of Log Functions: Rules, Graphs, and Examples

Charts & pivot tables · Updated November 22, 2026

A logarithmic function is the inverse of an exponential function: logb(x) tells you the exponent to which the base b must be raised to produce x. Its key properties are a positive input domain, a range of all real numbers, and logarithm rules for products, quotients, and powers; the base must be positive and cannot equal 1.

What a Logarithmic Function Means

The expression y = logb(x) is equivalent to the exponential statement by = x. For example, log2(8) = 3 because 23 = 8. A logarithm is not a different kind of arithmetic operation so much as a way to ask for an exponent. This inverse relationship connects logarithmic and exponential equations and explains many of their shared graph features.

In logb(x), b is the base and x is the argument, or input. Common notations include:

  • Common logarithm: log(x) usually means log10(x) in school algebra and many scientific contexts.
  • Natural logarithm: ln(x) means loge(x), where e is an irrational number approximately equal to 2.71828.
  • Other bases: log2(x), for instance, is useful when thinking about repeated doubling or binary information.

Notation can vary by textbook or field, so check how a source defines log if the base is not written. In calculus and many higher-level settings, ln is used for the natural logarithm, while an unqualified log may still depend on the author’s convention.

The Main Logarithm Properties

Logarithm laws turn multiplication, division, and exponents into simpler operations. They apply when the quantities inside the logarithms are positive and the base is valid. For positive x and y, and real r, the main rules are:

  • Product rule: logb(xy) = logb(x) + logb(y).
  • Quotient rule: logb(x/y) = logb(x) − logb(y).
  • Power rule: logb(xr) = r logb(x), when the real-valued expressions are defined.
  • Identity values: logb(1) = 0 and logb(b) = 1.
  • Inverse relationships: logb(bx) = x, and blogb(x) = x for x > 0.

For example, log3(9 × 27) can be evaluated as log3(9) + log3(27) = 2 + 3 = 5. The original product is 243, and 35 = 243, confirming the result. The quotient rule works similarly: log10(1000/10) = 3 − 1 = 2, which agrees with log10(100) = 2.

The power rule explains why logarithms can help solve exponential equations. If 5x = 12, then x = log5(12), or, using natural logarithms, x = ln(12)/ln(5). A calculator can evaluate the latter even if it does not have a dedicated log base 5 key.

Domain, Range, and Base Restrictions

For a real-valued logarithmic function f(x) = logb(x), the base must satisfy b > 0 and b ≠ 1. A zero or negative base does not produce the usual real exponential function, and a base of 1 is unhelpful because 1 raised to any exponent remains 1. The argument must satisfy x > 0: zero and negative numbers are outside the real logarithm’s domain.

The range is all real numbers. The exponent can be any real value, and b raised to that exponent is always positive when b is positive. For instance, log2(1/8) = −3 because 2−3 = 1/8. A negative logarithm value is therefore perfectly valid; it indicates that the positive input lies between 0 and 1 when the base is greater than 1.

It is important to distinguish a negative input from a negative answer. log5(−25) has no real value, but log5(1/25) = −2. In complex-number mathematics, logarithms can be extended to negative and complex inputs, but that involves additional definitions and is not the ordinary real-valued function used in introductory algebra.

For a logarithmic expression with a more complicated argument, the domain comes from requiring the entire argument to be positive. For example, the domain of log2(x − 4) is x > 4, not merely x ≠ 4. For log3(x2 − 1), the condition is x2 − 1 > 0, so x < −1 or x > 1.

Graph Shape and Behavior

The graph of y = logb(x) passes through (1, 0), because b0 = 1, and through (b, 1), because b1 = b. It has a vertical asymptote at x = 0: as the input approaches zero from the positive side, the function grows without bound in magnitude. There is no y-intercept, since x = 0 is not in the domain.

When b > 1, the graph is increasing. Larger positive inputs require larger exponents to produce them. It rises quickly near x = 0 and then grows more slowly as x increases. When 0 < b < 1, the graph is decreasing instead; for example, log1/2(2) = −1, since (1/2)−1 = 2. Both kinds of logarithmic graphs have the same domain, range, intercept, and vertical asymptote.

The graph is the reflection of y = bx across the line y = x, because inverse functions exchange input and output. This gives a useful visual check: the exponential graph has a horizontal asymptote at y = 0, while its logarithmic inverse has a vertical asymptote at x = 0. The logarithm’s gradual growth is why a small change in output can correspond to a much larger change in input at high values.

Transformations of Logarithmic Graphs

Transformed logarithms can be described by y = a logb(x − h) + k, where a ≠ 0. The expression x − h shifts the graph horizontally, while k shifts it vertically. The graph’s vertical asymptote moves from x = 0 to x = h, and the domain becomes x > h. The range remains all real numbers as long as a is nonzero.

The multiplier a stretches or compresses the graph vertically; if a is negative, it also reflects the graph across the horizontal axis. For example, y = 2 log10(x − 3) + 1 has domain x > 3, vertical asymptote x = 3, and the point (4, 1), since log10(1) = 0. This example shows why domain restrictions should be read from the argument before graphing.

A horizontal stretch can also arise from a factor multiplying x inside the logarithm. For instance, log2(3x) has the same domain as x > 0, but its horizontal position differs from log2(x). The product rule gives log2(3x) = log2(3) + log2(x) for x > 0, making the vertical shift apparent.

Changing Bases and Evaluating Logs

For positive x and valid bases b and c, the change-of-base formula is logb(x) = logc(x) / logc(b). A convenient version is logb(x) = ln(x) / ln(b), or the same ratio using common logarithms. The denominator is not zero because b ≠ 1.

To estimate log2(10), for example, use ln(10)/ln(2), which is approximately 3.322. This makes sense because 23 = 8 and 24 = 16, so the exponent that produces 10 must lie between 3 and 4. The formula is also useful when a calculator offers only log and ln keys.

For exact mental calculations, look for a familiar power. log4(64) = 3 because 43 = 64. For an input that is not an exact power, a decimal approximation is usually appropriate, but it should be interpreted as an exponent rather than as a count of multiplication steps. A fractional value such as log2(3) ≈ 1.585 means 2 raised to about 1.585 equals 3.

Solving Logarithmic Equations

To solve an equation containing logarithms, use the inverse relationship or the logarithm laws, then check that every logarithm’s argument is positive. For example, log2(x − 1) = 3 implies x − 1 = 23, so x = 9. Substitution gives log2(8) = 3, and the argument is positive.

If two logarithms with the same valid base are equal, their arguments are equal, provided both arguments satisfy the domain restrictions. Thus log5(x + 2) = log5(3x − 6) leads to x + 2 = 3x − 6, or x = 4. Checking gives arguments 6 and 6, so this solution is valid.

Combining logarithms can also help, but the domain check matters. Consider log2(x) + log2(x − 2) = 3. The domain requires x > 2. The product rule gives log2(x(x − 2)) = 3, so x2 − 2x = 8. The roots are 4 and −2, but only x = 4 meets the original domain. The other root is an extraneous solution introduced by the algebraic equation.

Common Mistakes and Misconceptions

A frequent error is treating a sum inside a logarithm as if it could be separated. In general, logb(x + y) is not logb(x) + logb(y). For instance, log10(10 + 10) = log10(20), about 1.301, while log10(10) + log10(10) = 2. The product rule applies to multiplication, not addition.

Another mistake is forgetting that an argument must be positive. Even if algebra produces a candidate solution, it may not belong to the domain of the original equation. Write the argument restrictions early, especially when a problem involves several logarithms or a logarithm of a variable expression.

It is also incorrect to cancel a logarithm against a number or to assume log(x) means the same base in every context. Use the inverse rule carefully: logb(bx) = x, but logb(x + y) has no corresponding cancellation rule. When notation is ambiguous, identify the base and rewrite the expression using the exponential definition or change-of-base formula.

Where Logarithms Are Useful

Logarithms are useful whenever a quantity changes multiplicatively or when an unknown appears as an exponent. They help solve equations such as compound growth models, compare very large ranges of values, and turn products into sums for calculation. Their use does not make the underlying quantities additive; it provides a scale or algebraic tool that makes some comparisons easier.

Several familiar scales use logarithmic relationships, though their precise definitions and reference values differ. The pH scale describes acidity through a logarithm related to hydrogen ion concentration. Decibels express ratios on logarithmic scales, with the formula depending on whether the measured quantity is power or an amplitude such as sound pressure. In computing, repeated halving means some search procedures need a number of steps proportional to log2(n), rather than n, under the relevant algorithmic assumptions.

These examples also explain why the base is chosen to suit the task. Base 10 is convenient for decimal magnitudes, base 2 for binary processes, and base e for many continuous-growth models and calculus. A change of base lets these choices be converted mathematically, but the interpretation of a particular scale still depends on its definition.

Frequently Asked Questions

What is the domain of a logarithmic function?
The basic real function logb(x) is defined for x > 0. For a transformed function, require the entire expression inside the logarithm to be positive; for example, log2(x − 4) requires x > 4.

Can a logarithm have a negative answer?
Yes. A negative result means the positive input is a fractional power of the base. For example, log2(1/8) = −3. This differs from a negative input, which has no real logarithm.

Why can’t the base be 1?
Because 1 raised to any real exponent equals 1, it cannot produce other positive inputs. The exponential function would not have a unique inverse, so log1(x) is not defined as a logarithmic function.

Is log the same as ln?
Not always. ln specifically means base e. In many algebra and science contexts, log means base 10, but some advanced fields use log for the natural logarithm. Follow the convention stated in the source or course.

What is the difference between log(x + y) and log(x) + log(y)?
They are generally different. The product rule says logb(xy) = logb(x) + logb(y), while there is no general addition rule that splits logb(x + y).

Related

Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.

More in Charts & pivot tables

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

Spotted an error in this guide? Let us know.