AJ Designer

Logarithm Calculator

y equals log base b of x

Solution

Share:

Logarithm (y)

A logarithm answers the question “to what power must the base b be raised to produce x?” The equation y = log_b(x) means b^y = x. Common bases include 10 (common log), e (natural log), and 2 (binary log).

y = log_b(x)

Antilogarithm (x)

The antilog reverses a logarithm. Given a base b and exponent y, the antilog computes x = b^y. This is useful for converting log-scale values back to their original magnitude.

x = b^y

Base (b)

Solve for the base when you know x and y. The base must be positive and not equal to 1. This is useful for identifying an unknown exponential growth or decay rate.

b = x^(1/y)

How It Works

A logarithm is the inverse of exponentiation — it answers “to what power must the base be raised to produce x?” The equation y = log_b(x) means b^y = x. This calculator solves for any of the three variables: y (the log), x (the antilog), or the base b. Enter two known values and the calculator instantly returns the third using the change-of-base formula log_b(x) = ln(x) / ln(b).

Example Problem

Find log₁₀(1000):

  1. Identify the known values: base b = 10 and argument x = 1000.
  2. Write the logarithm equation: y = log₁₀(1000).
  3. Apply the change-of-base formula: y = ln(1000) / ln(10).
  4. Calculate the numerator: ln(1000) ≈ 6.9078.
  5. Calculate the denominator: ln(10) ≈ 2.3026.
  6. Divide: y = 6.9078 / 2.3026 = 3. So log₁₀(1000) = 3, confirming that 10³ = 1000.

When to Use Each Variable

  • Solve for y (logarithm)when you know the base and x, and want to find what power the base must be raised to.
  • Solve for x (antilog)when you know the base and exponent y, and want to reverse a logarithmic operation.
  • Solve for Basewhen you know x and y, and want to identify the base of the exponential relationship.

Key Concepts

A logarithm is the inverse of exponentiation — it answers ‘to what power must the base be raised to produce x?’ The three most common bases are 10 (common log, used in pH and decibels), e (natural log, used in calculus and growth models), and 2 (binary log, used in computer science). The change-of-base formula log_b(x) = ln(x)/ln(b) lets you convert between any bases.

Applications

  • Audio engineering: measuring sound intensity in decibels using dB = 10 × log₁₀(I/I₀)
  • Earthquake science: the Richter scale uses base-10 logarithms to quantify earthquake magnitude from seismograph readings
  • Computer science: analyzing algorithm complexity — binary search runs in O(log₂ n) time by halving the search space each step
  • Chemistry: calculating pH as the negative common logarithm of hydrogen ion concentration, pH = −log₁₀[H⁺]
  • Finance: solving for time in compound interest problems using natural logarithms, t = ln(A/P) / (n × ln(1 + r/n))

Common Mistakes

  • Taking the logarithm of a negative number or zero — logarithms are only defined for positive arguments
  • Using a base of 1 — since 1 raised to any power is always 1, log base 1 is undefined
  • Confusing log and ln notation — in many engineering contexts ‘log’ means base 10, while in mathematics it often means natural log (base e)

Frequently Asked Questions

What exactly does a logarithm tell you?

A logarithm tells you the exponent (power) needed to raise a specific base to get a given number. For example, log₁₀(1000) = 3 means you must raise 10 to the 3rd power to get 1000. It answers: “how many times do I multiply the base by itself to reach x?”

How do you convert between logarithm bases?

Use the change-of-base formula: log_b(x) = log_c(x) / log_c(b), where c is any convenient base. Most commonly, log_b(x) = ln(x) / ln(b) or log_b(x) = log₁₀(x) / log₁₀(b). For example, log₂(8) = ln(8) / ln(2) = 2.079 / 0.693 = 3.

What is the difference between log and ln?

“log” usually means base-10 logarithm (common log), while “ln” means natural log with base e ≈ 2.71828. In some mathematical contexts, “log” refers to the natural log. This calculator lets you choose any base, so you can compute both.

Why can’t the base of a logarithm be 1?

Because 1 raised to any power is always 1, the equation 1^y = x has no solution unless x is also 1 — and then every y works. A base of 1 makes the logarithm undefined because it cannot uniquely determine an exponent.

How are logarithms used in the Richter scale?

The Richter scale measures earthquake magnitude as the base-10 logarithm of seismograph amplitude. Each whole number increase (e.g., 5 to 6) means 10× greater amplitude and roughly 31.6× more energy released. This logarithmic compression lets us represent vastly different quake sizes on a simple 1–10 scale.

What is a logarithmic scale and why is it useful?

A logarithmic scale spaces values by orders of magnitude instead of equal intervals. It is useful when data spans many powers of 10 — such as sound intensity (decibels), earthquake energy (Richter), acidity (pH), and star brightness (magnitude). Logarithmic scales make patterns in exponential data visible as straight lines.

How do you solve log equations step by step?

To solve y = log_b(x): (1) rewrite in exponential form b^y = x, (2) apply the change-of-base formula y = ln(x) / ln(b), (3) compute ln(x) and ln(b) separately, (4) divide. For example, log₂(32) = ln(32)/ln(2) = 3.466/0.693 = 5, which checks out because 2⁵ = 32.

Logarithm Formula

A logarithm is the inverse of exponentiation. The equation y = log_b(x) is equivalent to b^y = x:

y = log₂(x)  ↔  bʸ = x

Where:

  • y — the logarithm (the exponent that produces x)
  • b — the base (must be positive and not equal to 1)
  • x — the argument (must be positive)

Common bases include 10 (common log, written log or log₁₀), e ≈ 2.718 (natural log, written ln), and 2 (binary log, written log₂ or lb). Any positive base except 1 is valid.

Worked Examples

Audio Engineering

How many decibels is a sound that is 1,000,000 times more intense than the reference?

Decibels use base-10 logarithms: dB = 10 × log₁₀(I/I₀). With an intensity ratio of 1,000,000:

  • log₁₀(1,000,000) = log₁₀(10⁶) = 6
  • dB = 10 × 6 = 60 dB
  • Result: 60 dB (about normal conversation level)

Each factor of 10 in intensity adds 10 dB. The logarithmic scale compresses a huge range of intensities into a manageable number.

Earthquake Science

An earthquake releases 31,623 times more energy than a magnitude 2 quake — what is its Richter magnitude?

The Richter scale uses base-10 logarithms. Each whole number increase represents roughly 31.6× more energy (10^1.5). For a relative amplitude ratio of 31,623:

  • log₁₀(31623) ≈ 4.5
  • Magnitude increase = 4.5 / 1.5 = 3 steps
  • Magnitude: 2 + 3 = 5.0

The logarithmic Richter scale lets us represent enormous energy differences — a magnitude 9 quake releases about 31.6 billion times the energy of a magnitude 2.

Computer Science

How many comparisons does binary search need for a sorted array of 1,048,576 elements?

Binary search halves the search space each step, so the maximum comparisons equals log₂(n):

  • n = 1,048,576 = 2²⁰
  • log₂(1048576) = 20
  • Result: 20 comparisons to find any element

Binary search's O(log n) complexity means doubling the data only adds one more comparison — searching 2 million items takes just 21 steps.

Related Calculators

Related Sites