Logarithms: Laws, Change of Base and Solving Log Equations

A logarithm answers one question: to what power must a base be raised to give a number? Because logarithms turn multiplication into addition and powers into multiplication, they let you simplify huge expressions and solve equations where the unknown sits in an exponent. Aptitude papers test the definition, the three laws, change of base and simple log equations, and all of these follow from a handful of rules.

Asked in: GAT, HAT, NTS, ECAT, NUMS, ISSB, SSC CGL, CAT

What a logarithm means

logₐ x = y means exactly the same as aʸ = x. Read logₐ x as 'log of x to the base a'. For example log₂ 8 = 3 because 2³ = 8, and log₅ (1/25) = −2 because 5⁻² = 1/25.

The base a must be positive and not equal to 1, and x must be positive. So log of 0 or of a negative number is not defined, and a base such as −7 is never allowed.

When no base is written, aptitude papers mean base 10 (the common logarithm). ln x means the natural logarithm, with base e ≈ 2.718.

Values to know by heart

Since a⁰ = 1, the log of 1 is 0 in every base. Since a¹ = a, the log of the base itself is 1. Raising a to the power logₐ x simply gives back x, because the two operations undo each other.

Common logs of powers of 10 are whole numbers: log 10 = 1, log 100 = 2, log 1000 = 3, log 0.01 = −2.

The three laws

The log of a product is the sum of the logs, the log of a quotient is the difference, and the log of a power brings the exponent down as a multiplier. These work in any base, as long as all logs use the same base.

There is no law for the log of a sum: log (x + y) is not log x + log y. Equally, log x ÷ log y is not log (x ÷ y). Examiners use both of these as traps.

Change of base

Any logarithm can be rewritten using logs in a base you prefer, usually 10 or a small prime. This is how you compare logs with different bases, and how calculators compute them.

Two useful results follow. A log and its 'reverse' multiply to 1, and logs can be chained like fractions that cancel: log₃ 5 × log₅ 81 = log₃ 81 = 4.

Log tables: characteristic, mantissa and digit count

Before calculators, people multiplied large numbers by looking up logs in tables. The common log of a number has two parts: the characteristic (the whole-number part) and the mantissa (the decimal part). The mantissa depends only on the digits; the characteristic depends on where the decimal point is. log 3.5 ≈ 0.5441, log 35 ≈ 1.5441 and log 350 ≈ 2.5441.

For a number N of at least 1, the characteristic is one less than the number of digits before the decimal point. So the number of digits in N is the whole-number part of log N plus 1. Learn log 2 ≈ 0.3010, log 3 ≈ 0.4771 and log 7 ≈ 0.8451; then log 5 = 1 − log 2 ≈ 0.6990.

Solving log equations

First combine logs on each side into a single log using the laws. Then either convert to exponential form (logₐ x = k gives x = aᵏ) or, if both sides are single logs in the same base, equate what is inside them.

Always check your answers in the original equation. Any value that makes the inside of a log zero or negative must be rejected, even if it satisfies the algebra.

