Weeks
Mathematics 1Week 6 · Logarithmic Functions: Laws, Graphs and Equations
Week 6 Notes

Mathematics for
Data Science 1

Logarithms as the inverse of exponentials: the definition, the laws of logs, change of base, graphs of log functions, and solving exponential and logarithmic equations and inequalities.

6 chapters~21 min read
LogarithmLaws of logsChange of baseGraphsExponential equationsLog equations

Chapters

  1. 01What is a Logarithm?Logarithm basics
  2. 02Properties of LogarithmsLaws of logs
  3. 03Logarithmic Functions and GraphsGraph of y = logₐ x
  4. 04Exponential EquationsUnknown in the power
  5. 05Logarithmic Equations and InequalitiesUnknown inside a log
  6. 06Week 6 Summary SheetAll topics
01
Logarithm basics

What is a Logarithm?

The definition of a logarithm, its special values, and the two logs on every calculator.

1.1Definition

In simple words

A logarithm answers the question "what power?" For example, "2 to what power gives 8?" The answer is 3, so log⁡28=3\log_2 8 = 3. A log simply undoes an exponential.

Definition

For a>0a > 0, a≠1a \ne 1 and y>0y > 0:

ax=y  ⟺  x=log⁡aya^x = y \iff x = \log_a y

a is the base, y is the argument and x is the logarithm. The function f(x)=log⁡axf(x) = \log_a x is the inverse of g(x)=axg(x) = a^x from Week 5.

Rules for the base and argument
  • Base: a>0a > 0 and a≠1a \ne 1.
  • Argument must be positive: the log of 0 or of a negative number does not exist, because axa^x is never 0 or negative.
Exponential formLog form
23=82^3 = 8log⁡28=3\log_2 8 = 3
34=813^4 = 81log⁡381=4\log_3 81 = 4
5−2=1255^{-2} = \frac{1}{25}log⁡5125=−2\log_5 \frac{1}{25} = -2
10−3=0.00110^{-3} = 0.001log⁡100.001=−3\log_{10} 0.001 = -3
Reading the table. The base stays the base, and the power on the left becomes the answer on the right. A negative log just means the argument is between 0 and 1 (for a base above 1).

1.2Special values and identities

IdentityWhyExample
log⁡a1=0\log_a 1 = 0a0=1a^0 = 1log⁡71=0\log_7 1 = 0
log⁡aa=1\log_a a = 1a1=aa^1 = alog⁡99=1\log_9 9 = 1
log⁡a(ax)=x\log_a (a^x) = xlog undoes the exponentiallog⁡229=9\log_2 2^9 = 9
alog⁡ax=xa^{\log_a x} = x (x>0)(x > 0)the exponential undoes the log2log⁡27=72^{\log_2 7} = 7

1.3Common and natural logarithms

NameBaseWrittenWhere used
Common log10log⁡x\log x (or log⁡10x\log_{10} x)school calculations, orders of magnitude
Natural loge≈2.718e \approx 2.718ln⁡x\ln x (or log⁡ex\log_e x)calculus, growth and decay
Notation. In these notes log⁡x\log x means log⁡10x\log_{10} x and ln⁡x\ln x means log⁡ex\log_e x. So ln⁡e=1\ln e = 1 and ln⁡ex=x\ln e^x = x. Some books (and many programming languages) use log for the natural log, so check the convention.

Example 1: evaluate six logs

Find (a) log⁡28\log_2 8, (b) log⁡381\log_3 81, (c) log⁡5125\log_5 \frac{1}{25}, (d) log⁡1/28\log_{1/2} 8, (e) log⁡42\log_4 2, (f) ln⁡e5\ln e^5.

  • (a) 23=82^3 = 8, so 3. (b) 34=813^4 = 81, so 4.
  • (c) 125=5−2\frac{1}{25} = 5^{-2}, so −2. (d) (12)−3=23=8\left(\frac{1}{2}\right)^{-3} = 2^3 = 8, so −3.
  • (e) 41/2=4=24^{1/2} = \sqrt{4} = 2, so 12\frac{1}{2}. (f) ln⁡e5=5\ln e^5 = 5.
  • Answer: 3, 4, −2, −3, ½, 5.

Example 2: find the unknown

Find x if (a) log⁡x64=3\log_x 64 = 3, (b) log⁡2x=5\log_2 x = 5.

  • (a) Convert to exponential form: x3=64x^3 = 64, so x=4x = 4.
  • (b) Convert: x=25=32x = 2^5 = 32.
  • Answer: (a) x = 4 (b) x = 32.

