📖 Short lecture
The logarithm answers the question "to which power?": $\log_b x=y$ means $b^y=x$ (with $b>0$, $b\neq1$, $x>0$). So $\log_2 8=3$ and $\log_{10}1000=3$. The function $y=\log_b x$ is the inverse of $y=b^x$; its graph is the mirror image in the line $y=x$.
The laws of logarithms turn multiplication into addition, which is why logarithms are used to solve exponential equations and in scales such as pH, decibels and the Richter scale. The natural logarithm $\ln x$ uses base $e\approx2.718$.
⚠️ Common mistakes
- $\log(a+b)\neq\log a+\log b$: the product law is $\log(ab)=\log a+\log b$.
- $\log_b x$ is defined only for $x\gt0$: check solutions of log equations.
- $\log x^2=2\log x$ only when $x\gt0$.
🔑 Key formulas
✏️ Worked example
Solve $3^{x}=50$ and simplify $\log_2 40-\log_2 5$.
- $\displaystyle x=\log_3 50=\frac{\ln50}{\ln3}\approx\frac{3.912}{1.099}\approx3.56$
- $\displaystyle \log_2 40-\log_2 5=\log_2 8=3$
✔ $x\approx3.56$; $3$.
🧮 More worked examples
Each step says what we do and why.
Example 2Solve $\log_2(x+3)=5$.
- Rewrite in exponential form.$$x+3=2^5=32$$
- Solve.$$x=29$$
Example 3Expand $\log\dfrac{100x^3}{y}$.
- Quotient and product laws.$$\log100+\log x^3-\log y$$
- Power law.$$2+3\log x-\log y$$
Example 4Solve $5^{2x}=40$.
- Take $\ln$ of both sides.$$2x\ln5=\ln40$$
- Divide.$$x=\frac{\ln40}{2\ln5}\approx\frac{3.689}{3.219}\approx1.146$$
🖐️ Interactive demo & illustration
Move the sliders or press the buttons: the figure and the numbers update immediately. Try to predict the result before you look.
🎬 Logarithmic scales: earthquakes and pH
On a logarithmic scale each step of $1$ means a factor of $10$. Compare two earthquakes (Richter) or two solutions (pH). The ruler shows equal steps, but the bars underneath show the real sizes, which grow by powers of $10$. That is why $\log$ turns huge ratios into small differences: $\log\frac{x}{y}=\log x-\log y$.
🌍 Modelling problems
Real-life situations: translate the words into mathematics, solve, then interpret the answer.
🧪 pH scale
$\text{pH}=-\log[\text{H}^+]$. Find the pH when $[\text{H}^+]=10^{-3}$, and compare acidity with pH $5$.
Show the solution
- Evaluate.$$-\log10^{-3}=3$$
- Two pH steps = factor $10^2$.$$\frac{10^{-3}}{10^{-5}}=100$$
✔ pH $3$, $100$ times more acidic than pH $5$.
⏳ Doubling time
How long does money take to double at $7\%$ per year?
Show the solution
- Equation.$$1.07^t=2$$
- Logarithms.$$t=\frac{\ln2}{\ln1.07}\approx10.24$$
✔ About $10.2$ years.
🔊 Decibels
Sound level is $L=10\log\frac{I}{I_0}$. Find $L$ for $I=1000I_0$. What happens when the intensity is multiplied by $10$?
Show the solution
- Evaluate.$$10\log1000=30$$
- Product law.$$10\log(10x)=10+10\log x$$
✔ $30$ dB; each $\times10$ adds $10$ dB.
✅ Multiple-choice quiz
📝 Short essay
The Richter scale is logarithmic. Explain what it means that an earthquake of magnitude $7$ is "$100$ times stronger" (in amplitude) than one of magnitude $5$.
Each step of $1$ on a base-$10$ logarithmic scale multiplies the amplitude by $10$. From $5$ to $7$ is $2$ steps, so the amplitude is multiplied by $10^2=100$. Logarithmic scales compress huge ranges into small numbers.