← Back to course

Math — Mechina

Exponential function and logarithms

Summary

Exponential function: f(x)=axf(x)=a^x with a>0a>0, a≠1a\neq1. It is always positive and passes through (0,1)(0,1). If a>1a>1 it increases; if 0<a<10<a<1 it decreases.

The logarithm is the inverse operation: log⁡ab=c\log_a b=c ⇔ ac=ba^c=b. Defined only for b>0b>0, a>0a>0, a≠1a\neq1.

  • am⋅an=am+na^m\cdot a^n=a^{m+n}, aman=am−n\frac{a^m}{a^n}=a^{m-n}, (am)n=amn(a^m)^n=a^{mn}, a−n=1ana^{-n}=\frac{1}{a^n}.
  • log⁡a(xy)=log⁡ax+log⁡ay\log_a(xy)=\log_a x+\log_a y, log⁡axy=log⁡ax−log⁡ay\log_a\frac{x}{y}=\log_a x-\log_a y, log⁡axn=nlog⁡ax\log_a x^n=n\log_a x.
  • Change of base: log⁡ab=log⁡blog⁡a\log_a b=\frac{\log b}{\log a}.
-3-2-1123-112345678xy2^x(1/2)^x(0, 1)
Both functions pass through (0,1)(0,1) and never touch the xx-axis.

Why you need this

Exponential growth is growth where in each time period the quantity is multiplied by the same number rather than increased by the same amount: savings with interest, bacteria multiplying, an epidemic spreading, radioactive decay, a cup of tea cooling down. The logarithm answers the reverse question: "how many times do we multiply?" — for example, after how many years the savings double. Logarithms also appear in scales: Richter for earthquakes, decibels for loudness and pH in chemistry.

Negative and fractional exponents

  • a0=1a^0=1 for every a≠0a\neq0 — because anan=an−n\frac{a^n}{a^n}=a^{n-n}.
  • a−n=1ana^{-n}=\frac1{a^n}: for example 2−3=182^{-3}=\frac18.
  • a1n=ana^{\frac1n}=\sqrt[n]a and amn=amna^{\frac mn}=\sqrt[n]{a^m}: for example 823=(83)2=48^{\frac23}=(\sqrt[3]8)^2=4.
  • It pays to bring everything to one base: 4x=22x4^x=2^{2x}, 127=3−3\frac1{27}=3^{-3}, 2=212\sqrt2=2^{\frac12}.

What a logarithm is, in words

log⁡28\log_2 8 asks: "to what power must 22 be raised to get 88?" — the answer is 33. Likewise log⁡101000=3\log_{10}1000=3, log⁡5125=−2\log_5\frac1{25}=-2, log⁡93=12\log_9 3=\frac12. Two values always worth remembering: log⁡a1=0\log_a1=0 and log⁡aa=1\log_aa=1. The natural logarithm ln⁡\ln is the logarithm to base e≈2.718e\approx2.718, and log⁡\log with no base usually means base 1010.

Solving exponential equations

  1. If possible, bring both sides to the same base and compare exponents: 4x=84^{x}=8 gives 22x=232^{2x}=2^3, so x=32x=\frac32.
  2. If not, take logarithms of both sides: 3x=73^x=7 gives x=log⁡37=ln⁡7ln⁡3≈1.77x=\log_37=\frac{\ln7}{\ln3}\approx1.77.
  3. If there are several powers of the same base, substitute t=axt=a^x and get a quadratic: 4x−3⋅2x−4=04^x-3\cdot2^x-4=0 gives t2−3t−4=0t^2-3t-4=0, so t=4t=4 or t=−1t=-1. Only t>0t>0 works, so 2x=42^x=4, x=2x=2.

Solving logarithmic equations

  1. Write down the domain: every expression inside a logarithm must be positive.
  2. Use the laws to combine the logarithms into one on each side.
  3. Switch to exponential form: log⁡ax=c\log_ax=c means x=acx=a^c.
  4. Solve, and check every solution against the domain.

Example: log⁡2x+log⁡2(x−2)=3\log_2x+\log_2(x-2)=3. Domain: x>2x>2. Combine: log⁡2(x(x−2))=3\log_2(x(x-2))=3, so x2−2x=8x^2-2x=8, that is x=4x=4 or x=−2x=-2. Only x=4x=4 is in the domain.

Growth and decay

A quantity that starts at A0A_0 and grows by p%p\% a year: A=A0(1+p100)tA=A_0\left(1+\frac p{100}\right)^t. For decay, a minus. Example: 10001000 ₪ at 5%5\% a year. After how many years does the sum double? 1.05t=21.05^t=2, so t=ln⁡2ln⁡1.05≈14.2t=\frac{\ln2}{\ln1.05}\approx14.2 years.