1.4Going deeper

  1. Why the base cannot be 1 (extra remark). 1x=11^x = 1 for every x, so "1 to what power gives 8?" has no answer, and "1 to what power gives 1?" has every number as an answer. Neither gives one value, so log⁡1\log_1 is not defined.
  2. Two-way conversion. Almost every question in this week starts by switching between ax=ya^x = y and x=log⁡ayx = \log_a y. In Example 2(a) the unknown was the base, and the switch still works.
  3. Base below 1 flips the sign (extra remark). In Example 1(d), log⁡1/28=−3=−log⁡28\log_{1/2} 8 = -3 = -\log_2 8. In general log⁡1/ax=−log⁡ax\log_{1/a} x = -\log_a x, which Chapter 3 uses to explain the falling graphs.
Exam tips
  • To evaluate log⁡ay\log_a y, write y as a power of a.
  • If the unknown is inside the log or in the base, convert to exponential form first.
Common mistakes
  • Writing log⁡28=4\log_2 8 = 4 by dividing 8 by 2. The log asks for a power, not a quotient.
  • Taking the log of 0 or of a negative number.
Next · Laws of logsProperties of Logarithms
02
Laws of logs

Properties of Logarithms

The product, quotient and power laws, and how to change the base of a log.

In simple words

Logs turn multiplication into addition, division into subtraction and powers into multiples. This comes straight from the laws of exponents in Week 5.

2.1The three laws

LawRule (a>0, a≠1; M,N>0)(a > 0,\ a \ne 1;\ M, N > 0)
Productlog⁡a(MN)=log⁡aM+log⁡aN\log_a(MN) = \log_a M + \log_a N
Quotientlog⁡aMN=log⁡aM−log⁡aN\log_a \frac{M}{N} = \log_a M - \log_a N
Powerlog⁡a(Mr)=rlog⁡aM\log_a(M^r) = r \log_a M
Why they work

Let log⁡aM=m\log_a M = m and log⁡aN=n\log_a N = n, so M=amM = a^m and N=anN = a^n. Then MN=am+nMN = a^{m+n}, so log⁡a(MN)=m+n\log_a(MN) = m + n. In the same way MN=am−n\frac{M}{N} = a^{m-n} and Mr=armM^r = a^{rm} give the other two laws.

No law for sums. log⁡(M+N)\log(M + N) is not log⁡M+log⁡N\log M + \log N, and log⁡(M−N)\log(M - N) is not log⁡M−log⁡N\log M - \log N. Also (log⁡M)r(\log M)^r is not rlog⁡Mr \log M: the power law needs the power inside the log.

Example 3: combine logs

Simplify (a) log⁡212+log⁡283\log_2 12 + \log_2 \frac{8}{3}, (b) log⁡5+log⁡20\log 5 + \log 20, (c) 3log⁡24−log⁡283 \log_2 4 - \log_2 8.

  • (a) Product law: log⁡2(12×83)=log⁡232=5\log_2\left(12 \times \frac{8}{3}\right) = \log_2 32 = 5.
  • (b) log⁡(5×20)=log⁡100=2\log(5 \times 20) = \log 100 = 2.
  • (c) 3log⁡24=3×2=63 \log_2 4 = 3 \times 2 = 6 and log⁡28=3\log_2 8 = 3, so 6−3=36 - 3 = 3.
  • Answer: (a) 5 (b) 2 (c) 3.

2.2Change of base

Change of base
log⁡aM=log⁡bMlog⁡ba\log_a M = \frac{\log_b M}{\log_b a}

Any base b (with b>0b > 0, b≠1b \ne 1) works. Special cases:

  • log⁡ab=1log⁡ba\log_a b = \frac{1}{\log_b a}
  • log⁡an(Mm)=mnlog⁡aM\log_{a^n}(M^m) = \frac{m}{n} \log_a M
  • (log⁡ab)(log⁡bc)=log⁡ac(\log_a b)(\log_b c) = \log_a c
In simple words

A calculator has only log (base 10) and ln. For any other base, change to one of them: log⁡35=ln⁡5ln⁡3≈1.465\log_3 5 = \frac{\ln 5}{\ln 3} \approx 1.465.

Example 4: using change of base

Find (a) log⁡23⋅log⁡34\log_2 3 \cdot \log_3 4, (b) log⁡927\log_9 27.

  • (a) log⁡34=log⁡24log⁡23\log_3 4 = \frac{\log_2 4}{\log_2 3}, so the product is log⁡24=2\log_2 4 = 2.
  • (b) 27=3327 = 3^3 and 9=329 = 3^2, so log⁡927=32log⁡33=32\log_9 27 = \frac{3}{2} \log_3 3 = \frac{3}{2}.
  • Answer: (a) 2 (b) 3/2.

Example 5: given log 2 = 0.3010