Solved examples

  1. Find the value of log₃ 81.
    1. Let log₃ 81 = y, so 3ʸ = 81.
    2. 81 = 3 × 3 × 3 × 3 = 3⁴.
    3. So y = 4.
    Answer: 4
  2. Simplify log 25 + log 4 (base 10).
    1. Use the product law: log 25 + log 4 = log (25 × 4).
    2. = log 100.
    3. 100 = 10², so log 100 = 2.
    Answer: 2
  3. Find the value of log₈ 32.
    1. Both 8 and 32 are powers of 2, so change to base 2.
    2. log₈ 32 = log₂ 32 ÷ log₂ 8 = 5 ÷ 3.
    3. Check: 8 raised to 5/3 = (2³) raised to 5/3 = 2⁵ = 32.
    Answer: 5/3
  4. Given log 2 = 0.3010 and log 3 = 0.4771, find log 72.
    1. Factorise: 72 = 8 × 9 = 2³ × 3².
    2. log 72 = 3 log 2 + 2 log 3.
    3. = 3 × 0.3010 + 2 × 0.4771 = 0.9030 + 0.9542.
    4. = 1.8572.
    Answer: 1.8572
  5. Using log 2 = 0.3010, find the number of digits in 2⁴⁰.
    1. log (2⁴⁰) = 40 × log 2 = 40 × 0.3010 = 12.04.
    2. The characteristic (integer part) is 12.
    3. Number of digits = 12 + 1 = 13. (Indeed 2⁴⁰ = 1,099,511,627,776.)
    Answer: 13 digits
  6. Solve log₂ (x + 3) + log₂ (x − 3) = 4.
    1. Combine with the product law: log₂ [(x + 3)(x − 3)] = 4.
    2. Convert to exponential form: (x + 3)(x − 3) = 2⁴ = 16.
    3. x² − 9 = 16, so x² = 25 and x = 5 or x = −5.
    4. x = −5 makes x − 3 = −8 negative, so its log is undefined. Reject it.
    5. Check x = 5: log₂ 8 + log₂ 2 = 3 + 1 = 4. Correct.
    Answer: x = 5

Exam shortcuts

Common mistakes