Common mistakes

  • log⁡(x+y)=log⁡x+log⁡y\log(x+y)=\log x+\log y — wrong; the law is for the logarithm of a product.
  • 23⋅32=652^3\cdot3^2=6^5 — wrong; exponents add only when the base is the same.
  • (−2)x(-2)^x — a negative base does not make an exponential function.
  • Forgetting to check the domain and keeping a solution that gives the logarithm of a negative number.
  • Solving 2x=−42^x=-4 — there is no solution, because 2x2^x is always positive.

Question types

1

Exponential equation

The unknown is in the exponent. Bring both sides to the same base.

Worked example

Solve: 4x+1=8x4^{x+1}=8^{x}.

Solution

Idea4=224=2^2 and 8=238=2^3 — common base 22, then equate the exponents.
  1. 22(x+1)=23x2^{2(x+1)}=2^{3x}.
  2. 2x+2=3x2x+2=3x.

    Why: The exponential function is one-to-one: equal bases ⇒ equal exponents.

  3. x=2x=2.
Check43=644^3=64, 82=648^2=64 ✓.
Common mistakeEquating x+1=xx+1=x without converting to a common base.

Variants of this type · 2

1.1Substitution t=axt=a^x

Worked example

Solve: 4x−3⋅2x−4=04^x-3\cdot2^x-4=0.

Solution

Idea4x=(2x)24^x=(2^x)^2 — a quadratic equation in t=2xt=2^x.
  1. t2−3t−4=0t^2-3t-4=0 ⇒ t=4t=4 or t=−1t=-1.
  2. 2x=−12^x=-1 — rejected.

    Why: 2x>02^x>0 always.

  3. 2x=42^x=4 ⇒ x=2x=2.
Check16−12−4=016-12-4=0 ✓.
Common mistakeKeeping t=−1t=-1.
1.2Bases that don't match — logarithm

Worked example

Solve: 3x=103^x=10.

Solution

IdeaNo common base — take a logarithm.
  1. x=log⁡310=log⁡10log⁡3≈2.096x=\log_3 10=\frac{\log10}{\log3}\approx2.096.
Check32=9<10<27=333^2=9<10<27=3^3 ✓.
Common mistakex=103x=\frac{10}{3}.
2

Logarithm rules

Simplifying an expression with several logarithms.

Worked example

Compute: log⁡224−log⁡23\log_2 24-\log_2 3.

Solution

IdeaA difference of logarithms — the logarithm of a quotient.
  1. log⁡2243=log⁡28\log_2\frac{24}{3}=\log_2 8.
  2. =3=3.
Check23=82^3=8 ✓.
Common mistakelog⁡224log⁡23\frac{\log_2 24}{\log_2 3} — that is not log⁡28\log_2 8.

Variants of this type · 1

2.1A power inside the logarithm

Worked example

Compute: log⁡381+2log⁡313\log_3 81+2\log_3\frac13.

Solution

Idealog⁡axn=nlog⁡ax\log_a x^n=n\log_a x.
  1. log⁡381=4\log_3 81=4.
  2. 2log⁡33−1=−22\log_3 3^{-1}=-2.
  3. Sum: 22.
Checklog⁡3(81⋅19)=log⁡39=2\log_3(81\cdot\frac19)=\log_3 9=2 ✓.
Common mistakelog⁡313=13\log_3\frac13=\frac13.
3

Logarithmic equation

The unknown is inside a logarithm. Combine into one logarithm and switch to exponential form.

Worked example

Solve: log⁡2x+log⁡2(x−2)=3\log_2 x+\log_2(x-2)=3.

Solution

IdeaA sum of logarithms — the logarithm of a product; then log⁡2A=3\log_2 A=3 ⇔ A=8A=8.
  1. log⁡2[x(x−2)]=3\log_2[x(x-2)]=3 ⇒ x2−2x=8x^2-2x=8.
  2. x=4x=4 or x=−2x=-2.
  3. x=−2x=-2 is rejected.

    Why: log⁡2(−2)\log_2(-2) is undefined.

Checklog⁡24+log⁡22=2+1=3\log_2 4+\log_2 2=2+1=3 ✓.
Common mistakeNot checking the domain and keeping x=−2x=-2.
4

Exponential inequality

An inequality with axa^x or log⁡ax\log_a x. The direction depends on the base.

Worked example

Solve: (12)x>8\left(\tfrac12\right)^{x}>8.

Solution

IdeaA base below 11 — the function is decreasing, so the inequality flips when comparing exponents.
  1. 8=(12)−38=\left(\tfrac12\right)^{-3}.
  2. (12)x>(12)−3\left(\tfrac12\right)^x>\left(\tfrac12\right)^{-3} ⇒ x<−3x<-3.
Checkx=−4x=-4: 16>816>8 ✓.
Common mistakeKeeping the direction and answering x>−3x>-3.

Exam-style problems

One problem with several parts on the same data, as on the exam. Each part adds something to the drawing.

Practice · 20

Test yourself with problems and full solutions.

Go to practice