Using log⁡102=0.3010\log_{10} 2 = 0.3010, find log⁡8\log 8, log⁡5\log 5 and log⁡20\log 20.

  • log⁡8=log⁡23=3×0.3010=0.903\log 8 = \log 2^3 = 3 \times 0.3010 = 0.903.
  • log⁡5=log⁡102=1−0.3010=0.699\log 5 = \log \frac{10}{2} = 1 - 0.3010 = 0.699, because log⁡10=1\log 10 = 1.
  • log⁡20=log⁡2+log⁡10=0.3010+1=1.301\log 20 = \log 2 + \log 10 = 0.3010 + 1 = 1.301.
  • Answer: 0.903, 0.699, 1.301.

2.3Going deeper

  1. Proof of change of base (extra remark). Let x=log⁡aMx = \log_a M, so ax=Ma^x = M. Take log⁡b\log_b of both sides and use the power law: xlog⁡ba=log⁡bMx \log_b a = \log_b M. Divide by log⁡ba\log_b a (not 0, since a≠1a \ne 1).
  2. Reciprocal of a number (extra remark). Put M = 1 in the quotient law: log⁡a1N=−log⁡aN\log_a \frac{1}{N} = -\log_a N. That is why log⁡5125=−log⁡525=−2\log_5 \frac{1}{25} = -\log_5 25 = -2 in Example 1.
  3. Laws work in both directions. Example 3 combined logs into one; Chapter 5 does the same to solve equations. Splitting one log into many (expanding) uses the same laws read right to left.
Exam tips
  • Before combining, make sure every log has the same base.
  • To evaluate a log on a calculator, use ln⁡Mln⁡a\frac{\ln M}{\ln a} or log⁡Mlog⁡a\frac{\log M}{\log a}.
Common mistakes
  • Splitting log⁡(M+N)\log(M + N) into log⁡M+log⁡N\log M + \log N.
  • Writing log⁡Mlog⁡N=log⁡M−log⁡N\frac{\log M}{\log N} = \log M - \log N. The quotient law is about log⁡MN\log \frac{M}{N}, not a quotient of logs.
Next · Graph of y = logₐ xLogarithmic Functions and Graphs
03
Graph of y = logₐ x

Logarithmic Functions and Graphs

The graph of a log function, its properties, shifting it, and the domain of a log expression.

3.1The function

Definition

f(x)=log⁡axf(x) = \log_a x, with a>0a > 0, a≠1a \ne 1, has domain (0,∞)(0, \infty) and range R\mathbb{R}. It is the inverse of axa^x, so the graph of log⁡ax\log_a x is the mirror image of the graph of axa^x in the line y=xy = x.

x0.250.51248
log⁡2x\log_2 x−2−10123
log⁡1/2x\log_{1/2} x210−1−2−3
2468-2-1123log₂ xln xlog x2468-3-2-112log½ xlog⅓ xa > 1: increasing0 < a < 1: decreasingevery curve passes through (1, 0); the y-axis is an asymptote
Figure 1. Graphs of logarithmic functions: bases above 1 (left) and below 1 (right)

Every curve passes through (1, 0) because log⁡a1=0\log_a 1 = 0. The y-axis (x = 0) is a vertical asymptote: the curve gets closer and closer to it but never touches it. Left: bases 2, e and 10 rise slowly; for x > 1, the smaller the base (still above 1), the higher the curve. Right: bases ½ and ⅓ fall. Each right-hand curve is a left-hand one flipped in the x-axis, since log⁡1/2x=−log⁡2x\log_{1/2} x = -\log_2 x (compare the two rows of the table).

3.2Properties of f(x) = logₐ x

Propertya>1a > 10<a<10 < a < 1
Domain(0,∞)(0, \infty)(0,∞)(0, \infty)
RangeR\mathbb{R}R\mathbb{R}
Passes through(1, 0) and (a, 1)(1, 0) and (a, 1)
Behaviourincreasingdecreasing
Signx > 1: positive; 0 < x < 1: negativex > 1: negative; 0 < x < 1: positive
Asymptotex = 0 (y-axis)x = 0 (y-axis)
One-one and onto R\mathbb{R}?yes: bijectiveyes: bijective
Inverseaxa^xaxa^x
Comparing logs
  • If a>1a > 1: x1<x2⇒log⁡ax1<log⁡ax2x_1 < x_2 \Rightarrow \log_a x_1 < \log_a x_2 (order kept).
  • If 0<a<10 < a < 1: x1<x2⇒log⁡ax1>log⁡ax2x_1 < x_2 \Rightarrow \log_a x_1 > \log_a x_2 (order reversed).

3.3Shifting the graph

In simple words

Replacing x by x−hx - h slides the graph h units to the right, and the asymptote moves to x=hx = h. Adding k to the whole function lifts the graph by k.

1234567891011-2-1123x = 3y = log₂ xy = log₂(x − 3)(4, 0)(1, 0)same curve, moved 3 units right; the asymptote moves from x = 0 to x = 3
Figure 2. A logarithm shifted 3 units to the right

