Skip to content
Educora
Intermediate28 min6 / 68

Logarithms and logarithmic functions

The definition and laws of logarithms, change of base, lg and ln, the graph and properties of y = logₐ x, equations and inequalities solved domain first, and comparing logarithms without a calculator — in CSCA style.

Check yourself
In this lesson you will learn
  • Switch between exponential and logarithmic form and evaluate logarithms without a calculator
  • Apply the laws of logarithms and the change-of-base formula, including lg and ln
  • Use the graph and monotonicity of y = logₐ x to find domains and compare values
  • Solve logarithmic equations and inequalities, starting with the domain

2ˣ = 8 is easy: x = 3. But what about 2ˣ = 5? No whole number works: 2² = 4 is too small and 2³ = 8 too large. The exact answer is a new number, log₂ 5 ≈ 2.32, «the power to which 2 must be raised to give 5». Logarithms belong to the syllabus line «basic elementary functions», and CSCA items test them in a few fixed ways: evaluating an expression, comparing three numbers, finding a domain, and solving an equation or an inequality. Everything here builds on the lesson «Power and exponential functions»: a logarithm is simply an exponent read backwards.

What a logarithm is

Definition
Logarithm (对数)

If aᵇ = N with a > 0, a ≠ 1, then b is the logarithm of N to base a: b = logₐ N. The base a is 底数; the number N under the logarithm, the argument, is 真数 («true number»). N must be positive, because aᵇ is always positive: log₂(−4) and log₂ 0 do not exist.

logₐ N = b ⇔ aᵇ = N logₐ 1 = 0 logₐ a = 1 a^(logₐ N) = N logₐ aᵇ = b
where:
  • athe base: a > 0, a ≠ 1
  • Nthe argument, always N > 0
  • lg N, ln Nlg N = log₁₀ N (common logarithm), ln N = logₑ N (natural logarithm, e ≈ 2.718)

The definition and the basic identities. a^(logₐ N) = N is the logarithmic identity (对数恒等式): raising to a power and taking a logarithm undo each other. Chinese textbooks and CSCA write lg and ln.

Example 1: evaluating from the definition

1) log₃ 81 2) log₂ (1/8) 3) log₄ 8 4) 5^(log₅ 7) 5) lg 0.001 6) Solve logₓ 9 = 2.

Show solution
1) 3⁴ = 81, so 4.
2) 1/8 = 2⁻³, so −3.
3) Write both as powers of 2: 4ᵇ = 2²ᵇ = 2³ ⇒ b = 3/2.
4) By the logarithmic identity, 7.
5) 0.001 = 10⁻³, so −3.
6) x² = 9, and a base must be positive and ≠ 1: x = 3 (x = −3 is rejected).

Laws of logarithms and change of base

Every law of logarithms is a law of powers read backwards. If M = aᵐ and N = aⁿ, then MN = aᵐ⁺ⁿ, so logₐ(MN) = m + n: multiplication inside the logarithm becomes addition outside, division becomes subtraction, and a power becomes a factor.

logₐ(MN) = logₐ M + logₐ N logₐ(M/N) = logₐ M − logₐ N logₐ Mⁿ = n · logₐ Mlogₐ(MN) = logₐ M + logₐ N logₐ(M/N) = logₐ M − logₐ N logₐ Mⁿ = n · logₐ M
where:
  • M, Npositive numbers
  • nany real number

The product, quotient and power laws. They hold only for positive M and N and one common base a.

Example 2: simplifying with the laws

Evaluate: 1) lg 8 + lg 125 2) log₃ 54 − log₃ 2 3) ½ log₂ 36 − log₂ 3