Practice MCQs

  1. What is the value of log₅ 125?
    A) 25
    B) 5
    C) 3
    D) 1/3
    Answer: C) 3 — 125 = 5³, so log₅ 125 = 3. 25 is 125 ÷ 5, not a logarithm; 5 is the base itself; and 1/3 is the log of 5 to base 125, the reverse.
  2. What is the value of log₂ (1/16)?
    A) −4
    B) 4
    C) 1/4
    D) −1/4
    Answer: A) −4 — 1/16 = 2⁻⁴, so the log is −4. A number between 0 and 1 has a negative log in base 2, which rules out 4 and 1/4; −1/4 confuses the exponent with its reciprocal.
  3. What is the value of log₇ 1?
    A) 1
    B) 7
    C) Not defined
    D) 0
    Answer: D) 0 — Any allowed base raised to the power 0 gives 1, so log₇ 1 = 0. The log of the base itself (log₇ 7) is 1, and 7 confuses the base with the answer. log₇ 1 is perfectly well defined; only the logs of zero and negative numbers are not.
  4. If logₓ 49 = 2, what is x?
    A) 24.5
    B) 7
    C) 98
    D) −7
    Answer: B) 7 — logₓ 49 = 2 means x² = 49, so x = 7 or −7. A base must be positive, so x = 7 only. 24.5 divides 49 by 2 and 98 multiplies by 2, neither of which inverts a power.
  5. Simplify log 8 + log 125 (base 10).
    A) 3
    B) 2
    C) log 133
    D) 1000
    Answer: A) 3 — By the product law, log 8 + log 125 = log (8 × 125) = log 1000 = 3. log 133 wrongly adds the numbers inside the logs, and 1000 is the product itself rather than its log.
  6. Simplify log₂ 48 − log₂ 3.
    A) 16
    B) log₂ 45
    C) 4
    D) 5
    Answer: C) 4 — By the quotient law, log₂ 48 − log₂ 3 = log₂ (48 ÷ 3) = log₂ 16 = 4. 16 is the quotient before taking the log, log₂ 45 subtracts the numbers inside the logs, and 5 would need the quotient to be 32.
  7. Find the value of 2 log 5 + log 4 (base 10).
    A) log 14
    B) 2
    C) 1
    D) log 40
    Answer: B) 2 — 2 log 5 = log 25, and log 25 + log 4 = log 100 = 2. log 14 adds instead of multiplying (2 × 5 + 4), log 40 multiplies 2 × 5 × 4 without squaring, and 1 would need the product to be 10.
  8. What is the value of log₉ 27?
    A) 2/3
    B) 3
    C) 1/3
    D) 3/2
    Answer: D) 3/2 — Write both as powers of 3: log₉ 27 = log₃ 27 ÷ log₃ 9 = 3 ÷ 2 = 3/2. Check: 9 raised to 3/2 = (√9)³ = 27. 2/3 is the reverse log (log₂₇ 9), and 3 is 27 ÷ 9.
  9. Find the value of log₃ 5 × log₅ 81.
    A) 4
    B) 3
    C) 5
    D) 9
    Answer: A) 4 — Chain the bases: log₃ 5 × log₅ 81 = log₃ 81 = 4, since 3⁴ = 81. The values 3 and 5 are the bases, and 9 is √81, not a log.
  10. Given log 2 = 0.3010 and log 3 = 0.4771, find log 15.
    A) 0.7781
    B) 0.1761
    C) 1.4313
    D) 1.1761
    Answer: D) 1.1761 — log 15 = log 3 + log 5 = log 3 + (1 − log 2) = 0.4771 + 0.6990 = 1.1761. 0.1761 is log 1.5 (characteristic 0 instead of 1), 0.7781 is log 6, and 1.4313 is 3 × log 3.
  11. Using log 3 = 0.4771, how many digits does 3²⁰ have?
    A) 9
    B) 11
    C) 10
    D) 20
    Answer: C) 10 — log (3²⁰) = 20 × 0.4771 = 9.542. The integer part is 9, so 3²⁰ has 9 + 1 = 10 digits (3²⁰ = 3,486,784,401). 9 forgets to add 1, 11 adds 2, and 20 confuses the exponent with the digit count.
  12. Solve log₂ (x − 1) = 3.
    A) x = 7
    B) x = 9
    C) x = 8
    D) x = 10
    Answer: B) x = 9 — Convert to exponential form: x − 1 = 2³ = 8, so x = 9. x = 8 forgets to add 1, x = 7 uses 2 × 3 + 1, and x = 10 would need x − 1 = 9, which is not a power of 2.
  13. Solve log (x + 2) + log (x − 1) = 1 (base 10).
    A) x = −4
    B) x = 3 or x = −4
    C) x = 3
    D) x = 4
    Answer: C) x = 3 — Combine: log [(x + 2)(x − 1)] = 1, so (x + 2)(x − 1) = 10, giving x² + x − 12 = 0 and x = 3 or −4. x = −4 makes both x + 2 and x − 1 negative, so it is rejected; listing both roots is therefore wrong. x = 4 gives 6 × 3 = 18, not 10.
  14. If log a = p and log b = q (base 10), then log (a² ÷ √b) equals
    A) 2p − q/2
    B) p² − q/2
    C) 2p − 2q
    D) 2p ÷ (q/2)
    Answer: A) 2p − q/2 — log (a²) = 2 log a = 2p and log √b = ½ log b = q/2, so the quotient law gives 2p − q/2. p² squares the log instead of multiplying by 2, 2p − 2q treats the square root as a square, and 2p ÷ (q/2) divides the logs, which is not a log law.
  15. If log₂ x + log₄ x + log₁₆ x = 7, what is x?
    A) 8
    B) 16
    C) 32
    D) 4
    Answer: B) 16 — Change every term to base 2: log₄ x = ½ log₂ x and log₁₆ x = ¼ log₂ x. So (1 + ½ + ¼) log₂ x = 7, giving (7/4) log₂ x = 7 and log₂ x = 4, x = 16. Checking the others: x = 8 gives 3 + 1.5 + 0.75 = 5.25, x = 32 gives 8.75, and x = 4 gives 3.5.

Questions

What is a logarithm in simple words?

It is an exponent. log₂ 32 asks 'to what power must 2 be raised to give 32?' The answer is 5, so log₂ 32 = 5.

What are the main laws of logarithms?

log (xy) = log x + log y, log (x ÷ y) = log x − log y, and log (xⁿ) = n log x. All logs must be in the same base.

How does change of base work?

logₐ x = log x ÷ log a, using any convenient common base. For example log₄ 32 = log₂ 32 ÷ log₂ 4 = 5/2.

Why can we not take the log of a negative number?

A positive base raised to any real power is always positive, so no real power can give zero or a negative number. Such logs are undefined.