y=log⁡2(x−3)y = \log_2(x - 3) is y=log⁡2xy = \log_2 x moved 3 units right. Its asymptote is x=3x = 3, and it crosses the x-axis at x=4x = 4, since log⁡21=0\log_2 1 = 0.

3.4Domain of a log expression

In simple words

Whatever is inside the log must be greater than 0. Solve that inequality to get the domain.

Example 6: find the domain

Find the domain of (a) log⁡(x−2)\log(x - 2), (b) log⁡(5−x)\log(5 - x), (c) log⁡(x2−4)\log(x^2 - 4).

  • (a) x−2>0⇒x>2x - 2 > 0 \Rightarrow x > 2: (2,∞)(2, \infty).
  • (b) 5−x>0⇒x<55 - x > 0 \Rightarrow x < 5: (−∞,5)(-\infty, 5).
  • (c) x2−4>0⇒(x−2)(x+2)>0⇒x<−2x^2 - 4 > 0 \Rightarrow (x - 2)(x + 2) > 0 \Rightarrow x < -2 or x>2x > 2.
  • Answer: (a) x > 2 (b) x < 5 (c) x < −2 or x > 2.

Example 7: which log is larger?

Which is larger: (a) log⁡23\log_2 3 or log⁡25\log_2 5? (b) log⁡1/23\log_{1/2} 3 or log⁡1/25\log_{1/2} 5?

  • (a) Base 2 > 1, so the order is kept: 3 < 5 gives log⁡23<log⁡25\log_2 3 < \log_2 5.
  • (b) Base ½ < 1, so the order reverses: log⁡1/23>log⁡1/25\log_{1/2} 3 > \log_{1/2} 5.
  • Answer: (a) log⁡25\log_2 5 (b) log⁡1/23\log_{1/2} 3.

3.5Going deeper

  1. Mirror of the exponential. 2x2^x passes through (0, 1) and (1, 2); swapping the coordinates gives (1, 0) and (2, 1) on log⁡2x\log_2 x. The horizontal asymptote y = 0 of 2x2^x becomes the vertical asymptote x = 0 of the log.
  2. A vertical shift is a stretch inside (extra remark). log⁡2x+1=log⁡2x+log⁡22=log⁡2(2x)\log_2 x + 1 = \log_2 x + \log_2 2 = \log_2(2x). Lifting the graph by 1 is the same as squeezing it towards the y-axis by a factor of 2.
  3. The x-intercept moves with h. log⁡a(x−h)=0\log_a(x - h) = 0 when x−h=1x - h = 1, so the curve crosses the x-axis at x=h+1x = h + 1 for every base. In Figure 2, h = 3 gives x = 4.
Exam tips
  • For a domain question, set every log argument > 0 and solve; for a quadratic argument, factor first.
  • To compare logs with the same base, check the base first: above 1 keeps the order, below 1 reverses it.
Common mistakes
  • Writing ≥0\ge 0 instead of >0> 0 for the argument: log⁡0\log 0 does not exist.
  • Shifting log⁡2(x−3)\log_2(x - 3) to the left. The minus sign moves it right.
Next · Unknown in the powerExponential Equations
04
Unknown in the power

Exponential Equations

Equations with the unknown in the power: same base, taking logs, and hidden quadratics.

In simple words

An exponential equation has the unknown in an exponent, like 3x=203^x = 20. There are two tools: make the bases equal, or take a log of both sides.

4.1Three methods

  1. Same base: write both sides as powers of the same base a. Since axa^x is one-one, au=av⇒u=va^u = a^v \Rightarrow u = v.
  2. Different bases: take log (or ln) of both sides and use the power law: ax=c⇒x=log⁡clog⁡aa^x = c \Rightarrow x = \frac{\log c}{\log a}.
  3. Hidden quadratic: substitute u=axu = a^x (so u>0u > 0), solve the quadratic, then solve ax=ua^x = u.

Example 8: same base

Solve (a) 52x−1=1255^{2x-1} = 125, (b) 4x=2x+34^x = 2^{x+3}, (c) (12)x=8\left(\frac{1}{2}\right)^x = 8.

  • (a) 125=53125 = 5^3, so 2x−1=32x - 1 = 3 and x=2x = 2.
  • (b) 4x=(22)x=22x4^x = (2^2)^x = 2^{2x}, so 2x=x+32x = x + 3 and x=3x = 3.
  • (c) (12)x=2−x\left(\frac{1}{2}\right)^x = 2^{-x} and 8=238 = 2^3, so −x=3-x = 3 and x=−3x = -3.
  • Answer: (a) x = 2 (b) x = 3 (c) x = −3.