Show solution
1) lg(8 · 125) = lg 1000 = 3.
2) log₃(54/2) = log₃ 27 = 3.
3) ½ log₂ 36 = log₂ 36^(1/2) = log₂ 6, and log₂ 6 − log₂ 3 = log₂ 2 = 1.
Every time: first combine into one logarithm, then evaluate.
logₐ b = log_c b / log_c a = lg b / lg a = ln b / ln a logₐ b · log_b a = 1 logₐ b · log_b c = logₐ c log_(aᵐ) bⁿ = (n/m) · logₐ blogₐ b = log_c b / log_c a = lg b / lg a = ln b / ln a logₐ b · log_b a = 1 logₐ b · log_b c = logₐ c log_(aᵐ) bⁿ = (n/m) · logₐ b
where:
  • cany new base (c > 0, c ≠ 1)
  • a, ba > 0, a ≠ 1, b > 0 (in the later formulas also b ≠ 1)
  • m, nthe exponents of the base and of the argument (m ≠ 0)

The change-of-base formula (换底公式) and its three consequences. Proof: if logₐ b = x, then aˣ = b; take log_c of both sides: x · log_c a = log_c b.

Example 3: changing the base

1) log₈ 32 2) log₂₇ 9 3) lg 2 = a and lg 3 = b. Express log₆ 12 in terms of a and b.

Show solution
1) log_(2³) 2⁵ = (5/3) · log₂ 2 = 5/3.
2) log_(3³) 3² = 2/3.
3) Change to common logarithms: log₆ 12 = lg 12 / lg 6 = lg(2² · 3) / lg(2 · 3) = (2a + b)/(a + b).
Example 4 (CSCA style): a chain of logarithms

What is the value of log₂ 3 · log₃ 5 · log₅ 16?
A) 4 B) 2 C) 8 D) log₂ 15

Show solution
Chain rule: log₂ 3 · log₃ 5 = log₂ 5, then log₂ 5 · log₅ 16 = log₂ 16 = 4. Answer A.
Why the others tempt: B) 2 is log₄ 16, which you get by mixing up the base and the argument; C) 8 computes log₂ 16 as 16/2; D) log₂ 15 confuses a product of logarithms with the logarithm of a product (3 · 5 = 15).

The logarithmic function y = logₐ x

Definition
Logarithmic function (对数函数)

y = logₐ x (a > 0, a ≠ 1) with domain (0, +∞). It is the inverse of y = aˣ, so its graph is the mirror image of the exponential graph in the line y = x (see «Power and exponential functions» and, for inverse functions in general, «Functions and their properties»).

Propertya > 10 < a < 1
Domain(0, +∞)(0, +∞)
RangeRR
Point on every graph(1, 0)(1, 0)
Monotonicityincreasingdecreasing
Where logₐ x > 0x > 10 < x < 1
As x → 0⁺y → −∞y → +∞
In both cases the y-axis is a vertical asymptote. log_(1/a) x = −logₐ x, so the graphs of logₐ x and log_(1/a) x are symmetric about the x-axis.
Interactive
Loading simulation…
The first curve is y = logₐ x (a > 1), the second is y = log_(1/a) x, its mirror image in the x-axis. Move a: both curves pass through (1, 0), and for x > 1 a larger base pulls the graph towards the x-axis.

Two quick consequences. Domain: in y = logₐ f(x) the argument must be positive, f(x) > 0; if x also appears in the base, the base must be positive and ≠ 1. Fixed point (定点): because logₐ 1 = 0 for every a, the graph of y = logₐ(kx + m) + c passes through the point where kx + m = 1, whatever the base.

Example 5: domains and a fixed point

1) Find the domain of y = lg(4 − x²).
2) Find the domain of y = log_(x−1)(5 − x).
3) Through which point does the graph of y = logₐ(2x − 3) + 1 pass for every a?

Show solution
1) 4 − x² > 0 ⇒ x² < 4 ⇒ (−2, 2).
2) Base: x − 1 > 0 and x − 1 ≠ 1; argument: 5 − x > 0. So 1 < x < 5 and x ≠ 2: (1, 2) ∪ (2, 5).
3) 2x − 3 = 1 ⇒ x = 2, and then y = 0 + 1 = 1: (2, 1).

Monotonicity of y = logₐ f(x). Work only inside the domain. With a > 1 the logarithm keeps the direction of f; with 0 < a < 1 it reverses it. Chinese students remember 同增异减: «same directions give increasing, different directions give decreasing».

Example 6 (CSCA style): where a composite logarithm increases