Example 9: take logs

Solve 3x=203^x = 20.

  • 20 is not a power of 3, so take log of both sides: xlog⁡3=log⁡20x \log 3 = \log 20.
  • x=log⁡20log⁡3=1.3010.477≈2.727x = \frac{\log 20}{\log 3} = \frac{1.301}{0.477} \approx 2.727.
  • Check: 32.727≈203^{2.727} \approx 20.
  • Answer: x=log⁡20log⁡3≈2.727x = \frac{\log 20}{\log 3} \approx 2.727.

Example 10: different bases on both sides

Solve 7x=5x+17^x = 5^{x+1}.

  • Take ln: xln⁡7=(x+1)ln⁡5x \ln 7 = (x + 1) \ln 5.
  • Collect the x terms: xln⁡7−xln⁡5=ln⁡5x \ln 7 - x \ln 5 = \ln 5, so x(ln⁡7−ln⁡5)=ln⁡5x(\ln 7 - \ln 5) = \ln 5.
  • x=ln⁡5ln⁡7−ln⁡5≈4.783x = \frac{\ln 5}{\ln 7 - \ln 5} \approx 4.783.
  • Answer: x≈4.783x \approx 4.783.

Example 11: hidden quadratic

Solve 22x−5⋅2x+4=02^{2x} - 5 \cdot 2^x + 4 = 0.

  • Let u=2xu = 2^x, so 22x=u22^{2x} = u^2: u2−5u+4=0u^2 - 5u + 4 = 0.
  • Factor: (u−1)(u−4)=0(u - 1)(u - 4) = 0, so u = 1 or u = 4. Both are positive, so both are allowed.
  • 2x=1⇒x=02^x = 1 \Rightarrow x = 0; 2x=4⇒x=22^x = 4 \Rightarrow x = 2.
  • Answer: x = 0 or x = 2.

Example 12: doubling time

Money grows by 10% a year. After how many years does it double?

  • The amount after t years is P⋅1.1tP \cdot 1.1^t. We need 1.1t=21.1^t = 2.
  • t=ln⁡2ln⁡1.1≈7.27t = \frac{\ln 2}{\ln 1.1} \approx 7.27.
  • Answer: about 7.27 years.
Never solve aˣ = negative

ax>0a^x > 0 always. If a substitution gives u=−3u = -3 for u=2xu = 2^x, reject it: there is no real x with 2x=−32^x = -3.

4.2Going deeper

  1. Any log works. In Example 9, ln⁡20ln⁡3\frac{\ln 20}{\ln 3} gives the same 2.727 as log⁡20log⁡3\frac{\log 20}{\log 3}: by change of base both equal log⁡320\log_3 20.
  2. Example 10 as one base (extra remark). Divide both sides by 5x5^x: (75)x=5\left(\frac{7}{5}\right)^x = 5, so x=log⁡1.45=ln⁡5ln⁡1.4≈4.783x = \log_{1.4} 5 = \frac{\ln 5}{\ln 1.4} \approx 4.783, the same answer.
  3. Rule of 72 (extra remark). A quick estimate of doubling time is 72 ÷ (rate in %). For 10% that gives 7.2 years, close to the exact 7.27 of Example 12.
Exam tips
  • First try to write both sides with one base; take logs only when that fails.
  • Spot a hidden quadratic by a term like a2xa^{2x} next to axa^x.
Common mistakes
  • Writing log⁡3x=(log⁡3)x\log 3^x = (\log 3)^x. The power law brings x down as a multiplier.
  • Keeping a negative value of u = aˣ.
Next · Unknown inside a logLogarithmic Equations and Inequalities
05
Unknown inside a log

Logarithmic Equations and Inequalities

Equations with the unknown inside a log, extraneous roots, and log inequalities.

In simple words

For a logarithmic equation, combine logs with the laws until there is one log on each side (or one log equal to a number), then "remove" the log.

5.1Methods

  1. Combine into a single log: log⁡aA=log⁡aB⇒A=B\log_a A = \log_a B \Rightarrow A = B (the log is one-one).
  2. Or convert: log⁡aA=c⇒A=ac\log_a A = c \Rightarrow A = a^c.
  3. Check the domain: every expression inside a log must be > 0 in the original equation. Reject answers that break this.
Extraneous roots. Combining logs can create solutions that are not valid in the original equation. Always substitute back or check the domain.

Example 13: convert to exponential form

Solve (a) log⁡2(x+3)=4\log_2(x + 3) = 4, (b) ln⁡x=2\ln x = 2.

  • (a) x+3=24=16x + 3 = 2^4 = 16, so x=13x = 13. Check: x+3=16>0x + 3 = 16 > 0.
  • (b) x=e2≈7.389x = e^2 \approx 7.389.
  • Answer: (a) x = 13 (b) x=e2x = e^2.

Example 14: sum of logs

Solve log⁡3x+log⁡3(x−2)=1\log_3 x + \log_3(x - 2) = 1.

  • Domain: x>0x > 0 and x−2>0x - 2 > 0, so x>2x > 2.
  • Product law: log⁡3[x(x−2)]=1\log_3[x(x - 2)] = 1, so x(x−2)=31=3x(x - 2) = 3^1 = 3.
  • x2−2x−3=0⇒(x−3)(x+1)=0⇒x=3x^2 - 2x - 3 = 0 \Rightarrow (x - 3)(x + 1) = 0 \Rightarrow x = 3 or x=−1x = -1.
  • x = −1 is not in the domain (x > 2): reject it. x = 3 works: log⁡33+log⁡31=1+0=1\log_3 3 + \log_3 1 = 1 + 0 = 1.
  • Answer: x = 3.

Example 15: equal logs

Solve log⁡(x+1)+log⁡(x−1)=log⁡8\log(x + 1) + \log(x - 1) = \log 8.

  • Domain: x+1>0x + 1 > 0 and x−1>0x - 1 > 0, so x>1x > 1.
  • Combine: log⁡[(x+1)(x−1)]=log⁡8\log[(x + 1)(x - 1)] = \log 8, so x2−1=8x^2 - 1 = 8 and x2=9x^2 = 9.
  • x = 3 or x = −3. Only x = 3 is in the domain.
  • Answer: x = 3.

Example 16: power law inside

Solve 2log⁡x=log⁡(4x−3)2 \log x = \log(4x - 3).

  • Domain: x>0x > 0 and 4x−3>04x - 3 > 0, so x>34x > \frac{3}{4}.
  • Power law: log⁡x2=log⁡(4x−3)\log x^2 = \log(4x - 3), so x2=4x−3x^2 = 4x - 3, i.e. x2−4x+3=0x^2 - 4x + 3 = 0.
  • (x−1)(x−3)=0(x - 1)(x - 3) = 0: x = 1 or x = 3, and both are greater than 34\frac{3}{4}.
  • Answer: x = 1 or x = 3.

Example 17: reciprocal trick

Solve log⁡2x+log⁡x2=52\log_2 x + \log_x 2 = \frac{5}{2}.

  • Let u=log⁡2xu = \log_2 x. Then log⁡x2=1u\log_x 2 = \frac{1}{u} (change of base).
  • u+1u=52⇒2u2−5u+2=0⇒(2u−1)(u−2)=0u + \frac{1}{u} = \frac{5}{2} \Rightarrow 2u^2 - 5u + 2 = 0 \Rightarrow (2u - 1)(u - 2) = 0, so u=12u = \frac{1}{2} or 2.
  • u=2u = 2: x=22=4x = 2^2 = 4. u=12u = \frac{1}{2}: x=21/2=2x = 2^{1/2} = \sqrt{2}.
  • x is used as a base, so it needs x>0x > 0 and x≠1x \ne 1. Both 4 and 2\sqrt{2} qualify.
  • Answer: x = 4 or x=2x = \sqrt{2}.

5.2Logarithmic inequalities

In simple words

This is the same idea as comparing logs (Chapter 3): when the base is bigger than 1 the inequality sign stays; when the base is between 0 and 1 the sign flips. Also keep the argument positive.

InequalityResult
log⁡aA<log⁡aB\log_a A < \log_a B, a>1a > 10<A<B0 < A < B
log⁡aA<log⁡aB\log_a A < \log_a B, 0<a<10 < a < 1A>B>0A > B > 0

Example 18: solve two inequalities

Solve (a) log⁡2(x−1)<3\log_2(x - 1) < 3, (b) log⁡1/2x>1\log_{1/2} x > 1.

  • (a) Need x−1>0x - 1 > 0. Base 2 > 1 keeps the sign: x−1<23=8x - 1 < 2^3 = 8. Together: 1<x<91 < x < 9.
  • (b) Base ½ < 1 flips the sign: x<(12)1=12x < \left(\frac{1}{2}\right)^1 = \frac{1}{2}. With x>0x > 0: 0<x<120 < x < \frac{1}{2}.
  • Answer: (a) 1<x<91 < x < 9 (b) 0<x<120 < x < \frac{1}{2}.

5.3Going deeper

  1. Why the domain check matters. In Example 14, x = −1 solves x(x−2)=3x(x - 2) = 3 but makes log⁡3x\log_3 x undefined. The combined equation log⁡3[x(x−2)]=1\log_3[x(x-2)] = 1 has a bigger domain than the original, which is where the extra root comes from.
  2. Not every root is extraneous. In Example 16 both roots survive: x = 1 gives 2log⁡1=0=log⁡12 \log 1 = 0 = \log 1, and x = 3 gives log⁡9=log⁡9\log 9 = \log 9. Check, but do not reject by habit.
  3. Check of Example 17 (extra remark). For x=2x = \sqrt{2}: log⁡22=12\log_2 \sqrt{2} = \frac{1}{2} and log⁡22=2\log_{\sqrt{2}} 2 = 2, and 12+2=52\frac{1}{2} + 2 = \frac{5}{2}.