On which interval is y = log_(1/2)(x² − 4x + 3) increasing?
A) (−∞, 2) B) (3, +∞) C) (−∞, 1) D) (2, +∞)

Show solution
Domain: x² − 4x + 3 = (x − 1)(x − 3) > 0 ⇒ x < 1 or x > 3.
The inner parabola decreases on (−∞, 1) and increases on (3, +∞).
The base 1/2 < 1 reverses directions, so y increases where the parabola decreases: C) (−∞, 1).
Why the others tempt: A) uses the vertex x = 2 but forgets the domain (at x = 1.5 the logarithm does not exist); B) is where the parabola increases, which would be right only for a base above 1; D) combines both mistakes.

Comparing without a calculator. Monotonicity is also the key to comparing logarithms. Try these four moves in order:

  1. 1
    Same base

    Use monotonicity: log₃ 5 < log₃ 7 (base > 1), but log₀.₅ 5 > log₀.₅ 7 (base < 1).

  2. 2
    Same argument

    If the argument and the bases are all above 1, the larger base gives the smaller value: log₂ 7 > log₃ 7 > log₅ 7 (by change of base, logₐ 7 = 1 / log₇ a).

  3. 3
    Benchmarks 0 and 1

    Find the sign first, then compare with 1 = logₐ a. log₃ 2 lies between 0 and 1, log₂ 3 is above 1, log₀.₅ 3 is negative.

  4. 4
    An intermediate number

    If both numbers lie between the same benchmarks, insert a number such as 1/2 or 3/2 and compare powers: log₂ 3 > 3/2 because 2^(3/2) = 2√2 ≈ 2.83 < 3.

Example 7 (CSCA style): ordering three numbers

a = log₃ 2, b = log₅ 3, c = 2/3. Which order is correct?
A) a < b < c B) a < c < b C) c < a < b D) b < c < a

Show solution
Both logarithms lie between 0 and 1 (each argument is smaller than its base), so compare each with c = 2/3.
a < 2/3 ⇔ 2 < 3^(2/3) ⇔ 2³ < 3², i.e. 8 < 9 — true.
b > 2/3 ⇔ 3 > 5^(2/3) ⇔ 3³ > 5², i.e. 27 > 25 — true.
So a < c < b, answer B.
Why the others tempt: D) looks only at the bases («the larger base gives the smaller logarithm») and ignores that the arguments differ; A) and C) are guesses made without an intermediate number.

Logarithmic equations and inequalities

  1. 1
    Write the domain

    Every argument > 0; a base containing x must be > 0 and ≠ 1. Do this before any transformation (定义域优先, «domain first»).

  2. 2
    Bring to one base

    Combine with the laws, change the base, or substitute t = logₐ x when the equation is quadratic in the logarithm.

  3. 3
    Remove the logarithm

    logₐ f = b ⇔ f = aᵇ; logₐ f = logₐ g ⇔ f = g. In an inequality keep the sign for a > 1 and reverse it for 0 < a < 1.

  4. 4
    Intersect with the domain

    Reject extraneous roots (增根) and intersect the solution set of an inequality with the domain.

a > 1: logₐ f(x) > logₐ g(x) ⇔ f(x) > g(x) > 0 0 < a < 1: logₐ f(x) > logₐ g(x) ⇔ 0 < f(x) < g(x)
where:
  • f(x), g(x)the arguments
  • athe common base

In both cases the smaller argument must be positive; the larger one is then positive automatically. First write a number as a logarithm: 3 = log₂ 8, −1 = log_(1/3) 3.

Example 8: three types of equations

Solve: 1) log₃(2x + 1) = 2 2) lg(x + 3) + lg x = 1 3) (log₂ x)² − 3 log₂ x + 2 = 0

Show solution
1) 2x + 1 = 3² = 9 ⇒ x = 4 (the argument 9 is positive).
2) Domain: x > 0. lg(x(x + 3)) = 1 ⇒ x² + 3x = 10 ⇒ x = 2 or x = −5. Only x = 2 is in the domain; −5 is extraneous.
3) t = log₂ x: t² − 3t + 2 = 0 ⇒ t = 1 or t = 2 ⇒ x = 2 or x = 4.
Example 9 (CSCA style): different bases