Exam tips
  • Write the domain as your first line, before any algebra.
  • In an inequality, write the argument > 0 condition alongside the solved one and intersect them.
Common mistakes
  • Forgetting to flip the sign for a base between 0 and 1.
  • Keeping a root that makes some argument zero or negative.
Next · All topicsWeek 6 Summary Sheet
06
All topics

Week 6 Summary Sheet

Everything in Week 6 on one sheet, for a last-minute revision.

Formula sheet at a glance

Definition
Convertax=y  ⟺  x=log⁡aya^x = y \iff x = \log_a y
Special valueslog⁡a1=0,log⁡aa=1\log_a 1 = 0,\quad \log_a a = 1
Inverse pairlog⁡a(ax)=x,alog⁡ax=x\log_a(a^x) = x,\quad a^{\log_a x} = x
Laws of logs
Productlog⁡a(MN)=log⁡aM+log⁡aN\log_a(MN) = \log_a M + \log_a N
Quotientlog⁡aMN=log⁡aM−log⁡aN\log_a \frac{M}{N} = \log_a M - \log_a N
Powerlog⁡a(Mr)=rlog⁡aM\log_a(M^r) = r \log_a M
Change of base
Formulalog⁡aM=log⁡bMlog⁡ba\log_a M = \frac{\log_b M}{\log_b a}
Reciprocallog⁡ab=1log⁡ba\log_a b = \frac{1}{\log_b a}
Power baselog⁡an(Mm)=mnlog⁡aM\log_{a^n}(M^m) = \frac{m}{n} \log_a M
Graph
Domain, range(0,∞)→R(0, \infty) \to \mathbb{R}
Shiftlog⁡a(x−h): asymptote x=h\log_a(x - h):\ \text{asymptote } x = h
Equations
Same baseau=av⇒u=va^u = a^v \Rightarrow u = v
Take logsax=c⇒x=log⁡clog⁡aa^x = c \Rightarrow x = \frac{\log c}{\log a}
Remove the loglog⁡aA=c⇒A=ac\log_a A = c \Rightarrow A = a^c

Key methods

Definition of a log
Two formsax=y  ⟺  x=log⁡aya^x = y \iff x = \log_a y

Use whenA log has to be evaluated, or the unknown is the base or the argument.

  1. Write the equation in the other form.
  2. Write numbers as powers of the base.
  3. Check a > 0, a ≠ 1, argument > 0.
Examplelog⁡x64=3\log_x 64 = 3.
x3=64⇒x=4x^3 = 64 \Rightarrow x = 4
Laws of logs
Productlog⁡(MN)=log⁡M+log⁡N\log(MN) = \log M + \log N
Powerlog⁡(Mr)=rlog⁡M\log(M^r) = r \log M

Use whenSeveral logs with the same base must be combined, or one log split.

  1. Bring coefficients inside as powers.
  2. Add logs → multiply; subtract → divide.
  3. Evaluate the single log.
Examplelog⁡5+log⁡20\log 5 + \log 20.
log⁡(5×20)=log⁡100=2\log(5 \times 20) = \log 100 = 2
Change of base
Any base blog⁡aM=log⁡bMlog⁡ba\log_a M = \frac{\log_b M}{\log_b a}

Use whenThe base is awkward, or two logs of different bases are multiplied.

  1. Write the base and argument as powers of one number.
  2. Use m/n times the log, or divide by ln a.
  3. Simplify.
Examplelog⁡927\log_9 27.
log⁡3233=32\log_{3^2} 3^3 = \frac{3}{2}
Exponential equations
Take logsax=c⇒x=log⁡clog⁡aa^x = c \Rightarrow x = \frac{\log c}{\log a}

Use whenThe unknown is in an exponent.

  1. Try to make the bases equal.
  2. Otherwise take log of both sides.
  3. For a2xa^{2x} and axa^x, put u = aˣ and keep u > 0.
Example3x=203^x = 20.
x=log⁡20log⁡3≈2.727x = \frac{\log 20}{\log 3} \approx 2.727
Log equations
One log each sidelog⁡aA=log⁡aB⇒A=B\log_a A = \log_a B \Rightarrow A = B

Use whenThe unknown is inside a log.

  1. Write the domain first.
  2. Combine into one log and remove it.
  3. Solve and reject roots outside the domain.
Examplelog⁡3x+log⁡3(x−2)=1\log_3 x + \log_3(x - 2) = 1.
x(x−2)=3⇒x=3 (x=−1 rejected)x(x - 2) = 3 \Rightarrow x = 3 \ (x = -1 \text{ rejected})
Log inequalities
Base above 1log⁡aA<log⁡aB⇒0<A<B\log_a A < \log_a B \Rightarrow 0 < A < B
Base below 1log⁡aA<log⁡aB⇒A>B>0\log_a A < \log_a B \Rightarrow A > B > 0

Use whenA log is compared with a number or another log.

  1. Write argument > 0.
  2. Remove the log; flip the sign if 0 < a < 1.
  3. Intersect both conditions.
Examplelog⁡2(x−1)<3\log_2(x - 1) < 3.
0<x−1<8⇒1<x<90 < x - 1 < 8 \Rightarrow 1 < x < 9

Rules at a glance

IdeaRule / formula
Definitionax=y  ⟺  x=log⁡aya^x = y \iff x = \log_a y; a>0a > 0, a≠1a \ne 1, y>0y > 0
Special valueslog⁡a1=0\log_a 1 = 0, log⁡aa=1\log_a a = 1, log⁡a(ax)=x\log_a(a^x) = x, alog⁡ax=xa^{\log_a x} = x
Product / quotient / powerlog⁡(MN)=log⁡M+log⁡N\log(MN) = \log M + \log N; log⁡MN=log⁡M−log⁡N\log \frac{M}{N} = \log M - \log N; log⁡(Mr)=rlog⁡M\log(M^r) = r \log M
Change of baselog⁡aM=log⁡bMlog⁡ba\log_a M = \frac{\log_b M}{\log_b a}; log⁡ab=1log⁡ba\log_a b = \frac{1}{\log_b a}
Graphdomain (0,∞)(0, \infty), range R\mathbb{R}, through (1, 0), asymptote x = 0; inverse of axa^x
Increasing / decreasinga > 1 increasing; 0 < a < 1 decreasing
Exponential equationsequal bases; or take logs; or put u=axu = a^x
Log equationscombine, remove the log, check the domain

Values worked in these notes

QuestionAnswer
log⁡212+log⁡283\log_2 12 + \log_2 \frac{8}{3}5
log⁡927\log_9 2732\frac{3}{2}
3x=203^x = 20x≈2.727x \approx 2.727
7x=5x+17^x = 5^{x+1}x≈4.783x \approx 4.783
22x−5⋅2x+4=02^{2x} - 5 \cdot 2^x + 4 = 0x = 0, 2
log⁡3x+log⁡3(x−2)=1\log_3 x + \log_3(x - 2) = 1x = 3
log⁡2x+log⁡x2=52\log_2 x + \log_x 2 = \frac{5}{2}x=4,2x = 4, \sqrt{2}
Doubling at 10% a year≈ 7.27 years

Which tool when?

  1. "Evaluate a log" → write the argument as a power of the base.
  2. "Simplify a sum of logs" → product, quotient and power laws.
  3. "Odd base or calculator" → change of base.
  4. "Unknown in the power" → same base, or take logs, or u = aˣ.
  5. "Unknown inside a log" → domain, combine, remove the log, check.
Mistakes to avoid
  • log⁡(M+N)≠log⁡M+log⁡N\log(M + N) \ne \log M + \log N.
  • Never take a log of 0 or of a negative number.
  • Reject roots that make an argument ≤ 0.
  • For a base in (0, 1), reverse inequalities.
Source notes
  • The source PDF says no Week 6 lecture file was attached, and the Week 5 lecture notes list log⁡ax\log_a x only as a function type. So all of this week follows the standard NCERT Class 11 and 12 treatment of logarithms.
  • Examples 1 to 18 are the source's worked practice items, in the same order. Every number was recomputed.
  • Here log x means base 10 and ln x base e; some books use log for the natural log.
  • The source says "the smaller the base, the steeper the rise"; these notes say it more exactly: for x > 1 the curve with the smaller base (above 1) lies higher.
Revision overview
Definitionaˣ = y ⇔ x = logₐ y
a > 0, a ≠ 1, y > 0
log = base 10, ln = base e
Lawslog(MN) = log M + log N
log(M/N) = log M − log N
log(Mʳ) = r log M
Change of baselogₐ M = log M / log a
logₐ b = ln b / ln a
calculator: ln or log
LogarithmsMathematics for Data Science 1
Graphdomain (0, ∞), range ℝ
through (1, 0), asymptote x = 0
mirror of aˣ in y = x
Exponential equationssame base
take logs
u = aˣ, u > 0
Log equationscombine, remove the log
check the domain
base < 1 flips inequalities
Revision: the whole of Week 6 on one map
Back to top