What is the solution of log₂ x + log₄ x = 6?
A) x = 16 B) x = 64 C) x = 8 D) x = 4

Show solution
log₄ x = log_(2²) x = ½ log₂ x, so (3/2) log₂ x = 6 ⇒ log₂ x = 4 ⇒ x = 16. Answer A.
Check: log₂ 16 + log₄ 16 = 4 + 2 = 6 ✓.
Why the others tempt: B) 64 = 2⁶ treats both logarithms as base 2; C) 8 comes from log₂ x = 3 (6 shared between «two logarithms»); D) 4 confuses log₂ x = 4 with x = 4.
Example 10: inequalities

Solve: 1) log₂(x − 1) < 3 2) log_(1/3)(x + 2) > −1

Show solution
1) 3 = log₂ 8, and the base 2 > 1 keeps the sign: 0 < x − 1 < 8 ⇒ 1 < x < 9. (Writing only x − 1 < 8, i.e. x < 9, forgets the domain.)
2) −1 = log_(1/3) 3, and the base 1/3 < 1 reverses the sign: 0 < x + 2 < 3 ⇒ −2 < x < 1.

How CSCA asks about this

  • Evaluate an expression: combine with the laws, use the domino rule and a^(logₐ N) = N; the answer is usually a small integer or a simple fraction, so if you get something like lg 7, look for a mistake.
  • Order a, b, c: signs first, then the benchmarks 0 and 1, then an intermediate number (1/2, 2/3, 3/2, 2); mixed items put an exponential value such as 2^0.3 next to the logarithms (see «Power and exponential functions»).
  • Domain: a logarithm often comes together with a square root or a fraction; all conditions go into one system.
  • Graph facts: the fixed point, which graph belongs to which base, and the monotonic intervals of logₐ f(x).
  • Equations and inequalities: domain first; the options often contain the extraneous root or the answer without the domain restriction.
  • Time-savers (75 s per item): substitute the options into an equation instead of solving it; for «which interval» items test one point from each option; when an item gives lg 2 ≈ 0.301, it expects an estimate, not an exact value.
Term中文Pinyin
logarithm对数duìshù
base底数dǐshù
argument (the number under the logarithm)真数zhēnshù
common logarithm常用对数chángyòng duìshù
natural logarithm自然对数zìrán duìshù
change-of-base formula换底公式huàndǐ gōngshì
logarithmic identity对数恒等式duìshù héngděngshì
logarithmic function对数函数duìshù hánshù
inverse function反函数fǎnhánshù
domain定义域dìngyìyù
increasing / decreasing function增函数 / 减函数zēng hánshù / jiǎn hánshù
fixed point定点dìngdiǎn
logarithmic equation对数方程duìshù fāngchéng
extraneous root增根zēnggēn
Key terms in English and Chinese: you may take the test in either language.

Key points

  • logₐ N = b ⇔ aᵇ = N (a > 0, a ≠ 1, N > 0); logₐ 1 = 0, logₐ a = 1, a^(logₐ N) = N; lg = log₁₀, ln = logₑ.
  • Product → sum, quotient → difference, power → factor; there is no rule for logₐ(M + N).
  • Change of base: logₐ b = lg b / lg a; logₐ b · log_b c = logₐ c; log_(aᵐ) bⁿ = (n/m) logₐ b.
  • y = logₐ x: domain (0, +∞), passes through (1, 0), increasing for a > 1 and decreasing for 0 < a < 1; logₐ f(x) follows f for a > 1 and reverses it for a < 1.
  • Comparing: signs, then 0 and 1, then an intermediate number; a and x on the same side of 1 give logₐ x > 0.
  • Equations and inequalities: domain first; for 0 < a < 1 reverse the inequality sign; reject extraneous roots.

Check yourself

12 questions. Every correct answer earns XP.

1 / 12
What is log₂ (1/16)?

Topic test: 20 questions · 25 min

Finished the lesson? Check yourself with a timed test on this topic.

Start the test